If I open chrome in app mode (using --app=<foo>), is there any way to
programmatically exit? Calling window.close() works, but only if no
new tabs have been opened; in this case the user must manually close
all tabs using the "x" before the process exits.
(In other words, is there some way I can make chrome in app mode act
more like xulrunner where I can do something like:
var app = Components.classes['@
mozilla.org/toolkit/app-startup;
1'].getService(Components.interfaces.nsIAppStartup);
and call quit() on that to close the app)
In addition, is there a programmatic way of determining that the page
is loaded in chrome running in app mode?
Thanks,
Owen