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 414548 2569c92fd524e30cdcd929748c02d7168408f61e
parent 414547 45b921d6814749c59a0eb55738157d7b73e6248f
child 414549 525f1fb9501e36f69a8d5b7fbfbeb62335ec6d73
push id33871
push usercsabou@mozilla.com
push dateThu, 19 Apr 2018 22:30:08 +0000
treeherdermozilla-central@5d73549d363f [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;