Open Bug 1199989 Opened 9 years ago Updated 4 years ago

Add Tab Audio Indicator to SeaMonkey

Categories

(SeaMonkey :: Tabbed Browser, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

People

(Reporter: rn10950, Unassigned, Mentored, NeedInfo)

References

Details

(Whiteboard: [lang=js,xbl][parity-firefox])

As some of you may already know, Firefox 42 features a new "tab audio indicator", which places an icon on a tab that is currently playing sound. I took a look at the Firefox bug that introduces the feature (bug 486262), and it looks simple enough for us to implement in SeaMonkey. I have no idea if you guys want to add this, preferably as an optional component, as a preference currently exists for it. (browser.tabs.showAudioPlayingIcon) I am interested in doing the porting work for this.
Component: General → Tabbed Browser
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Unspecified → All
Hardware: Unspecified → All
Version: unspecified → Trunk
Mentor: neil, philip.chee
Severity: normal → enhancement
Depends on: 486262
Whiteboard: [good first bug][gfb][lang=js,xbl][parity-firefox]
> I am interested in doing the porting work for this.
Great! Please go ahead!
I am looking into porting this over, and I hit a roadblock. I'm looking at the Firefox patch, and I see a XUL image element in the XUL for the tab itself. Looking in tabbrowser.xml, I can't find an equivalent place to put this code. Here's the code in the Firefox patch, which belongs at http://mxr.mozilla.org/mozilla-central/source/browser/base/content/tabbrowser.xml#5869 

> <xul:image xbl:inherits="soundplaying,pinned"
>	class="tab-icon-sound"
>	role="presentation"/>

I looked at the SM version of this file, and could not find any equivalent sections of XUL/XBL that I could insert this image into. The closest I came is http://mxr.mozilla.org/comm-central/source/suite/browser/tabbrowser.xml#71 with

>	   <xul:tabs class="tabbrowser-tabs" closebutton="true" flex="1"
>                     anonid="tabcontainer"
>                     tooltiptextnew="&newTabButton.tooltip;"
>                     tooltiptextclose="&closeTabButton.tooltip;"
>                     tooltiptextalltabs="&listAllTabs.tooltip;"
>                     setfocus="false"
>                     onclick="this.parentNode.parentNode.parentNode.onTabClick(event);"
>                     xbl:inherits="onnewtab,onnewtabclick"
>                     onclosetab="var node = this.parentNode;
>                                 while (node.localName != 'tabbrowser')
>                                   node = node.parentNode;
>                                 node.removeCurrentTab();">
>             <xul:tab selected="true" validate="never"
>                      onerror="this.parentNode.parentNode.parentNode.parentNode.addToMissedIconCache(this.getAttribute('image'));
>                               this.removeAttribute('image');"
>                      width="0" flex="100"
>                      class="tabbrowser-tab" label="&untitledTab;" crop="end"/>
>           </xul:tabs>

but, it still doesn't feel like the right place to put this.

Do you have any ideas?
Flags: needinfo?(philip.chee)
Keywords: good-first-bug
Whiteboard: [good first bug][gfb][lang=js,xbl][parity-firefox] → [gfb][lang=js,xbl][parity-firefox]

Not a good first bug

Keywords: good-first-bug
Whiteboard: [gfb][lang=js,xbl][parity-firefox] → [lang=js,xbl][parity-firefox]
You need to log in before you can comment on or make changes to this bug.