summaryrefslogtreecommitdiffstats
path: root/application/palemoon/components/sessionstore
diff options
context:
space:
mode:
authorNew Tobin Paradigm <email@mattatobin.com>2018-04-13 19:05:06 -0400
committerGitHub <noreply@github.com>2018-04-13 19:05:06 -0400
commit60c526db500f4f0d177cd7467c0b40bc2a205c1d (patch)
treeeb7f53ae594606ca2536a40ea3f493f562f7191a /application/palemoon/components/sessionstore
parent386266fab1d56b6ca116271d4670155653fa43ff (diff)
parent7494a278ae7ec40f82979e182bf7c1c72c22b4df (diff)
downloadUXP-60c526db500f4f0d177cd7467c0b40bc2a205c1d.tar
UXP-60c526db500f4f0d177cd7467c0b40bc2a205c1d.tar.gz
UXP-60c526db500f4f0d177cd7467c0b40bc2a205c1d.tar.lz
UXP-60c526db500f4f0d177cd7467c0b40bc2a205c1d.tar.xz
UXP-60c526db500f4f0d177cd7467c0b40bc2a205c1d.zip
Merge pull request #152 from JustOff/PR_Favicons_principal
Use document's principal for favicons in browser
Diffstat (limited to 'application/palemoon/components/sessionstore')
-rw-r--r--application/palemoon/components/sessionstore/SessionStore.jsm6
1 files changed, 5 insertions, 1 deletions
diff --git a/application/palemoon/components/sessionstore/SessionStore.jsm b/application/palemoon/components/sessionstore/SessionStore.jsm
index 136a3d8de..5e09ff5c8 100644
--- a/application/palemoon/components/sessionstore/SessionStore.jsm
+++ b/application/palemoon/components/sessionstore/SessionStore.jsm
@@ -3131,7 +3131,11 @@ let SessionStoreInternal = {
// Restore the tab icon.
if ("image" in tabData) {
- aWindow.gBrowser.setIcon(tab, tabData.image);
+ // Using null as the loadingPrincipal because serializing
+ // the principal would be overkill. Within SetIcon we
+ // default to the systemPrincipal if aLoadingPrincipal is
+ // null which will allow the favicon to load.
+ aWindow.gBrowser.setIcon(tab, tabData.image, null);
}
if (tabData.storage && browser.docShell instanceof Ci.nsIDocShell)