From 53157a20094523b4ab38dc523bd695bc379a751e Mon Sep 17 00:00:00 2001 From: Gregor Wagner Date: Mon, 26 Aug 2013 16:38:08 -0700 Subject: [PATCH] Bug 903343 - Missing Request in TCPSocketChild. r=bent --- dom/network/src/TCPSocketChild.cpp | 1 + dom/network/src/TCPSocketParent.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/dom/network/src/TCPSocketChild.cpp b/dom/network/src/TCPSocketChild.cpp index c123d294dff..8ee234b205b 100644 --- a/dom/network/src/TCPSocketChild.cpp +++ b/dom/network/src/TCPSocketChild.cpp @@ -137,6 +137,7 @@ TCPSocketChild::RecvCallback(const nsString& aType, if (data.type() == SendableData::TArrayOfuint8_t) { JSContext* cx = nsContentUtils::GetSafeJSContext(); + JSAutoRequest ar(cx); JS::Rooted val(cx); JS::Rooted window(cx, mWindowObj); bool ok = IPC::DeserializeArrayBuffer(window, data.get_ArrayOfuint8_t(), &val); diff --git a/dom/network/src/TCPSocketParent.cpp b/dom/network/src/TCPSocketParent.cpp index f79c97a3db4..6de19a3f907 100644 --- a/dom/network/src/TCPSocketParent.cpp +++ b/dom/network/src/TCPSocketParent.cpp @@ -142,6 +142,7 @@ TCPSocketParent::RecvData(const SendableData& aData) switch (aData.type()) { case SendableData::TArrayOfuint8_t: { AutoSafeJSContext cx; + JSAutoRequest ar(cx); JS::Rooted val(cx); JS::Rooted obj(cx, mIntermediaryObj); IPC::DeserializeArrayBuffer(obj, aData.get_ArrayOfuint8_t(), &val);