Bug 747749 - Remove call to JS_SetGlobalObject in mozJSComponentLoader. r=luke

This commit is contained in:
Bobby Holley 2012-04-26 20:40:11 +02:00
parent 34b6d6c000
commit c48d120359

View File

@ -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,