Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(114)

Issue 2275493002: Remove EventSender from HTMLLinkElement (Closed)

Created:
4 years, 4 months ago by hiroshige
Modified:
4 years, 3 months ago
CC:
chromium-reviews, blink-reviews-html_chromium.org, gavinp+prerender_chromium.org, sof, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, blink-reviews, rwlbuis, Charlie Harrison
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -22 lines) Patch
M third_party/WebKit/Source/core/dom/Document.cpp View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/HTMLLinkElement.h View 1 4 chunks +3 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLLinkElement.cpp View 1 2 3 4 4 chunks +3 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/web/tests/sim/SimTest.cpp View 1 2 2 chunks +4 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 27 (16 generated)
hiroshige
PTAL. I replaced EventSender with postTask() to the loading task runner. Is it a right ...
4 years, 3 months ago (2016-09-01 11:57:31 UTC) #10
haraken
https://codereview.chromium.org/2275493002/diff/120001/third_party/WebKit/Source/core/html/HTMLLinkElement.cpp File third_party/WebKit/Source/core/html/HTMLLinkElement.cpp (right): https://codereview.chromium.org/2275493002/diff/120001/third_party/WebKit/Source/core/html/HTMLLinkElement.cpp#newcode316 third_party/WebKit/Source/core/html/HTMLLinkElement.cpp:316: TaskRunnerHelper::getLoadingTaskRunner(&document())->postTask(BLINK_FROM_HERE, WTF::bind(&HTMLLinkElement::dispatchPendingEvent, wrapPersistent(this), passed(IncrementLoadEventDelayCount::create(document())))); TaskRunnerHelper::getXXXTaskRunner has been deprecated (sorry ...
4 years, 3 months ago (2016-09-01 17:48:37 UTC) #11
hiroshige
(The test failure is tracked by crbug.com/643621.) https://codereview.chromium.org/2275493002/diff/120001/third_party/WebKit/Source/core/html/HTMLLinkElement.cpp File third_party/WebKit/Source/core/html/HTMLLinkElement.cpp (right): https://codereview.chromium.org/2275493002/diff/120001/third_party/WebKit/Source/core/html/HTMLLinkElement.cpp#newcode316 third_party/WebKit/Source/core/html/HTMLLinkElement.cpp:316: TaskRunnerHelper::getLoadingTaskRunner(&document())->postTask(BLINK_FROM_HERE, WTF::bind(&HTMLLinkElement::dispatchPendingEvent, ...
4 years, 3 months ago (2016-09-02 10:11:26 UTC) #12
haraken
LGTM
4 years, 3 months ago (2016-09-02 10:23:08 UTC) #14
Yoav Weiss
On 2016/09/02 10:11:26, hiroshige wrote: > (The test failure is tracked by crbug.com/643621.) In this ...
4 years, 3 months ago (2016-09-02 10:28:03 UTC) #15
Yoav Weiss
On 2016/09/02 10:28:03, Yoav Weiss wrote: > On 2016/09/02 10:11:26, hiroshige wrote: > > (The ...
4 years, 3 months ago (2016-09-02 10:31:48 UTC) #16
nhiroki
lgtm
4 years, 3 months ago (2016-09-05 02:00:40 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2275493002/200001
4 years, 3 months ago (2016-09-15 10:10:27 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2275493002/200001
4 years, 3 months ago (2016-09-15 10:15:22 UTC) #23
commit-bot: I haz the power
Committed patchset #8 (id:200001)
4 years, 3 months ago (2016-09-15 11:18:42 UTC) #25
commit-bot: I haz the power
4 years, 3 months ago (2016-09-15 11:20:55 UTC) #27
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/aaf5ece46ff3b24c2f5ff0054600900f60c70ce4
Cr-Commit-Position: refs/heads/master@{#418835}

Powered by Google App Engine
This is Rietveld 408576698