How to open XUL window/dialog in a new tab?
Is it possible开发者_Go百科 to open .xul file containing window or dialog as a new tab? I can open it as a separate window using window.open or window.openDialog, but I would prefer if it were a tab.
You can use loadOneTab():
gBrowser.loadOneTab("chrome://.../window.xul");
See also: https://developer.mozilla.org/en/Code_snippets/Tabbed_browser#Opening_a_URL_in_a_new_tab
精彩评论