Browse Source

b=601616, r=mfinkle, Explicit setting of HTTP and HTTPS handlers overwrites manual settings

matthew.gertner@gmail.com 14 years ago
parent
commit
04c45fd7be
1 changed files with 0 additions and 12 deletions
  1. 0 12
      chrome/content/webrunner.js

+ 0 - 12
chrome/content/webrunner.js

@@ -698,18 +698,6 @@ var WebRunner = {
     // Ensure login manager is up and running.
     // Ensure login manager is up and running.
     Cc["@mozilla.org/login-manager;1"].getService(Ci.nsILoginManager);
     Cc["@mozilla.org/login-manager;1"].getService(Ci.nsILoginManager);
 
 
-    // Set the 'http' handler
-    var httpHandler = extps.getProtocolHandlerInfo("http");
-    httpHandler.preferredAction = Ci.nsIHandlerInfo.useSystemDefault;
-    httpHandler.alwaysAskBeforeHandling = false;
-    hs.store(httpHandler);
-
-    // Set the 'https' handler
-    var httpsHandler = extps.getProtocolHandlerInfo("https");
-    httpsHandler.preferredAction = Ci.nsIHandlerInfo.useSystemDefault;
-    httpsHandler.alwaysAskBeforeHandling = false;
-    hs.store(httpsHandler);
-
     this._xulWindow = window.QueryInterface(Ci.nsIInterfaceRequestor)
     this._xulWindow = window.QueryInterface(Ci.nsIInterfaceRequestor)
         .getInterface(Ci.nsIWebNavigation)
         .getInterface(Ci.nsIWebNavigation)
         .QueryInterface(Ci.nsIDocShellTreeItem)
         .QueryInterface(Ci.nsIDocShellTreeItem)