Bug 1569797 - Allow opening RSS feed from file: URL. r+a=jorgk
authoralta88@fixall.com
Wed, 31 Jul 2019 22:40:15 +0200
changeset 36127 2281a77dfbf64434687ebd51c70f6793a773deac
parent 36126 0274467b8c7815966ebd56bda53c2ebeafb25509
child 36128 1a066ca3911a23272f01e9c1e9ffd548f934d1c0
push id392
push userclokep@gmail.com
push dateMon, 02 Sep 2019 20:17:19 +0000
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;
       }
     }