Bug 819000: Preload about:blank. r=cjones a=cjones
authorVivien Nicolas <21@vingtetun.org>
Thu, 24 Jan 2013 10:39:18 -0800
changeset 118306 8a4240df75006c67e339eddb24f778e1f9cfb897
parent 118305 b95c498e7d2c6fb07fcb6b621eb92888fb74221b
child 118307 718fe51bc8f7032e187630fb2812f67fe4a3ae54
push id342
push usercjones@mozilla.com
push dateThu, 24 Jan 2013 18:39:24 +0000
reviewerscjones, cjones
bugs819000
milestone18.0
Bug 819000: Preload about:blank. r=cjones a=cjones
dom/ipc/preload.js
--- a/dom/ipc/preload.js
+++ b/dom/ipc/preload.js
@@ -64,9 +64,16 @@
   Cc["@mozilla.org/permissionmanager;1"].getService(Ci["nsIPermissionManager"]);
   Cc["@mozilla.org/preferences-service;1"].getService(Ci["nsIPrefBranch"]);
   Cc["@mozilla.org/scriptsecuritymanager;1"].getService(Ci["nsIScriptSecurityManager"]);
   Cc["@mozilla.org/storage/service;1"].getService(Ci["mozIStorageService"]);
   Cc["@mozilla.org/system-info;1"].getService(Ci["nsIPropertyBag2"]);
   Cc["@mozilla.org/thread-manager;1"].getService(Ci["nsIThreadManager"]);
   Cc["@mozilla.org/toolkit/app-startup;1"].getService(Ci["nsIAppStartup"]);
   Cc["@mozilla.org/uriloader;1"].getService(Ci["nsIURILoader"]);
+
+  docShell.isActive = false;
+  docShell.QueryInterface(Ci.nsIWebNavigation)
+          .loadURI("about:blank",
+                   Ci.nsIWebNavigation.LOAD_FLAGS_NONE,
+                   null, null, null);
+
 })();