Bug 823436 - Response errors when trying to load a source's text prevent global searches from displaying any results, r=past
authorVictor Porof <vporof@mozilla.com>
Thu, 20 Dec 2012 19:20:51 +0200
changeset 125757 4b7b934b358a3e02402371877443653ff910781a
parent 125756 7a3d7c03aab5109d0c21d3f1a226c187e4a00528
child 125758 3cc5ceca28af40d6b10bfa0489d46e7876d06b4c
push id2151
push userlsblakk@mozilla.com
push dateTue, 19 Feb 2013 18:06:57 +0000
treeherdermozilla-beta@4952e88741ec [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspast
bugs823436
milestone20.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 823436 - Response errors when trying to load a source's text prevent global searches from displaying any results, r=past
browser/devtools/debugger/debugger-controller.js
--- a/browser/devtools/debugger/debugger-controller.js
+++ b/browser/devtools/debugger/debugger-controller.js
@@ -1184,17 +1184,18 @@ SourceScripts.prototype = {
     if (aSource.loaded) {
       aCallback(aSource.url, aSource.text);
       return;
     }
 
     // Get the source text from the active thread.
     this.activeThread.source(aSource.source).source(function(aResponse) {
       if (aResponse.error) {
-        Cu.reportError("Error loading " + aUrl);
+        Cu.reportError("Error loading " + aSource.url + "\n" + aResponse.error);
+        aCallback(aSource.url, "");
         return;
       }
       aSource.loaded = true;
       aSource.text = aResponse.source;
       aCallback(aSource.url, aResponse.source);
     });
   }
 };