mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1064774 - Prevent script actor from breaking debugger protocol on unavailable resources. r=past
This commit is contained in:
parent
b7a4bb2834
commit
07de38817b
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user