You are also do it proactively by listening for this event: https://developer.mozilla.org/En/Code_snippets/Tabbed_browser#Notification_when_a_tab_is_added_or_removed for opened tabs. For windows, you can overlay browser.xul and use the load event.
In both cases, you can keep a counter or boolean flag in a JS singleton module. Eric On Wed, Dec 30, 2009 at 5:58 PM, Jesper Staun Hansen <[email protected] > wrote: > http://articles.sitepoint.com/article/ten-tips-firefox-extensions/2 > number 8 should serve you well as an idea. > > On Wed, Dec 30, 2009 at 9:21 PM, maik gollnick <[email protected]>wrote: > >> hi, >> >> is there any way to detect the size of all current opened >> firefox\seamonkey browsers? i want to lock my extension when more than one >> firefox is opened. my first idea was to set a unigue key in the preferences >> at startup and release it at browsers close event. it sounds good but >> doesn't work when the browser crashed before and the key was not released. >> >> thx >> -- >> Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 >> - >> sicherer, schneller und einfacher! http://portal.gmx.net/de/go/chbrowser >> _______________________________________________ >> Project_owners mailing list >> [email protected] >> https://www.mozdev.org/mailman/listinfo/project_owners >> > > > _______________________________________________ > Project_owners mailing list > [email protected] > https://www.mozdev.org/mailman/listinfo/project_owners > >
_______________________________________________ Project_owners mailing list [email protected] https://www.mozdev.org/mailman/listinfo/project_owners
