Bug 947592 - Streamline ReportLoadError. r=bent
authorAndrew McCreight <continuation@gmail.com>
Thu, 23 Jan 2014 17:20:53 -0800
changeset 181004 1c3f5cb23af7e22f43e17efef72806433b388e1c
parent 181003 a4c6de5079e573bb0fe41c56e90d95ad3a273140
child 181005 70a04464772f2ec40d4b17b72f4409dbe5aaf64c
push id3343
push userffxbld
push dateMon, 17 Mar 2014 21:55:32 +0000
treeherdermozilla-beta@2f7d3415f79f [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!");