mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 737780: fix compartments in nsFrameScriptExecutor::LoadFrameScriptInternal, r=luke
This commit is contained in:
parent
517f27753a
commit
535c2cacfb
@ -811,7 +811,8 @@ nsFrameScriptExecutor::LoadFrameScriptInternal(const nsAString& aURL)
|
||||
JSAutoRequest ar(mCx);
|
||||
JSObject* global = nsnull;
|
||||
mGlobal->GetJSObject(&global);
|
||||
if (global) {
|
||||
JSAutoEnterCompartment ac;
|
||||
if (global && ac.enter(mCx, global)) {
|
||||
uint32 oldopts = JS_GetOptions(mCx);
|
||||
JS_SetOptions(mCx, oldopts | JSOPTION_NO_SCRIPT_RVAL);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user