summaryrefslogtreecommitdiffstats
path: root/application/palemoon/base/content/tabbrowser.xml
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/base/content/tabbrowser.xml
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/base/content/tabbrowser.xml')
-rw-r--r--application/palemoon/base/content/tabbrowser.xml13
1 files changed, 12 insertions, 1 deletions
diff --git a/application/palemoon/base/content/tabbrowser.xml b/application/palemoon/base/content/tabbrowser.xml
index 3de1c6be2..93818e290 100644
--- a/application/palemoon/base/content/tabbrowser.xml
+++ b/application/palemoon/base/content/tabbrowser.xml
@@ -1429,6 +1429,7 @@
var aRelatedToCurrent;
var aSkipAnimation;
var aOriginPrincipal;
+ var aSkipBackgroundNotify;
if (arguments.length == 2 &&
typeof arguments[1] == "object" &&
!(arguments[1] instanceof Ci.nsIURI)) {
@@ -1444,6 +1445,7 @@
aRelatedToCurrent = params.relatedToCurrent;
aSkipAnimation = params.skipAnimation;
aOriginPrincipal = params.originPrincipal;
+ aSkipBackgroundNotify = params.skipBackgroundNotify;
}
// if we're adding tabs, we're past interrupt mode, ditch the owner
@@ -1467,6 +1469,11 @@
t.setAttribute("crop", "end");
t.setAttribute("validate", "never"); //PMed
t.setAttribute("onerror", "this.removeAttribute('image');");
+
+ if (aSkipBackgroundNotify) {
+ t.setAttribute("skipbackgroundnotify", true);
+ }
+
t.className = "tabbrowser-tab";
this.tabContainer._unlockTabSizing();
@@ -4143,7 +4150,11 @@
this._fillTrailingGap();
this._handleTabSelect();
} else {
- this._notifyBackgroundTab(tab);
+ if (tab.hasAttribute("skipbackgroundnotify")) {
+ tab.removeAttribute("skipbackgroundnotify");
+ } else {
+ this._notifyBackgroundTab(tab);
+ }
}
// XXXmano: this is a temporary workaround for bug 345399