mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-27 17:47:34 +09:00
No Issue - NULL crash fix in nsExternalResourceMap::PendingLoad::OnDataAvailable
Curiously, we should have had this at our fork point (as it was backported by Mozilla to 52.5.2) by apparently Tobin's import wasn't actually 52.6.0. :-/
This commit is contained in:
parent
37dcef684a
commit
afefd0731b
1 changed files with 2 additions and 1 deletions
|
|
@ -995,7 +995,8 @@ nsExternalResourceMap::PendingLoad::OnDataAvailable(nsIRequest* aRequest,
|
||||||
uint64_t aOffset,
|
uint64_t aOffset,
|
||||||
uint32_t aCount)
|
uint32_t aCount)
|
||||||
{
|
{
|
||||||
NS_PRECONDITION(mTargetListener, "Shouldn't be getting called!");
|
// mTargetListener might be null if SetupViewer or AddExternalResource failed.
|
||||||
|
NS_ENSURE_TRUE(mTargetListener, NS_ERROR_FAILURE);
|
||||||
if (mDisplayDocument->ExternalResourceMap().HaveShutDown()) {
|
if (mDisplayDocument->ExternalResourceMap().HaveShutDown()) {
|
||||||
return NS_BINDING_ABORTED;
|
return NS_BINDING_ABORTED;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue