mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-24 07:42:26 +01:00
Open new windows properly in dactyl.open(). Closes issue #222.
--HG-- extra : rebase_source : 20823b8a8742598416b321c091f67efd6da98aa4
This commit is contained in:
@@ -1040,8 +1040,9 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
||||
});
|
||||
|
||||
case dactyl.NEW_WINDOW:
|
||||
window.open();
|
||||
let win = services.windowMediator.getMostRecentWindow("navigator:browser");
|
||||
var handler = Cc['@mozilla.org/browser/clh;1'].getService(Ci.nsIBrowserHandler);
|
||||
let win = window.openDialog(document.documentURI, "_blank", "chrome,all,dialog=no",
|
||||
handler.defaultArgs);
|
||||
win.loadURI(url, null, postdata);
|
||||
browser = win.getBrowser();
|
||||
return win.content;
|
||||
|
||||
Reference in New Issue
Block a user