Bug 681392 - Remove about: exclusion from SpecialPowers creation. r=ted
authorJosh Matthews <josh@joshmatthews.net>
Tue, 06 Sep 2011 10:32:11 -0400
changeset 76681 e7525561c3092f3d35ff2e6b4a93b42d1ef8167e
parent 76680 1c432b6fdbdbd691186f8107946072febc8db012
child 76682 c7589174b0f0c8f13e3003d598902e41a6731644
push id3
push userfelipc@gmail.com
push dateFri, 30 Sep 2011 20:09:13 +0000
reviewersted
bugs681392
milestone9.0a1
Bug 681392 - Remove about: exclusion from SpecialPowers creation. r=ted
testing/mochitest/specialpowers/content/specialpowers.js
--- a/testing/mochitest/specialpowers/content/specialpowers.js
+++ b/testing/mochitest/specialpowers/content/specialpowers.js
@@ -437,20 +437,13 @@ function attachSpecialPowersToWindow(aWi
 
 function SpecialPowersManager() {
   addEventListener("DOMWindowCreated", this, false);
 }
 
 SpecialPowersManager.prototype = {
   handleEvent: function handleEvent(aEvent) {
     var window = aEvent.target.defaultView;
-
-    // only add SpecialPowers to data pages, not about:*
-    var uri = window.document.documentURIObject;
-    if (uri.spec.split(":")[0] == "about") {
-      return;
-    }
-
     attachSpecialPowersToWindow(window);
   }
 };
 
 var specialpowersmanager = new SpecialPowersManager();