Re-backout 9928fb9a32b1 which was accidentally un-backed-out by the last merge
authorMatt Brubeck <mbrubeck@mozilla.com>
Thu, 29 Sep 2011 19:56:32 -0700
changeset 77886 b5b082d183d0a3913b93ff3d8dd7f759c56894d4
parent 77885 3f06d09e2e93c0dcac7d496d8ef33bf58c3e55e7
child 77887 7558f15d82410a11cb9ecf4f6bcd0764854e66ee
child 77903 78dd488fa082702bdd3dc1bb508edfee8545ab5d
push id3
push userfelipc@gmail.com
push dateFri, 30 Sep 2011 20:09:13 +0000
milestone10.0a1
Re-backout 9928fb9a32b1 which was accidentally un-backed-out by the last merge
toolkit/mozapps/extensions/test/xpinstall/browser_bug638292.js
--- a/toolkit/mozapps/extensions/test/xpinstall/browser_bug638292.js
+++ b/toolkit/mozapps/extensions/test/xpinstall/browser_bug638292.js
@@ -1,21 +1,13 @@
 // ----------------------------------------------------------------------------
 // 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);
     waitForFocus(page_loaded, gBrowser.contentWindow);
   }, true);
   gBrowser.loadURI(TESTROOT + "bug638292.html");
 }
 
@@ -49,14 +41,13 @@ function page_loaded() {
     EventUtils.synthesizeMouseAtCenter(doc.getElementById("link2"), { }, gBrowser.contentWindow);
 
     check_load(function() {
       info("Clicking link 3");
       EventUtils.synthesizeMouseAtCenter(doc.getElementById("link3"), { button: 1 }, gBrowser.contentWindow);
 
       check_load(function() {
         gBrowser.removeCurrentTab();
-        prefs.setBoolPref("dom.block_multiple_popups", gMultiplePopupsPref);
         finish();
       });
     });
   });
 }