Bug 1348050 - Part 3: Mark channel as urgent-start for loading image. r=baku,mayhemer

This part is mainly to mark the channel as urgent-start if src related
attributes in HTMLImageElement and HTMLInputElement is set and the channel is
open due to user interaction. Unfortunately, we cannot just check the event
state just after creating channel since some loading image tasks will be queue
and execute in stable state. Thus, I store the event state in elements and
pass it to the place where create the channel.

MozReview-Commit-ID: GBdAkPfVzsn
This commit is contained in:
Tom Tung
2017-04-25 09:17:38 +08:00
parent bb0f7ffe58
commit dc2648e8f2
13 changed files with 99 additions and 6 deletions

View File

@@ -2230,6 +2230,7 @@ nsImageFrame::LoadIcon(const nsAString& aSpec,
nullptr,
contentPolicyType,
EmptyString(),
false, /* aUseUrgentStartForChannel */
aRequest);
}