On Monday, October 21, 2013 5:45:44 PM UTC+2, Neil wrote:
> Well, you could turn of that error; it's just a pref. Of course you 
> would then decide whether to trap all the other DOMWindowClosing events 
> to stop other random scripts from closing windows.
> 
> Alternatively, you could maybe looking into setting the window to have 
> an app docShell, in which case it's allowed to close itself.

I can't really change the user's prefs, and the scripts are all trusted so 
there isn't a problem there. What exactly do you mean by setting the window to 
have an app docShell? You mean load it into a browser with type = "chrome"? 
Unfortunately I can't do that if I want it to have localStorage.

I think there must be a way for me to override the close() method of the 
window. I'll have another look and confirm that I am really setting it on the 
unwrapped window object.
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to