summaryrefslogtreecommitdiffstats
path: root/application/palemoon/base/content/tabbrowser.xml
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2018-04-04 03:17:39 -0400
committerMatt A. Tobin <email@mattatobin.com>2018-04-04 03:17:39 -0400
commit3cf6d2b2d73b3b09fb268a2b3927d920883745fb (patch)
tree1fbeb191509fedf38135deb0516eab51201640d4 /application/palemoon/base/content/tabbrowser.xml
parent59bf4204a84f7638d3f89a29bc7c04e5dc401369 (diff)
downloadUXP-3cf6d2b2d73b3b09fb268a2b3927d920883745fb.tar
UXP-3cf6d2b2d73b3b09fb268a2b3927d920883745fb.tar.gz
UXP-3cf6d2b2d73b3b09fb268a2b3927d920883745fb.tar.lz
UXP-3cf6d2b2d73b3b09fb268a2b3927d920883745fb.tar.xz
UXP-3cf6d2b2d73b3b09fb268a2b3927d920883745fb.zip
Sync Pale Moon code
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 b8d5f3e41..51f7063f3 100644
--- a/application/palemoon/base/content/tabbrowser.xml
+++ b/application/palemoon/base/content/tabbrowser.xml
@@ -2950,13 +2950,23 @@
let browser = aMessage.target;
switch (aMessage.name) {
- case "DOMTitleChanged":
+ case "DOMTitleChanged": {
let tab = this.getTabForBrowser(browser);
if (!tab)
return;
let titleChanged = this.setTabTitle(tab);
if (titleChanged && !tab.selected && !tab.hasAttribute("busy"))
tab.setAttribute("titlechanged", "true");
+ break;
+ }
+ case "DOMWebNotificationClicked": {
+ let tab = this.getTabForBrowser(browser);
+ if (!tab)
+ return;
+ this.selectedTab = tab;
+ window.focus();
+ break;
+ }
}
]]></body>
</method>
@@ -3022,6 +3032,7 @@
this._outerWindowIDBrowserMap.set(this.mCurrentBrowser.outerWindowID,
this.mCurrentBrowser);
}
+ messageManager.addMessageListener("DOMWebNotificationClicked", this);
]]>
</constructor>