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

Issue 2544303002: Use MainThread on EmptyFrameScheduler (Closed)

Created:
4 years ago by tzik
Modified:
4 years ago
Reviewers:
yhirano, nhiroki
CC:
chromium-reviews, blink-reviews, loading-reviews_chromium.org, tyoshino+watch_chromium.org, Nate Chapin, gavinp+loader_chromium.org, blink-worker-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use MainThread on EmptyFrameScheduler The dummy Frame on Workers has EmptyFrameScheduler, and it returns a WebTaskRunner for the current thread. However, since all Frame should belong to the main thread, the resulting WebTaskRunner should run on the main thread even when the task runner is requested on a non-main thread. This CL ensures EmptyFrameScheduler to use the main thread task runner. Committed: https://crrev.com/8e40d35a47b2bbdf70d9a4d13c3978678a5d9628 Cr-Commit-Position: refs/heads/master@{#436265}

Patch Set 1 #

Patch Set 2 : +DCHECK #

Patch Set 3 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -3 lines) Patch
M third_party/WebKit/Source/core/loader/EmptyClients.cpp View 1 2 2 chunks +4 lines, -3 lines 0 comments Download

Messages

Total messages: 33 (20 generated)
tzik
PTAL
4 years ago (2016-12-05 06:11:01 UTC) #7
yhirano
> OTOH, its ExecutionContext::postTask posts the task to the main thread What is "its ExecutionContext::postTask"?
4 years ago (2016-12-05 06:26:45 UTC) #8
tzik
On 2016/12/05 06:26:45, yhirano wrote: > > OTOH, its ExecutionContext::postTask posts the task to the ...
4 years ago (2016-12-05 06:29:21 UTC) #9
nhiroki
Can you provide a concrete example/callpath when a task is accidentally posted to a worker's ...
4 years ago (2016-12-05 06:37:34 UTC) #10
yhirano
Are you saying that EmptyFrameScheduler is always attached to an object belonging to the main ...
4 years ago (2016-12-05 07:03:23 UTC) #11
tzik
On 2016/12/05 06:37:34, nhiroki wrote: > Can you provide a concrete example/callpath when a task ...
4 years ago (2016-12-05 07:10:10 UTC) #12
tzik
On 2016/12/05 07:03:23, yhirano wrote: > Are you saying that EmptyFrameScheduler is always attached to ...
4 years ago (2016-12-05 07:17:49 UTC) #15
nhiroki
lgtm
4 years ago (2016-12-05 08:34:53 UTC) #18
yhirano
code LGTM, but Modifying the issue description would be helpful.
4 years ago (2016-12-05 09:13:24 UTC) #21
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/2544303002/40001
4 years ago (2016-12-05 12:03:59 UTC) #24
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/2544303002/40001
4 years ago (2016-12-05 12:06:30 UTC) #28
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-12-05 12:10:42 UTC) #31
commit-bot: I haz the power
4 years ago (2016-12-05 12:12:16 UTC) #33
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/8e40d35a47b2bbdf70d9a4d13c3978678a5d9628
Cr-Commit-Position: refs/heads/master@{#436265}

Powered by Google App Engine
This is Rietveld 408576698