mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-02 22:08:40 +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)
|
||||
{
|
||||
// We may be getting connected and our image should be tracked.
|
||||
if (GetOurCurrentDoc()) {
|
||||
TrackImage(mCurrentRequest);
|
||||
TrackImage(mPendingRequest);
|
||||
}
|
||||
nsCOMPtr<nsIDocument> doc = GetOurCurrentDoc();
|
||||
if (!doc)
|
||||
return;
|
||||
|
||||
TrackImage(mCurrentRequest);
|
||||
TrackImage(mPendingRequest);
|
||||
|
||||
if (mCurrentRequestFlags & REQUEST_BLOCKS_ONLOAD)
|
||||
aDocument->BlockOnload();
|
||||
doc->BlockOnload();
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue