1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 14:27:59 +01:00

Fix error when closing last about:blank tab on FF36. Closes issue #299.

--HG--
extra : transplant_source : P%95%87n%EC%F51%BA%92h%12%8EV%1B2%B7%A5%D2%97%A9
This commit is contained in:
Kris Maglione
2011-01-23 20:07:50 -05:00
parent 92dbb759bc
commit 353f233167
2 changed files with 2 additions and 7 deletions

View File

@@ -425,12 +425,7 @@ var Buffer = Module("buffer", {
/** /**
* @property {string} The current top-level document's URL. * @property {string} The current top-level document's URL.
*/ */
get URL() { get URL() update(content.location.href, util.newURI(content.location.href)),
let str = String(content.location.href);
for (let [k, v] in Iterator(util.newURI(content.location.href)))
str[k] = v;
return str;
},
/** /**
* @property {number} The buffer's height in pixels. * @property {number} The buffer's height in pixels.

View File

@@ -85,7 +85,7 @@ var Config = Module("config", ConfigBase, {
if (this.tabbrowser.mTabs.length > 1) if (this.tabbrowser.mTabs.length > 1)
this.tabbrowser.removeTab(tab); this.tabbrowser.removeTab(tab);
else { else {
if (modules.buffer.URL != "about:blank" || window.getWebNavigation().sessionHistory.count > 0) { if (modules.buffer.uri.spec !== "about:blank" || window.getWebNavigation().sessionHistory.count > 0) {
dactyl.open("about:blank", dactyl.NEW_BACKGROUND_TAB); dactyl.open("about:blank", dactyl.NEW_BACKGROUND_TAB);
this.tabbrowser.removeTab(tab); this.tabbrowser.removeTab(tab);
} }