Bug 1317901 - Ensure image loads don't short-circuit if element's adopting steps are run; r=jdm

MozReview-Commit-ID: Cbg3EHtyL8f
This commit is contained in:
Edgar Chen
2016-11-18 15:54:21 +08:00
parent 0c2f0bad63
commit 0a3392a555
5 changed files with 21 additions and 1 deletions

View File

@@ -710,6 +710,13 @@ HTMLImageElement::IntrinsicState() const
nsImageLoadingContent::ImageState();
}
void
HTMLImageElement::NodeInfoChanged()
{
// Resetting the last selected source if adoption steps are run.
mLastSelectedSource = nullptr;
}
// static
already_AddRefed<HTMLImageElement>
HTMLImageElement::Image(const GlobalObject& aGlobal,