1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-07 23:54:12 +01:00

Deal with sites with finicky input handling. Add some docs. Fix :reh|foo / :rehash +args. Closes issue #551.

This commit is contained in:
Kris Maglione
2011-07-27 06:45:39 -04:00
parent 8d2f44c379
commit b56963cdfd
5 changed files with 60 additions and 35 deletions

View File

@@ -25,6 +25,7 @@ var Services = Module("Services", {
this.add("appStartup", "@mozilla.org/toolkit/app-startup;1", "nsIAppStartup");
this.add("autoCompleteSearch", "@mozilla.org/autocomplete/search;1?name=history", "nsIAutoCompleteSearch");
this.add("bookmarks", "@mozilla.org/browser/nav-bookmarks-service;1", "nsINavBookmarksService");
this.add("bootstrap", "@dactyl.googlecode.com/base/bootstrap");
this.add("browserSearch", "@mozilla.org/browser/search-service;1", "nsIBrowserSearchService");
this.add("cache", "@mozilla.org/network/cache-service;1", "nsICacheService");
this.add("charset", "@mozilla.org/charset-converter-manager;1", "nsICharsetConverterManager");

View File

@@ -150,6 +150,10 @@ var Storage = Module("Storage", {
init: function () {
this.cleanup();
if (services.bootstrap && !services.bootstrap.session)
services.bootstrap.session = {};
this.session = services.bootstrap ? services.bootstrap.session : {};
},
cleanup: function () {

View File

@@ -1652,7 +1652,7 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
* re-enabling it.
*/
rehash: function (args) {
JSMLoader.commandlineArgs = args;
storage.session.commandlineArgs = args;
this.timeout(function () {
services.observer.notifyObservers(null, "startupcache-invalidate", "");
this.rehashing = true;