diff --git a/mozilla/content/html/document/src/nsHTMLDocument.cpp b/mozilla/content/html/document/src/nsHTMLDocument.cpp index 9aeee4dd0ca..e306599710a 100644 --- a/mozilla/content/html/document/src/nsHTMLDocument.cpp +++ b/mozilla/content/html/document/src/nsHTMLDocument.cpp @@ -2853,7 +2853,7 @@ nsHTMLDocument::GetSelection(nsAWritableString& aReturn) nsCOMPtr privSel(do_QueryInterface(domSelection)); nsCOMPtr consoleService - (do_GetService("mozilla.consoleservice.1")); + (do_GetService("@mozilla.org/consoleservice;1")); if (consoleService) { consoleService->LogStringMessage(NS_LITERAL_STRING("Deprecated method document.getSelection() called. Please use window.getSelection() instead.").get()); diff --git a/mozilla/content/html/style/src/nsCSSScanner.cpp b/mozilla/content/html/style/src/nsCSSScanner.cpp index 45df711b4e4..0c1e5a9171b 100644 --- a/mozilla/content/html/style/src/nsCSSScanner.cpp +++ b/mozilla/content/html/style/src/nsCSSScanner.cpp @@ -223,9 +223,9 @@ void nsCSSScanner::ReportError(const nsAReadableString& aError) // Log it to the JavaScript console nsCOMPtr consoleService - (do_GetService("mozilla.consoleservice.1")); + (do_GetService("@mozilla.org/consoleservice;1")); nsCOMPtr errorObject - (do_CreateInstance("mozilla.scripterror.1")); + (do_CreateInstance("@mozilla.org/scripterror;1")); if (consoleService && errorObject) { nsresult rv; diff --git a/mozilla/content/xul/document/src/nsXULPrototypeDocument.cpp b/mozilla/content/xul/document/src/nsXULPrototypeDocument.cpp index f10f7ac4c5a..83eefc6c327 100644 --- a/mozilla/content/xul/document/src/nsXULPrototypeDocument.cpp +++ b/mozilla/content/xul/document/src/nsXULPrototypeDocument.cpp @@ -383,7 +383,7 @@ nsXULPrototypeDocument::ReportScriptError(nsIScriptError *errorObject) // Get the console service, where we're going to register the error. nsCOMPtr consoleService - (do_GetService("mozilla.consoleservice.1")); + (do_GetService("@mozilla.org/consoleservice;1")); if (consoleService != nsnull) { rv = consoleService->LogMessage(errorObject); diff --git a/mozilla/docshell/base/nsDocShell.cpp b/mozilla/docshell/base/nsDocShell.cpp index 38bbce59c26..cad9a43f58d 100644 --- a/mozilla/docshell/base/nsDocShell.cpp +++ b/mozilla/docshell/base/nsDocShell.cpp @@ -2245,7 +2245,7 @@ NS_IMETHODIMP nsDocShell::ReportScriptError(nsIScriptError *errorObject) // Get the console service, where we're going to register the error. nsCOMPtr consoleService - (do_GetService("mozilla.consoleservice.1")); + (do_GetService("@mozilla.org/consoleservice;1")); if (consoleService != nsnull) { diff --git a/mozilla/extensions/cookie/nsCookieHTTPNotify.cpp b/mozilla/extensions/cookie/nsCookieHTTPNotify.cpp index afcd626b913..64ca57e3a06 100644 --- a/mozilla/extensions/cookie/nsCookieHTTPNotify.cpp +++ b/mozilla/extensions/cookie/nsCookieHTTPNotify.cpp @@ -63,7 +63,7 @@ NS_METHOD nsCookieHTTPNotify::RegisterProc(nsIComponentManager *aCompMgr, { // Register ourselves into the NS_CATEGORY_HTTP_STARTUP nsresult rv; - nsCOMPtr catman = do_GetService("mozilla.categorymanager.1", &rv); + nsCOMPtr catman = do_GetService("@mozilla.org/categorymanager;1", &rv); if (NS_FAILED(rv)) return rv; nsXPIDLCString prevEntry; @@ -79,7 +79,7 @@ NS_METHOD nsCookieHTTPNotify::UnregisterProc(nsIComponentManager *aCompMgr, const char *registryLocation) { nsresult rv; - nsCOMPtr catman = do_GetService("mozilla.categorymanager.1", &rv); + nsCOMPtr catman = do_GetService("@mozilla.org/categorymanager;1", &rv); if (NS_FAILED(rv)) return rv; nsXPIDLCString prevEntry; diff --git a/mozilla/extensions/irc/js/lib/chatzilla-service.js b/mozilla/extensions/irc/js/lib/chatzilla-service.js index 48fd15cb36e..652aa730673 100644 --- a/mozilla/extensions/irc/js/lib/chatzilla-service.js +++ b/mozilla/extensions/irc/js/lib/chatzilla-service.js @@ -277,7 +277,7 @@ function (compMgr, fileSpec, location, type) CLINE_SERVICE_CONTRACTID, fileSpec, location, true, true, type); - catman = Components.classes["mozilla.categorymanager.1"] + catman = Components.classes["@mozilla.org/categorymanager;1"] .getService(nsICategoryManager); catman.addCategoryEntry("command-line-argument-handlers", "chatzilla command line handler", @@ -301,7 +301,7 @@ ChatzillaModule.unregisterSelf = function(compMgr, fileSpec, location) { compMgr.unregisterComponentSpec(CLINE_SERVICE_CID, fileSpec); - catman = Components.classes["mozilla.categorymanager.1"] + catman = Components.classes["@mozilla.org/categorymanager;1"] .getService(nsICategoryManager); catman.deleteCategoryEntry("command-line-argument-handlers", CLINE_SERVICE_CONTRACTID, true); diff --git a/mozilla/extensions/xml-rpc/test/xml-rpc.xul b/mozilla/extensions/xml-rpc/test/xml-rpc.xul index 7fe8de4dc84..015e6c18ef6 100644 --- a/mozilla/extensions/xml-rpc/test/xml-rpc.xul +++ b/mozilla/extensions/xml-rpc/test/xml-rpc.xul @@ -8,7 +8,7 @@