mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 07:15:46 +00:00
Bug 1472973 part 9 - Use JS::GetNonCCWObjectGlobal in worker wrap-callback. r=bz
This commit is contained in:
parent
e918a3c855
commit
2de712fd5c
@ -903,7 +903,8 @@ Wrap(JSContext *cx, JS::HandleObject existing, JS::HandleObject obj)
|
||||
MOZ_CRASH("There should be no edges from the debuggee to the debugger.");
|
||||
}
|
||||
|
||||
JSObject* originGlobal = js::GetGlobalForObjectCrossCompartment(obj);
|
||||
// Note: the JS engine unwraps CCWs before calling this callback.
|
||||
JSObject* originGlobal = JS::GetNonCCWObjectGlobal(obj);
|
||||
|
||||
const js::Wrapper* wrapper = nullptr;
|
||||
if (IsWorkerDebuggerGlobal(originGlobal) ||
|
||||
|
Loading…
Reference in New Issue
Block a user