summaryrefslogtreecommitdiffstats
path: root/application/palemoon/components/feeds
diff options
context:
space:
mode:
authorJustOff <Off.Just.Off@gmail.com>2018-04-14 00:32:14 +0300
committerJustOff <Off.Just.Off@gmail.com>2018-04-14 00:32:14 +0300
commit7494a278ae7ec40f82979e182bf7c1c72c22b4df (patch)
tree5ba66da125af2357e836313d595b4069fc2bb026 /application/palemoon/components/feeds
parent501db456d4d84a9345374e9b15775f6e10883a41 (diff)
downloadUXP-7494a278ae7ec40f82979e182bf7c1c72c22b4df.tar
UXP-7494a278ae7ec40f82979e182bf7c1c72c22b4df.tar.gz
UXP-7494a278ae7ec40f82979e182bf7c1c72c22b4df.tar.lz
UXP-7494a278ae7ec40f82979e182bf7c1c72c22b4df.tar.xz
UXP-7494a278ae7ec40f82979e182bf7c1c72c22b4df.zip
Use document's principal for favicons in browser
Diffstat (limited to 'application/palemoon/components/feeds')
-rw-r--r--application/palemoon/components/feeds/FeedWriter.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/application/palemoon/components/feeds/FeedWriter.js b/application/palemoon/components/feeds/FeedWriter.js
index 2afa35a5b..28cf582c2 100644
--- a/application/palemoon/components/feeds/FeedWriter.js
+++ b/application/palemoon/components/feeds/FeedWriter.js
@@ -1395,6 +1395,8 @@ FeedWriter.prototype = {
.QueryInterface(Ci.nsIDocShell)
.QueryInterface(Ci.nsILoadContext)
.usePrivateBrowsing;
+ var nullPrincipal = Cc["@mozilla.org/nullprincipal;1"]
+ .createInstance(Ci.nsIPrincipal);
this._faviconService.setAndFetchFaviconForPage(readerURI, faviconURI, false,
usePrivateBrowsing ? this._faviconService.FAVICON_LOAD_PRIVATE
: this._faviconService.FAVICON_LOAD_NON_PRIVATE,
@@ -1409,7 +1411,7 @@ FeedWriter.prototype = {
self._contentSandbox.menuItem = null;
self._contentSandbox.dataURL = null;
}
- });
+ }, nullPrincipal);
},
classID: FEEDWRITER_CID,