mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-29 02:40:33 +09:00
Follow-up: Add missing getTabFromAudioEvent method
This commit is contained in:
parent
4b17e666d5
commit
fabc5f1c19
1 changed files with 16 additions and 0 deletions
|
|
@ -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"/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue