Bug 868130 - Make sure to push a JSContext in TabParent::ReceiveMessage. r=gabor

This commit is contained in:
Bobby Holley 2013-05-22 10:05:24 -06:00
parent a08274d59c
commit d35a455af1

View File

@ -1097,7 +1097,7 @@ TabParent::ReceiveMessage(const nsString& aMessage,
if (frameLoader && frameLoader->GetFrameMessageManager()) {
nsRefPtr<nsFrameMessageManager> manager =
frameLoader->GetFrameMessageManager();
JSContext* ctx = manager->GetJSContext();
AutoPushJSContext ctx(manager->GetJSContext());
JSAutoRequest ar(ctx);
uint32_t len = 0; //TODO: obtain a real value in bug 572685
// Because we want JS messages to have always the same properties,