mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1048833 - Prevent unnecessary SpecialPowers loading. r=dburns
This commit is contained in:
parent
7b4a23fef5
commit
acf000fc8b
@ -402,9 +402,16 @@ function createExecuteContentSandbox(aWindow, timeout) {
|
||||
}
|
||||
});
|
||||
|
||||
XPCOMUtils.defineLazyGetter(sandbox, 'SpecialPowers', function() {
|
||||
return new SpecialPowers(aWindow);
|
||||
});
|
||||
if (aWindow.wrappedJSObject.SpecialPowers != undefined) {
|
||||
XPCOMUtils.defineLazyGetter(sandbox, 'SpecialPowers', function() {
|
||||
return aWindow.wrappedJSObject.SpecialPowers;
|
||||
});
|
||||
}
|
||||
else {
|
||||
XPCOMUtils.defineLazyGetter(sandbox, 'SpecialPowers', function() {
|
||||
return new SpecialPowers(aWindow);
|
||||
});
|
||||
}
|
||||
|
||||
sandbox.asyncComplete = function sandbox_asyncComplete(value, status, stack, commandId) {
|
||||
if (commandId == asyncTestCommandId) {
|
||||
|
Loading…
Reference in New Issue
Block a user