Remove 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 Review-Url: https://codereview.chromium.org/2275493002 Cr-Commit-Position: refs/heads/master@{#418835}
Showing
Please register or sign in to comment