The "Options" in Firefox opens:
- No icon on the taskbar
- Are blocking the ability to restore to the main window.
How to do the extension to other windows, type:
chrome://browser/content/search/engineManager.xul
The "Options" in Firefox opens:
How to do the extension to other windows, type:
chrome://browser/content/search/engineManager.xul
Without an icon and not in taskbar? You must mean a dialog window.
var ww = Components.classes["@mozilla.org/embedcomp/window-watcher;1"].getService(Components.interfaces.nsIWindowWatcher);
ww.openWindow(window, "chrome://browser/content/search/engineManager.xul", "_blank", "chrome,dialog,modal,centerscreen,resizable", null);
If you want the no icon and nothing showing in taskbar, you MUST pass a first argument window, the dialog will be tied to this window, AND you MUST pass dialog
and modal
as a feature
can also use Services.ww.openWindow
instead of var ww = Components.classes["@mozilla.org/embedcomp/window-watcher;1"].getService(Components.interfaces.nsIWindowWatcher);
IF you have imported Services.jsm
.
That guy @nmaier is asleep right now :haha: but when you wake up nmaier man, is there anywhere that lists all the options we can use in the features
argument?
Edit: Update:
Reason it's not working is because from your scope window
is not defined. So set window to the most recent window like by going: Services.wm.getMostRecentWindow('navigator:browser')
. Or you can use null
in place of 'navigator:browser'
.
SDK way because thats what it looks like you're doing from your comment:
var {Cu} = require("chrome");
Cu.import('resource://gre/modules/Services.jsm');
Services.ww.openWindow(Services.wm.getMostRecentWindow('navigator:browser'), "chrome://browser/content/search/engineManager.xul", "_blank", "chrome,dialog,modal,centerscreen,resizable", null);