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:
@@ -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");
|
||||
|
||||
@@ -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 () {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user