diff options
author | FranklinDM <mrmineshafter17@gmail.com> | 2018-11-17 19:17:20 +0800 |
---|---|---|
committer | FranklinDM <mrmineshafter17@gmail.com> | 2018-11-17 19:17:20 +0800 |
commit | 61b21c8083ec889b900efd78ff9435c441537e38 (patch) | |
tree | 778518fe2dc8af2d0767aef088b5e0da2e0abb68 /application/palemoon/base/content/tabbrowser.xml | |
parent | deb4791e21e9cda73083f0c61c44a51270f433e2 (diff) | |
download | UXP-61b21c8083ec889b900efd78ff9435c441537e38.tar UXP-61b21c8083ec889b900efd78ff9435c441537e38.tar.gz UXP-61b21c8083ec889b900efd78ff9435c441537e38.tar.lz UXP-61b21c8083ec889b900efd78ff9435c441537e38.tar.xz UXP-61b21c8083ec889b900efd78ff9435c441537e38.zip |
Follow-up: Add missing getTabFromAudioEvent method
Diffstat (limited to 'application/palemoon/base/content/tabbrowser.xml')
-rw-r--r-- | application/palemoon/base/content/tabbrowser.xml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/application/palemoon/base/content/tabbrowser.xml b/application/palemoon/base/content/tabbrowser.xml index 9ee7f1b11..9479db109 100644 --- a/application/palemoon/base/content/tabbrowser.xml +++ b/application/palemoon/base/content/tabbrowser.xml @@ -438,6 +438,22 @@ </body> </method> + <method name="getTabFromAudioEvent"> + <parameter name="aEvent"/> + <body> + <![CDATA[ + if (!Services.prefs.getBoolPref("browser.tabs.showAudioPlayingIcon") || + !aEvent.isTrusted) { + return null; + } + + var browser = aEvent.originalTarget; + var tab = this.getTabForBrowser(browser); + return tab; + ]]> + </body> + </method> + <method name="_callProgressListeners"> <parameter name="aBrowser"/> <parameter name="aMethod"/> |