mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 21:07:59 +01:00
Fix error when closing last about:blank tab on FF36. Closes issue #299.
--HG-- branch : key-processing
This commit is contained in:
@@ -85,7 +85,7 @@ var Config = Module("config", ConfigBase, {
|
||||
if (this.tabbrowser.mTabs.length > 1)
|
||||
this.tabbrowser.removeTab(tab);
|
||||
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);
|
||||
this.tabbrowser.removeTab(tab);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user