DescriptionDon't lower priority for scripts inserted by doc.write
HTML Chunks inserted by document.write() are run through a separate
instance of the preload scanner from the main document. If the main
document scanner has already discovered an image then all scripts
discovered by any preload scanner regardless of where they came from
would be considered late-body.
This behavior causes a regression where a document.write() in the head
that includes multiple script tags will discover them but treat them as
late-body scripts and only load them one at a time.
reland of http://crbug.com/2826213003
Only change from the original was to fix the layout test. Specifically,
the URL for the preload image was not re-used for the actual image
which caused the test to issue a console warning about the preload
not being used but only if the overall test took long enough for the
warning to trigger.
Patch set #1 is the original CL untouched
BUG=713727, 712338
Review-Url: https://codereview.chromium.org/2826213003
Cr-Commit-Position: refs/heads/master@{#467029}
Committed: https://chromium.googlesource.com/chromium/src/+/1e0d3cbbf60c67ba9856eadcb9e829b3c4bec6c7
patch from issue 2826213003 at patchset 70001 (http://crrev.com/2826213003#ps70001)
Review-Url: https://codereview.chromium.org/2841363002
Cr-Commit-Position: refs/heads/master@{#467672}
Committed: https://chromium.googlesource.com/chromium/src/+/591cbec71ef07912c8c7d2b0acc1efb25196d7f1
Patch Set 1 : Original CL #Patch Set 2 : Fixed layout test #Messages
Total messages: 12 (8 generated)
|