Bug 1569797 - Allow opening RSS feed from file: URL. r+a=jorgk
authoralta88@fixall.com
Wed, 31 Jul 2019 22:40:15 +0200
changeset 35264 2281a77dfbf64434687ebd51c70f6793a773deac
parent 35263 0274467b8c7815966ebd56bda53c2ebeafb25509
child 35265 1a066ca3911a23272f01e9c1e9ffd548f934d1c0
push id2475
push usermozilla@jorgk.com
push dateFri, 02 Aug 2019 20:07:29 +0000
treeherdercomm-beta@c7b7a4c6679d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1569797
Bug 1569797 - Allow opening RSS feed from file: URL. r+a=jorgk
mailnews/extensions/newsblog/content/FeedUtils.jsm
--- a/mailnews/extensions/newsblog/content/FeedUtils.jsm
+++ b/mailnews/extensions/newsblog/content/FeedUtils.jsm
@@ -1692,17 +1692,17 @@ var FeedUtils = {
 
   /**
    * Returns if a uri/url is valid to subscribe.
    *
    * @param {nsIURI} aUri or {String} aUrl  - The Uri/Url.
    *
    * @returns {Boolean}                     - true if a valid scheme, false if not.
    */
-  _validSchemes: ["http", "https"],
+  _validSchemes: ["http", "https", "file"],
   isValidScheme(aUri) {
     if (!(aUri instanceof Ci.nsIURI)) {
       try {
         aUri = Services.io.newURI(aUri);
       } catch (ex) {
         return false;
       }
     }