Bug 1115572 Backout nsAbout change nsAbout is an about module, not a protocol handler. r=Neil a=IanN for comm-beta CLOSED TREE
authorPhilip Chee <philip.chee@gmail.com>
Fri, 13 Mar 2015 06:05:53 +0800
changeset 25744 8c85927c474b15c93493fb89ff5879240eb8a5bf
parent 25743 e830770c8cd4079db9f4032cdd46f6e3b6c8fa0c
child 25745 0bf9ce4891ac7e4086248973e8007d20f909877b
push id1850
push userclokep@gmail.com
push dateWed, 08 Mar 2017 19:29:12 +0000
treeherdercomm-esr52@028df196b2d9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersNeil, IanN
bugs1115572
Bug 1115572 Backout nsAbout change nsAbout is an about module, not a protocol handler. r=Neil a=IanN for comm-beta CLOSED TREE
suite/common/src/nsAbout.js
--- a/suite/common/src/nsAbout.js
+++ b/suite/common/src/nsAbout.js
@@ -39,21 +39,17 @@ About.prototype = {
   getModule: function(aURI) {
     return aURI.path.replace(/-|\W.*$/g, "").toLowerCase();
   },
 
   getURIFlags: function(aURI) {
     return this[this.getModule(aURI) + "Flags"];
   },
 
-  newChannel: function(aURI) {
-    return this.newChannel2(aURI, null);
-  },
-
-  newChannel2: function(aURI, aLoadInfo) {
+  newChannel: function(aURI, aLoadInfo) {
     var module = this.getModule(aURI);
     var newURI = Services.io.newURI(this[module + "URI"], null, null);
     var channel = aLoadInfo ?
                   Services.io.newChannelFromURIWithLoadInfo(newURI, aLoadInfo) :
                   Services.io.newChannelFromURI(newURI);
     channel.originalURI = aURI;
     if (this[module + "Flags"] & UNTRUSTED)
       channel.owner = null;