mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 868130 - Make sure to push a JSContext in TabParent::ReceiveMessage. r=gabor
This commit is contained in:
parent
a08274d59c
commit
d35a455af1
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user