Bug 1256050 - Update newChannel implementation after deprecating API on ioservice. r=mixedpuppy
authorChristoph Kerschbaumer <mozilla@christophkerschbaumer.com>
Sat, 12 Mar 2016 17:00:50 -0800
changeset 288494 f31e566af61cf01e64942646b40f42dbe9495ea2
parent 288493 dec8c7173f68246a405439a30d057180e15067b4
child 288495 0e90c6048f3f5567ac135751c2849932a6641ac9
push id73427
push userryanvm@gmail.com
push dateSun, 13 Mar 2016 04:09:43 +0000
treeherdermozilla-inbound@f31e566af61c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmixedpuppy
bugs1256050
milestone48.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1256050 - Update newChannel implementation after deprecating API on ioservice. r=mixedpuppy
browser/extensions/pocket/bootstrap.js
--- a/browser/extensions/pocket/bootstrap.js
+++ b/browser/extensions/pocket/bootstrap.js
@@ -104,17 +104,18 @@ PocketAboutPage.prototype = {
   getURIFlags: function(aURI) {
     return Ci.nsIAboutModule.ALLOW_SCRIPT |
            Ci.nsIAboutModule.URI_SAFE_FOR_UNTRUSTED_CONTENT |
            Ci.nsIAboutModule.HIDE_FROM_ABOUTABOUT |
            Ci.nsIAboutModule.MAKE_UNLINKABLE;
   },
 
   newChannel: function(aURI, aLoadInfo) {
-    let channel = Services.io.newChannelFromURIWithLoadInfo(this.chromeURL,
+    let newURI = Services.io.newURI(this.chromeURL, null, null);
+    let channel = Services.io.newChannelFromURIWithLoadInfo(newURI,
                                                             aLoadInfo);
     channel.originalURI = aURI;
     return channel;
   },
 
   createInstance: function(outer, iid) {
     if (outer != null) {
       throw Cr.NS_ERROR_NO_AGGREGATION;