Bug 1445895 - Replace BrowserUtils.makeURI with Services.io.newURI in Feeds.jsm. r=johannh
authorgilad <gilad.bau@gmail.com>
Tue, 17 Apr 2018 00:22:02 +0300
changeset 414470 2569c92fd524
parent 414469 45b921d68147
child 414471 525f1fb9501e
push id102342
push userryanvm@gmail.com
push dateThu, 19 Apr 2018 13:33:11 +0000
treeherdermozilla-inbound@2569c92fd524 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjohannh
bugs1445895
milestone61.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 1445895 - Replace BrowserUtils.makeURI with Services.io.newURI in Feeds.jsm. r=johannh
browser/modules/Feeds.jsm
--- a/browser/modules/Feeds.jsm
+++ b/browser/modules/Feeds.jsm
@@ -69,17 +69,17 @@ var Feeds = {
     var type = aLink.type.toLowerCase().replace(/^\s+|\s*(?:;.*)?$/g, "");
     if (!aIsFeed) {
       aIsFeed = (type == "application/rss+xml" ||
                  type == "application/atom+xml");
     }
 
     if (aIsFeed) {
       try {
-        let href = BrowserUtils.makeURI(aLink.href, aLink.ownerDocument.characterSet);
+        let href = Services.io.newURI(aLink.href, aLink.ownerDocument.characterSet);
         BrowserUtils.urlSecurityCheck(href, aPrincipal,
                                       Ci.nsIScriptSecurityManager.DISALLOW_INHERIT_PRINCIPAL);
         return type || "application/rss+xml";
       } catch (ex) {
       }
     }
 
     return null;