-
a-865How can SM tell me how many tabs I have open?
-
CoordinatorTobina-865: is that all?
-
CoordinatorTobina-865: if i were to take a stab at it? maybe gBrowser.tabContainer.childNodes.length
-
CoordinatorTobinbut that might not match seamonkey
-
CoordinatorTobinfrg_Away: any thoughts?
-
CoordinatorTobinbut that will be per-window
-
CoordinatorTobinnot all tabs across all windows
-
CoordinatorTobinfor that u'd likely have to query and hunt down specific docshells or some shit
-
CoordinatorTobingood luck with that
-
CoordinatorTobinor be lazy and just query each window for all the tabs and add em up
-
frg_Awaytaskbar in windows shows all open tabs count but also includes separate other windows in the count like download manager.
-
frg_Awayshould be the same for linux.
-
CoordinatorTobinsimplest solution I think is get all navigator windows and for each get all the tabs and add em up and return value
-
CoordinatorTobinI don't think linux has a taskbar provider
-
CoordinatorTobindoes it?
-
CoordinatorTobinof course it hardly matters doing it using taskbar components would be silly
-
CoordinatorTobinwhen windows are enumerated internally
-
CoordinatorTobinand have types
-
CoordinatorTobinnsIWindowWatcher.getWindowEnumerator()
-
CoordinatorTobin
-
CoordinatorTobinso i think you do the stuff to get the nsIDOMWindow objects find the ones you want get into its dom document and get into that to get to gBrowser and get its tab count
-
a-865CoordinatorTobin: I don't use more than one browser window per sesson, but I do run browser + IRC or browser + email
-
a-865two different profiles, two different virtual desktop contexts
-
CoordinatorTobinyeah i dunno then
-
CoordinatorTobina-865: maybe more detail in exactly whatcha wanna do would be helpful
-
a-865It's inane finding tabs via that creepy crawly scroller that resets backwards whenever browser is reopened. Tabs list needs a normal scrollbar when there is a high number of tabs. The number of open tabs is too large to discover.
-
a-865count doesn't need it's own UI. It could be a line item in about:support.
-
JamminUnita-865: do you mean the tab-bar needs a scrollbar or that "creepy crawly scroller"? Because last I've checked, firefox has a scrollbar for the "creepy crawly scroller". So it might just need a backport if that's not too complex.
-
CaptainTobinwhat is a creepy crawly scroller lol
-
JamminUnitI _suppose_ a-865 means that drop-down menu where you can go through all open tabs.