зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1479651 - Use correct pointer for registering deferred finalization thing for SandboxPrivate, r=smaug.
--HG-- extra : rebase_source : 88e76371da6ba2c75c1bc88c380d1498a603183d
This commit is contained in:
Родитель
0e56d01089
Коммит
f43431cd1c
|
@ -34,8 +34,10 @@ public:
|
|||
|
||||
// Pass on ownership of sbp to |global|.
|
||||
// The type used to cast to void needs to match the one in GetPrivate.
|
||||
mozilla::RecordReplayRegisterDeferredFinalizeThing(nullptr, nullptr, sbp);
|
||||
JS_SetPrivate(global, static_cast<nsIScriptObjectPrincipal*>(sbp.forget().take()));
|
||||
nsIScriptObjectPrincipal* sop =
|
||||
static_cast<nsIScriptObjectPrincipal*>(sbp.forget().take());
|
||||
mozilla::RecordReplayRegisterDeferredFinalizeThing(nullptr, nullptr, sop);
|
||||
JS_SetPrivate(global, sop);
|
||||
}
|
||||
|
||||
static SandboxPrivate* GetPrivate(JSObject* obj)
|
||||
|
|
Загрузка…
Ссылка в новой задаче