diff options
author | Matt A. Tobin <email@mattatobin.com> | 2018-11-14 02:50:09 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2018-11-14 02:50:09 -0500 |
commit | e3f4fe530a1ff25dc641877ec47d40fd774fe036 (patch) | |
tree | 051f22007324b426446baee4695f6831ae8a8461 /application/palemoon | |
parent | c8d90e332f4da50fdaa77eb733481d8be547391c (diff) | |
download | UXP-e3f4fe530a1ff25dc641877ec47d40fd774fe036.tar UXP-e3f4fe530a1ff25dc641877ec47d40fd774fe036.tar.gz UXP-e3f4fe530a1ff25dc641877ec47d40fd774fe036.tar.lz UXP-e3f4fe530a1ff25dc641877ec47d40fd774fe036.tar.xz UXP-e3f4fe530a1ff25dc641877ec47d40fd774fe036.zip |
Revert "[PALEMOON] Use generic application icon for external applications in about:feeds"
This reverts commit c8d90e332f4da50fdaa77eb733481d8be547391c.
Diffstat (limited to 'application/palemoon')
-rw-r--r-- | application/palemoon/components/feeds/FeedWriter.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/application/palemoon/components/feeds/FeedWriter.js b/application/palemoon/components/feeds/FeedWriter.js index cfea150e2..2ae31dffa 100644 --- a/application/palemoon/components/feeds/FeedWriter.js +++ b/application/palemoon/components/feeds/FeedWriter.js @@ -698,7 +698,12 @@ FeedWriter.prototype = { * @returns moz-icon url of the given file as a string */ _getFileIconURL: function FW__getFileIconURL(file) { - return "moz-icon://dummy.exe?size=16"; + var ios = Cc["@mozilla.org/network/io-service;1"]. + getService(Ci.nsIIOService); + var fph = ios.getProtocolHandler("file") + .QueryInterface(Ci.nsIFileProtocolHandler); + var urlSpec = fph.getURLSpecFromFile(file); + return "moz-icon://" + urlSpec + "?size=16"; }, /** |