-myk
> The case Fabricio had ( another thread about StyleSheet FX4 etc ) is
> that sort of scenario. In the old extension world, he would need to
> simply overlay the main browser, while with the new Jetpack
> architecture he needs to iterate with all windows using the windows
> mediator.
Yes, that's right, although our goal is to provide simple, easy-to-use
APIs for common tasks for which addons used to use XUL overlays, like
adding icons to the browser chrome.
> Is this correct assumption and way to explain ? That Jetpacks, even
> running in final-ui-startup would be then a one instance app that
> happens after the very first window is created, then perhaps would I
> be able to get a reference to a new window if I keep monitoring the
> final-ui-startup ? ( CTRL N )
I think final-ui-startup only fires once, but if you wanted to find out
each time a new window opened, you could do so by using the window-utils
module, which lets you register as a listener for window open events. As
I understand it, it'll even notify you about windows that have already
been opened upon registration, so you don't have to have different code
paths for already opened windows and those that will open in the future.
-myk