summaryrefslogtreecommitdiffstats
path: root/application/palemoon/base/content/browser-tabPreviews.js
diff options
context:
space:
mode:
authorFranklinDM <mrmineshafter17@gmail.com>2018-11-17 12:09:14 +0800
committerFranklinDM <mrmineshafter17@gmail.com>2018-11-17 12:09:14 +0800
commitfe4c12e2d64627930e4a1581e726d36539b4847c (patch)
tree2f033fe826b0747785fd7a23ef218821e40fdd0d /application/palemoon/base/content/browser-tabPreviews.js
parenta6b250b47730cc4751cfc5ca9e96a4b74e4d6572 (diff)
downloadUXP-fe4c12e2d64627930e4a1581e726d36539b4847c.tar
UXP-fe4c12e2d64627930e4a1581e726d36539b4847c.tar.gz
UXP-fe4c12e2d64627930e4a1581e726d36539b4847c.tar.lz
UXP-fe4c12e2d64627930e4a1581e726d36539b4847c.tar.xz
UXP-fe4c12e2d64627930e4a1581e726d36539b4847c.zip
Issue #638 - Part 9: Add sound icon to all tabs menu
Diffstat (limited to 'application/palemoon/base/content/browser-tabPreviews.js')
-rw-r--r--application/palemoon/base/content/browser-tabPreviews.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/application/palemoon/base/content/browser-tabPreviews.js b/application/palemoon/base/content/browser-tabPreviews.js
index eaae78ba8..e0755b81d 100644
--- a/application/palemoon/base/content/browser-tabPreviews.js
+++ b/application/palemoon/base/content/browser-tabPreviews.js
@@ -940,6 +940,13 @@ var allTabs = {
aPreview.setAttribute("image", aPreview._tab.image);
else
aPreview.removeAttribute("image");
+
+ aPreview.removeAttribute("soundplaying");
+ aPreview.removeAttribute("muted");
+ if (aPreview._tab.hasAttribute("muted"))
+ aPreview.setAttribute("muted", "true");
+ else if (aPreview._tab.hasAttribute("soundplaying"))
+ aPreview.setAttribute("soundplaying", "true");
var thumbnail = tabPreviews.get(aPreview._tab);
if (aPreview.firstChild) {