mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Bug 1724718 - put missing chrome/resource check from jar channels in a better place so we catch all cases, r=valentin
Depends on D122166 Differential Revision: https://phabricator.services.mozilla.com/D122167
This commit is contained in:
parent
593b780331
commit
4027d30a67
@ -279,10 +279,6 @@ nsresult nsJARChannel::CreateJarInput(nsIZipReaderCache* jarCache,
|
||||
new nsJARInputThunk(reader, mJarURI, mJarEntry, jarCache != nullptr);
|
||||
rv = input->Init();
|
||||
if (NS_FAILED(rv)) {
|
||||
if (rv == NS_ERROR_FILE_NOT_FOUND ||
|
||||
rv == NS_ERROR_FILE_TARGET_DOES_NOT_EXIST) {
|
||||
CheckForBrokenChromeURL(mLoadInfo, mOriginalURI);
|
||||
}
|
||||
return rv;
|
||||
}
|
||||
|
||||
@ -482,6 +478,10 @@ nsresult nsJARChannel::OnOpenLocalFileComplete(nsresult aResult,
|
||||
MOZ_ASSERT(mIsPending);
|
||||
|
||||
if (NS_FAILED(aResult)) {
|
||||
if (aResult == NS_ERROR_FILE_NOT_FOUND ||
|
||||
aResult == NS_ERROR_FILE_TARGET_DOES_NOT_EXIST) {
|
||||
CheckForBrokenChromeURL(mLoadInfo, mOriginalURI);
|
||||
}
|
||||
if (!aIsSyncCall) {
|
||||
NotifyError(aResult);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user