Re-backout 9928fb9a32b1 which was accidentally un-backed-out by the last merge

This commit is contained in:
Matt Brubeck 2011-09-29 19:56:32 -07:00
parent 746cf20f8f
commit 0bc3c6daf0

View File

@ -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();
});
});