summaryrefslogtreecommitdiffstats
path: root/application/palemoon/components/sessionstore/SessionStore.jsm
diff options
context:
space:
mode:
authorMoonchild <mcwerewolf@gmail.com>2018-09-17 01:22:55 +0200
committerGitHub <noreply@github.com>2018-09-17 01:22:55 +0200
commitd118d486a680ed42030b1bdee263a29831da3e86 (patch)
tree8b381337c71dbbe0c098297edb49b3e7db55b73b /application/palemoon/components/sessionstore/SessionStore.jsm
parent08dd8ff76063097d7ceea3ec2877028e57ede211 (diff)
parentc5ea5076e8efe4b9c030f2f3316127a205feb5b1 (diff)
downloadUXP-d118d486a680ed42030b1bdee263a29831da3e86.tar
UXP-d118d486a680ed42030b1bdee263a29831da3e86.tar.gz
UXP-d118d486a680ed42030b1bdee263a29831da3e86.tar.lz
UXP-d118d486a680ed42030b1bdee263a29831da3e86.tar.xz
UXP-d118d486a680ed42030b1bdee263a29831da3e86.zip
Merge pull request #770 from JustOff/PR_bgtab_notify
Skip notifications for background tabs when restoring a session in Pale Moon and Basilisk
Diffstat (limited to 'application/palemoon/components/sessionstore/SessionStore.jsm')
-rw-r--r--application/palemoon/components/sessionstore/SessionStore.jsm7
1 files changed, 5 insertions, 2 deletions
diff --git a/application/palemoon/components/sessionstore/SessionStore.jsm b/application/palemoon/components/sessionstore/SessionStore.jsm
index c5e55321c..e19a578f4 100644
--- a/application/palemoon/components/sessionstore/SessionStore.jsm
+++ b/application/palemoon/components/sessionstore/SessionStore.jsm
@@ -2739,7 +2739,9 @@ var SessionStoreInternal = {
for (var t = 0; t < newTabCount; t++) {
tabs.push(t < openTabCount ?
tabbrowser.tabs[t] :
- tabbrowser.addTab("about:blank", {skipAnimation: true}));
+ tabbrowser.addTab("about:blank",
+ {skipAnimation: true,
+ skipBackgroundNotify: true}));
// when resuming at startup: add additionally requested pages to the end
if (!aOverwriteTabs && root._firstTabs) {
tabbrowser.moveTabTo(tabs[t], t);
@@ -4684,7 +4686,8 @@ var TabAttributes = {
// 'image' should not be accessed directly but handled by using the
// gBrowser.getIcon()/setIcon() methods.
// 'pending' is used internal by sessionstore and managed accordingly.
- _skipAttrs: new Set(["image", "pending"]),
+ // 'skipbackgroundnotify' is used internal by tabbrowser.xml.
+ _skipAttrs: new Set(["image", "pending", "skipbackgroundnotify"]),
persist: function (name) {
if (this._attrs.has(name) || this._skipAttrs.has(name)) {