mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Re-backout 9928fb9a32b1 which was accidentally un-backed-out by the last merge
This commit is contained in:
parent
746cf20f8f
commit
0bc3c6daf0
@ -1,16 +1,8 @@
|
||||
// ----------------------------------------------------------------------------
|
||||
// Test whether an InstallTrigger.enabled is working
|
||||
|
||||
let prefs = Cc["@mozilla.org/preferences-service;1"]
|
||||
.getService(Components.interfaces.nsIPrefBranch);
|
||||
let gMultiplePopupsPref;
|
||||
|
||||
function test() {
|
||||
waitForExplicitFinish();
|
||||
|
||||
gMultiplePopupsPref = prefs.getBoolPref("dom.block_multiple_popups");
|
||||
prefs.setBoolPref("dom.block_multiple_popups", false);
|
||||
|
||||
gBrowser.selectedTab = gBrowser.addTab();
|
||||
gBrowser.selectedBrowser.addEventListener("load", function() {
|
||||
gBrowser.selectedBrowser.removeEventListener("load", arguments.callee, true);
|
||||
@ -54,7 +46,6 @@ function page_loaded() {
|
||||
|
||||
check_load(function() {
|
||||
gBrowser.removeCurrentTab();
|
||||
prefs.setBoolPref("dom.block_multiple_popups", gMultiplePopupsPref);
|
||||
finish();
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user