What is the XULRunner equivalent of the following button handler?
function launch_page() {
var win = Components.classes['@mozilla.org/appshell/window-mediator;1']
.getService(Components.interfaces.nsIWindowMediator)
.getMostRecentWindow('navigator:browser');
win.openUILinkIn('http://www.google.com', 'window');
}
This does not do anything in my XUL app that's installed to Program Files using XULRunner --install-app ./foo.xpi.
Is there any way for my XUL app to launch the user's default browser to display a web page on a button click?
This works for now:
Anybody got a more standard way?