mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 747749 - Remove call to JS_SetGlobalObject in mozJSComponentLoader. r=luke
This commit is contained in:
parent
34b6d6c000
commit
c48d120359
@ -670,10 +670,6 @@ mozJSComponentLoader::GlobalForLocation(nsILocalFile *aComponentFile,
|
||||
do_GetService(kXPConnectServiceContractID, &rv);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
// Make sure InitClassesWithNewWrappedGlobal() installs the
|
||||
// backstage pass as the global in our compilation context.
|
||||
JS_SetGlobalObject(cx, nsnull);
|
||||
|
||||
nsCOMPtr<nsIXPConnectJSObjectHolder> holder;
|
||||
rv = xpc->InitClassesWithNewWrappedGlobal(cx, backstagePass,
|
||||
mSystemPrincipal,
|
||||
|
Loading…
Reference in New Issue
Block a user