I'm trying to create a tabbed browser that behaves like chromium:
When closing the browser, if at least one tab has the 'beforeunload' event registered to, that tab becomes selected and the entire closing process stops until the user makes a selection. If the user selects "stay on this page", the entire closing process is cancelled.
What I can't get done is understanding which tab is registered to the 'beforeunload' event without calling the 'closebrowser' method, but then tabs that don't have that even registered just close.
Is there any way to get it done?
Thanks,
Itai.