diff --git a/common/content/dactyl.js b/common/content/dactyl.js index c00bac1c..17e82fc4 100644 --- a/common/content/dactyl.js +++ b/common/content/dactyl.js @@ -1040,9 +1040,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), { }); case dactyl.NEW_WINDOW: - var handler = Cc['@mozilla.org/browser/clh;1'].getService(Ci.nsIBrowserHandler); - let win = window.openDialog(document.documentURI, "_blank", "chrome,all,dialog=no", - handler.defaultArgs); + let win = window.openDialog(document.documentURI, "_blank", "chrome,all,dialog=no"); win.loadURI(url, null, postdata); browser = win.getBrowser(); return win.content; diff --git a/common/content/editor.js b/common/content/editor.js index 68d953e8..a6c58a48 100644 --- a/common/content/editor.js +++ b/common/content/editor.js @@ -45,7 +45,7 @@ var Editor = Module("editor", { let start = elem.selectionStart; // caret position let end = elem.selectionEnd; elem.value = elem.value.substring(0, start) + text + elem.value.substring(end); - elem.selectionStart = start + (toStart ? 0 : text.length); + elem.selectionStart = Math.min(start + (toStart ? 0 : text.length), elem.value.length); elem.selectionEnd = elem.selectionStart; elem.scrollTop = top; diff --git a/common/modules/base.jsm b/common/modules/base.jsm index fafb9887..525c763b 100644 --- a/common/modules/base.jsm +++ b/common/modules/base.jsm @@ -160,7 +160,7 @@ function defineModule(name, params) { defineModule.loadLog = []; Object.defineProperty(defineModule.loadLog, "push", { value: function (val) { - if (false) + if (true) defineModule.dump(val + "\n"); this[this.length] = Date.now() + " " + val; } diff --git a/pentadactyl/NEWS b/pentadactyl/NEWS index a0a998f1..50059e6e 100644 --- a/pentadactyl/NEWS +++ b/pentadactyl/NEWS @@ -1,4 +1,4 @@ -1.0b4.1: +1.0b5pre: * Extensive Firefox 4 support, including: - Fully restartless. Can now be installed, uninstalled, enabled, disabled, and upgraded without restarting Firefox. @@ -81,7 +81,7 @@ - Added -agent flag to :style. - The -append flag now updates existing properties rather than simply appending its arguments to the previous value. - - Active filters are not highlighted in :style listings. + - Active filters are now highlighted in :style listings. - :style-related commands now divide their completions between those active and inactive for the current site. - CSS property name completion is now available. diff --git a/pentadactyl/install.rdf b/pentadactyl/install.rdf index 546a8f5d..a03a3837 100644 --- a/pentadactyl/install.rdf +++ b/pentadactyl/install.rdf @@ -4,7 +4,7 @@