summaryrefslogtreecommitdiffstats
path: root/application/basilisk/base/content/tabbrowser.xml
diff options
context:
space:
mode:
authorJustOff <Off.Just.Off@gmail.com>2018-09-16 19:47:19 +0300
committerJustOff <Off.Just.Off@gmail.com>2018-09-16 19:47:19 +0300
commitc5ea5076e8efe4b9c030f2f3316127a205feb5b1 (patch)
tree8b381337c71dbbe0c098297edb49b3e7db55b73b /application/basilisk/base/content/tabbrowser.xml
parent465c0a564647d4b33bd456a276afd61affd06365 (diff)
downloadUXP-c5ea5076e8efe4b9c030f2f3316127a205feb5b1.tar
UXP-c5ea5076e8efe4b9c030f2f3316127a205feb5b1.tar.gz
UXP-c5ea5076e8efe4b9c030f2f3316127a205feb5b1.tar.lz
UXP-c5ea5076e8efe4b9c030f2f3316127a205feb5b1.tar.xz
UXP-c5ea5076e8efe4b9c030f2f3316127a205feb5b1.zip
[BASILISK] Skip notifications for background tabs when restoring a session
Diffstat (limited to 'application/basilisk/base/content/tabbrowser.xml')
-rw-r--r--application/basilisk/base/content/tabbrowser.xml13
1 files changed, 12 insertions, 1 deletions
diff --git a/application/basilisk/base/content/tabbrowser.xml b/application/basilisk/base/content/tabbrowser.xml
index 76ea5d167..043838020 100644
--- a/application/basilisk/base/content/tabbrowser.xml
+++ b/application/basilisk/base/content/tabbrowser.xml
@@ -2101,6 +2101,7 @@
var aRelatedBrowser;
var aOriginPrincipal;
var aOpener;
+ var aSkipBackgroundNotify;
if (arguments.length == 2 &&
typeof arguments[1] == "object" &&
!(arguments[1] instanceof Ci.nsIURI)) {
@@ -2123,6 +2124,7 @@
aRelatedBrowser = params.relatedBrowser;
aOriginPrincipal = params.originPrincipal;
aOpener = params.opener;
+ aSkipBackgroundNotify = params.skipBackgroundNotify;
}
// if we're adding tabs, we're past interrupt mode, ditch the owner
@@ -2151,6 +2153,11 @@
t.setAttribute("crop", "end");
t.setAttribute("onerror", "this.removeAttribute('image');");
+
+ if (aSkipBackgroundNotify) {
+ t.setAttribute("skipbackgroundnotify", true);
+ }
+
t.className = "tabbrowser-tab";
this.tabContainer._unlockTabSizing();
@@ -5932,7 +5939,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