DescriptionRemove EventSender from HTMLLinkElement
This CL replaces EventSender in HTMLLinkElement with postTask():
Instead of calling HTMLLinkElement::dispatchPendingLoadEvents() in
Document::implicitClose() to enforce <link>'s onload events to be executed
before the document's onload event, this CL blocks document's onload until
<link>'s onload event using IncrementLoadEventDelayCount.
This CL also modifies SimTest:
This CL potentially makes onload events of <link> and documents async and
delayed, and thus SimTest can be destructed before document's onload event,
which cause assertion failure.
This CL calls testing::runPendingTasks() in ~SimTest() to flush scheduled
onload events to make Document to be loaded before SimTest's destruction.
BUG=624697
Committed: https://crrev.com/aaf5ece46ff3b24c2f5ff0054600900f60c70ce4
Cr-Commit-Position: refs/heads/master@{#418835}
Patch Set 1 #Patch Set 2 : Rebase #Patch Set 3 : SimTest Fix #Patch Set 4 : Use TaskRunnerHelper #
Total comments: 2
Patch Set 5 : Use DOMManipulation #Patch Set 6 : Rebase #Patch Set 7 : Rebase #Patch Set 8 : Rebase #
Depends on Patchset: Messages
Total messages: 27 (16 generated)
|