mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-25 00:27:29 +09:00
Issue #2135 - Follow-up: Ensure document is not null in nsImageLoadingContent::BindToTree
This commit is contained in:
parent
15e3a38b55
commit
cfef3fa487
1 changed files with 7 additions and 5 deletions
|
|
@ -1431,13 +1431,15 @@ nsImageLoadingContent::BindToTree(nsIDocument* aDocument, nsIContent* aParent,
|
||||||
bool aCompileEventHandlers)
|
bool aCompileEventHandlers)
|
||||||
{
|
{
|
||||||
// We may be getting connected and our image should be tracked.
|
// We may be getting connected and our image should be tracked.
|
||||||
if (GetOurCurrentDoc()) {
|
nsCOMPtr<nsIDocument> doc = GetOurCurrentDoc();
|
||||||
TrackImage(mCurrentRequest);
|
if (!doc)
|
||||||
TrackImage(mPendingRequest);
|
return;
|
||||||
}
|
|
||||||
|
TrackImage(mCurrentRequest);
|
||||||
|
TrackImage(mPendingRequest);
|
||||||
|
|
||||||
if (mCurrentRequestFlags & REQUEST_BLOCKS_ONLOAD)
|
if (mCurrentRequestFlags & REQUEST_BLOCKS_ONLOAD)
|
||||||
aDocument->BlockOnload();
|
doc->BlockOnload();
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue