mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 768276. Part 5 - Set allAppsLaunchable = true on API tests that skip native installation. r=ctalbert
This commit is contained in:
parent
01a767170b
commit
1744d44393
@ -9,6 +9,7 @@ var popupNotifications = getPopupNotifications(window.top);
|
||||
var event_listener_loaded = {};
|
||||
|
||||
Components.utils.import("resource://gre/modules/Services.jsm");
|
||||
Components.utils.import("resource://gre/modules/Webapps.jsm");
|
||||
|
||||
Components.classes["@mozilla.org/permissionmanager;1"]
|
||||
.getService(Components.interfaces.nsIPermissionManager)
|
||||
@ -21,6 +22,9 @@ SpecialPowers.setBoolPref('dom.mozBrowserFramesEnabled', true);
|
||||
SpecialPowers.setBoolPref('browser.mozApps.installer.dry_run', true);
|
||||
SpecialPowers.setBoolPref("dom.mozBrowserFramesWhitelist", "http://www.example.com");
|
||||
|
||||
let originalAAL = DOMApplicationRegistry.allAppsLaunchable;
|
||||
DOMApplicationRegistry.allAppsLaunchable = true;
|
||||
|
||||
var triggered = false;
|
||||
|
||||
function iterateMethods(label, root, suppress) {
|
||||
@ -104,5 +108,6 @@ function tearDown() {
|
||||
uninstallAll();
|
||||
popupNotifications.panel.removeEventListener("popupshown", mainCommand, false);
|
||||
SpecialPowers.clearUserPref('browser.mozApps.installer.dry_run');
|
||||
DOMApplicationRegistry.allAppsLaunchable = originalAAL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user