mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 810987: Followup bustage fix.
This commit is contained in:
parent
8b2523d2c3
commit
d4d9b2dcd8
@ -182,8 +182,10 @@ mozJSSubScriptLoader::LoadSubScript(const nsAString& url,
|
||||
if (!targetObj) {
|
||||
// If the user didn't provide an object to eval onto, find one.
|
||||
mozJSComponentLoader* loader = mozJSComponentLoader::Get();
|
||||
rv = loader->FindTargetObject(cx, &targetObj);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
if (loader) {
|
||||
rv = loader->FindTargetObject(cx, &targetObj);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
}
|
||||
}
|
||||
|
||||
// Remember an object out of the calling compartment so that we
|
||||
|
Loading…
Reference in New Issue
Block a user