Bug 947592 - Streamline ReportLoadError. r=bent
authorAndrew McCreight <continuation@gmail.com>
Thu, 23 Jan 2014 17:20:53 -0800
changeset 164980 1c3f5cb23af7e22f43e17efef72806433b388e1c
parent 164979 a4c6de5079e573bb0fe41c56e90d95ad3a273140
child 164981 70a04464772f2ec40d4b17b72f4409dbe5aaf64c
push id38865
push useramccreight@mozilla.com
push dateFri, 24 Jan 2014 01:21:36 +0000
treeherdermozilla-inbound@1c3f5cb23af7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbent
bugs947592
milestone29.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 947592 - Streamline ReportLoadError. r=bent
dom/workers/ScriptLoader.cpp
--- a/dom/workers/ScriptLoader.cpp
+++ b/dom/workers/ScriptLoader.cpp
@@ -871,18 +871,17 @@ void ReportLoadError(JSContext* aCx, con
       break;
 
     case NS_ERROR_DOM_SECURITY_ERR:
     case NS_ERROR_DOM_SYNTAX_ERR:
       Throw(aCx, aLoadResult);
       break;
 
     default:
-      JS_ReportError(aCx, "Failed to load script: %s (nsresult = 0x%x)",
-                     url.get(), aLoadResult);
+      JS_ReportError(aCx, "Failed to load script (nsresult = 0x%x)", aLoadResult);
   }
 }
 
 bool
 LoadWorkerScript(JSContext* aCx)
 {
   WorkerPrivate* worker = GetWorkerPrivateFromContext(aCx);
   NS_ASSERTION(worker, "This should never be null!");