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

Issue 2163983004: Pass per-frame task runners to Workers (when possible) (Closed)

Created:
4 years, 5 months ago by kinuko
Modified:
4 years, 4 months ago
Reviewers:
hiroshige, haraken, Sami, nhiroki
CC:
chromium-reviews, falken, kinuko+worker_chromium.org, blink-reviews, horo+watch_chromium.org, kinuko+watch, blink-worker-reviews_chromium.org, nhiroki
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Pass per-frame task runners to Workers (when possible) - For in-process workers (i.e. dedicated/compositor workers): always use the associated document's task runners - For out-of-process workers (i.e. service/shared workers): keep using the default task runner of the main thread, but via TaskRunnerHelper so we could still start using different task runners for different tasks (e.g. loading vs timer) if we want. BUG=627034 Committed: https://crrev.com/66b07a326160fed57046fbb454f424a302d4cc6b Cr-Commit-Position: refs/heads/master@{#408652}

Patch Set 1 #

Patch Set 2 : #

Total comments: 3

Patch Set 3 : init parent frame task runners in ctor #

Patch Set 4 : (rebase) #

Total comments: 4

Patch Set 5 : addressed comments #

Messages

Total messages: 53 (34 generated)
kinuko
Something like this would probably work? PTL https://codereview.chromium.org/2163983004/diff/40001/third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp File third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp (right): https://codereview.chromium.org/2163983004/diff/40001/third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp#newcode102 third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp:102: WebTaskRunner* InProcessWorkerMessagingProxy::getParentFrameTaskRunner() ...
4 years, 4 months ago (2016-07-26 21:48:29 UTC) #16
nhiroki
drive-by comment https://codereview.chromium.org/2163983004/diff/40001/third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp File third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp (right): https://codereview.chromium.org/2163983004/diff/40001/third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp#newcode108 third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp:108: // yet. Just a question: Why don't ...
4 years, 4 months ago (2016-07-26 22:44:01 UTC) #18
kinuko
https://codereview.chromium.org/2163983004/diff/40001/third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp File third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp (right): https://codereview.chromium.org/2163983004/diff/40001/third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp#newcode108 third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp:108: // yet. On 2016/07/26 22:44:01, nhiroki wrote: > Just ...
4 years, 4 months ago (2016-07-27 02:11:49 UTC) #19
nhiroki
lgtm from worker's POV
4 years, 4 months ago (2016-07-27 03:55:59 UTC) #24
haraken
LGTM https://codereview.chromium.org/2163983004/diff/80001/third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp File third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp (right): https://codereview.chromium.org/2163983004/diff/80001/third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp#newcode104 third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp:104: WebTaskRunner* InProcessWorkerMessagingProxy::getParentFrameTaskRunner() I'd avoid adding this helper method ...
4 years, 4 months ago (2016-07-27 09:30:12 UTC) #27
kinuko
Thanks, https://codereview.chromium.org/2163983004/diff/80001/third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp File third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp (right): https://codereview.chromium.org/2163983004/diff/80001/third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp#newcode104 third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp:104: WebTaskRunner* InProcessWorkerMessagingProxy::getParentFrameTaskRunner() On 2016/07/27 09:30:12, haraken wrote: > ...
4 years, 4 months ago (2016-07-27 23:21:02 UTC) #34
haraken
Still LGTM
4 years, 4 months ago (2016-07-28 08:22:14 UTC) #35
Sami
lgtm. I was trying to think of a better alternative to unthrottledTaskRunner() here but couldn't ...
4 years, 4 months ago (2016-07-28 13:56:14 UTC) #36
haraken
On 2016/07/28 13:56:14, Sami wrote: > lgtm. > > I was trying to think of ...
4 years, 4 months ago (2016-07-28 14:02:37 UTC) #37
Sami
On 2016/07/28 14:02:37, haraken wrote: > On 2016/07/28 13:56:14, Sami wrote: > > lgtm. > ...
4 years, 4 months ago (2016-07-28 14:47:10 UTC) #38
kinuko
Yep, I assume we can change the unloved unthrottledTaskRunner one to something better later... (I ...
4 years, 4 months ago (2016-07-28 15:43:54 UTC) #39
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/2163983004/100001
4 years, 4 months ago (2016-07-29 09:32:02 UTC) #42
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/264448)
4 years, 4 months ago (2016-07-29 12:44:20 UTC) #44
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/2163983004/100001
4 years, 4 months ago (2016-07-29 15:03:16 UTC) #46
commit-bot: I haz the power
Committed patchset #5 (id:100001)
4 years, 4 months ago (2016-07-29 16:28:22 UTC) #48
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/66b07a326160fed57046fbb454f424a302d4cc6b Cr-Commit-Position: refs/heads/master@{#408652}
4 years, 4 months ago (2016-07-29 16:30:12 UTC) #50
tapted
A revert of this CL (patchset #5 id:100001) has been created in https://codereview.chromium.org/2196133002/ by tapted@chromium.org. ...
4 years, 4 months ago (2016-08-01 02:43:26 UTC) #51
tzik
A revert of this CL (patchset #5 id:100001) has been created in https://codereview.chromium.org/2199633002/ by tzik@chromium.org. ...
4 years, 4 months ago (2016-08-01 05:24:56 UTC) #52
tzik
4 years, 4 months ago (2016-08-01 05:26:27 UTC) #53
Message was sent while issue was closed.
On 2016/08/01 02:43:26, tapted wrote:
> A revert of this CL (patchset #5 id:100001) has been created in
> https://codereview.chromium.org/2196133002/ by mailto:tapted@chromium.org.
> 
> The reason for reverting is: Suspected for multiple failures in `WebKit Linux
> Leak` since
>
https://build.chromium.org/p/chromium.webkit/builders/WebKit%20Linux%20Leak/b...
> 
> e.g. 
> 
> http/tests/serviceworker/foreign-fetch-workers.html
> fast/workers/worker-document-leak.html
> + 7 more
> 
> errors like
> 
> 10:21:04.195 21200 worker/1
http/tests/serviceworker/foreign-fetch-workers.html
> leaked
> 10:21:04.196 21133 [14636/39978]
> http/tests/serviceworker/foreign-fetch-workers.html failed unexpectedly (leak
> detected:
>
({"numberOfLiveActiveDOMObjects":[2,4],"numberOfLiveDocuments":[1,3],"numberOfLiveNodes":[4,28],"numberOfLiveResources":[0,2]}))
> 10:21:04.195 21200 worker/1
http/tests/serviceworker/foreign-fetch-workers.html
> failed:
> 10:21:04.195 21200 worker/1  leak detected:
>
({"numberOfLiveActiveDOMObjects":[2,4],"numberOfLiveDocuments":[1,3],"numberOfLiveNodes":[4,28],"numberOfLiveResources":[0,2]})
> .

Let me make another try.

Powered by Google App Engine
This is Rietveld 408576698