From 3ed7008565d6f90c0f89aaf955c4881618dde441 Mon Sep 17 00:00:00 2001 From: Anthony Martin Date: Thu, 27 Jun 2013 04:15:02 -0700 Subject: [PATCH] Change class name for history service. Firefox 22 removed the nsIGlobalHistory2 interface and no longer registers the @mozilla.org/browser/global-history;2 class. Instead, we use @mozilla.org/browser/nav-history-service;1. --HG-- extra : rebase_source : e31e53e41e30f09974d7564a310b1226b7d7f06d --- common/modules/services.jsm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/modules/services.jsm b/common/modules/services.jsm index d3ac781f..d440b011 100644 --- a/common/modules/services.jsm +++ b/common/modules/services.jsm @@ -52,8 +52,8 @@ var Services = Module("Services", { this.add("favicon", "@mozilla.org/browser/favicon-service;1", "nsIFaviconService"); this.add("file:", this.PROTOCOL + "file", "nsIFileProtocolHandler"); this.add("focus", "@mozilla.org/focus-manager;1", "nsIFocusManager"); - this.add("history", "@mozilla.org/browser/global-history;2", - ["nsIBrowserHistory", "nsIGlobalHistory2", "nsINavHistoryService", "nsPIPlacesDatabase"]); + this.add("history", "@mozilla.org/browser/nav-history-service;1", + ["nsIBrowserHistory", "nsINavHistoryService", "nsPIPlacesDatabase"]); this.add("io", "@mozilla.org/network/io-service;1", "nsIIOService"); this.add("json", "@mozilla.org/dom/json;1", "nsIJSON", "createInstance"); this.add("listeners", "@mozilla.org/eventlistenerservice;1", "nsIEventListenerService");