1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-05 19:25:46 +01:00

Fix :wino <url>. Closes issue #... oh, it was only a mailing list post.

This commit is contained in:
Kris Maglione
2011-01-07 14:59:43 -05:00
parent 7ba2f1657b
commit a0c1089e08

View File

@@ -1020,9 +1020,6 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
// decide where to load the first url
switch (where) {
case dactyl.CURRENT_TAB:
browser.loadURIWithFlags(url, flags, null, null, postdata);
return browser.contentWindow;
case dactyl.NEW_TAB:
if (!dactyl.has("tabs"))
@@ -1035,9 +1032,13 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
case dactyl.NEW_WINDOW:
let win = window.openDialog(document.documentURI, "_blank", "chrome,all,dialog=no");
while (win.document.readyState != "complete")
util.threadYield();
browser = win.getBrowser();
// FALLTHROUGH
case dactyl.CURRENT_TAB:
browser.loadURIWithFlags(url, flags, null, null, postdata);
return win.content;
return browser.contentWindow;
}
}
catch (e) {}