Bug 1064774 - Prevent script actor from breaking debugger protocol on unavailable resources. r=past

This commit is contained in:
Alexandre Poirot 2014-09-09 02:59:00 +02:00
parent b7a4bb2834
commit 07de38817b

View File

@ -5348,7 +5348,14 @@ function fetch(aURL, aOptions={ loadFromCache: true }) {
channel.loadFlags = aOptions.loadFromCache
? channel.LOAD_FROM_CACHE
: channel.LOAD_BYPASS_CACHE;
channel.asyncOpen(streamListener, null);
try {
channel.asyncOpen(streamListener, null);
} catch(e) {
deferred.reject(new Error("Request failed for '"
+ url
+ "': "
+ e.message));
}
break;
}