On 2013-10-22 12:52 PM, Matthew Gertner wrote:
I am trying to close a popup browser.xul window during Firefox shutdown so that
it won't get loaded on restart by the session saver. I close the window before
the browser shuts down (e.g. on quit-application-requested) but it is still
opened when I start the browser again.
After trawling through SessionStore.jsm, it looks like the problem is that the session
store "freezes" the session on quit-application-requested so that it doesn't
accidently lose windows that are closed as a normal part of the shutdown process. It
wasn't immediately obvious to me how to circumvent this behavior.
The only idea I have is to grab the state with SessionStore.getBrowserState(),
remove my window manually and then set it back with
SessionStore.setBrowserState(). Is there an easier way to do this?
That won't work well, since it will close all but one of the windows and
tabs and reopen them all again.
Cheers,
Ehsan
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform