Bug 725529. (Bv1a) browser_sanitizer.js: Load Sanitizer.jsm through a tempScope. r=InvisibleSmiley.
authorSerge Gautherie <sgautherie.bz@free.fr>
Fri, 10 Feb 2012 23:45:47 +0100
changeset 10797 185700094ffbd964b83ad66e403ebe54886402a3
parent 10796 243b4f14dab84409823d0ecd2202689d6153601d
child 10798 4323497b9d8080255d4e117199ecbd394dfd3bf7
push id463
push userbugzilla@standard8.plus.com
push dateTue, 24 Apr 2012 17:34:51 +0000
treeherdercomm-beta@e53588e8f7b0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersInvisibleSmiley
bugs725529
Bug 725529. (Bv1a) browser_sanitizer.js: Load Sanitizer.jsm through a tempScope. r=InvisibleSmiley.
suite/modules/test/browser_sanitizer.js
--- a/suite/modules/test/browser_sanitizer.js
+++ b/suite/modules/test/browser_sanitizer.js
@@ -1,10 +1,12 @@
-Components.utils.import("resource:///modules/Sanitizer.jsm");
-ok(typeof Sanitizer != "undefined", "Sanitizer module imported")
+let tempScope = {};
+Components.utils.import("resource:///modules/Sanitizer.jsm", tempScope);
+let Sanitizer = tempScope.Sanitizer;
+ok(typeof Sanitizer != "undefined", "Sanitizer module imported");
 
 function getWindows(aType, aSingle) {
   var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"]
                      .getService(Components.interfaces.nsIWindowMediator);
   var window = null;
   if (aSingle)
     window = wm.getMostRecentWindow(aType);
   else