(do_GetService("mozilla.consoleservice.1"));
(do_GetService("@mozilla.org/consoleservice;1"));
nsXULPrototypeDocument::ReportScriptError(nsIScriptError *errorObject){   nsresult rv;   if (errorObject == nsnull)      return NS_ERROR_NULL_POINTER;   // Get the console service, where we're going to register the error.   nsCOMPtr<nsIConsoleService> consoleService      (do_GetService("mozilla.consoleservice.1"));   if (consoleService != nsnull) {       rv = consoleService->LogMessage(errorObject);       if (NS_SUCCEEDED(rv)) {           return NS_OK;       } else {           return rv;       }   } else {       return NS_ERROR_NOT_AVAILABLE;   }}