mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-10 17:24:29 +00:00
Bug 865745 - Use a SafeJSContext in TabChildParent. r=smaug
This is just used for rooting, but happens to be a consumer of nsFrameMessageManager::GetJSContext, which we're about to remove.
This commit is contained in:
parent
775e6097f5
commit
48e6819e77
@ -1091,7 +1091,7 @@ TabParent::ReceiveMessage(const nsString& aMessage,
|
||||
if (frameLoader && frameLoader->GetFrameMessageManager()) {
|
||||
nsRefPtr<nsFrameMessageManager> manager =
|
||||
frameLoader->GetFrameMessageManager();
|
||||
AutoPushJSContext ctx(manager->GetJSContext());
|
||||
AutoSafeJSContext ctx;
|
||||
uint32_t len = 0; //TODO: obtain a real value in bug 572685
|
||||
// Because we want JS messages to have always the same properties,
|
||||
// create array even if len == 0.
|
||||
|
Loading…
x
Reference in New Issue
Block a user