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

Issue 213423008: Add pause_on_start flag to WorkerProcessMsg_CreateWorker_Params. (Closed)

Created:
6 years, 9 months ago by horo
Modified:
6 years, 8 months ago
CC:
chromium-reviews, vsevik, jam, yurys, joi+watch-content_chromium.org, paulirish+reviews_chromium.org, darin-cc_chromium.org, devtools-reviews_chromium.org, aandrey+blink_chromium.org, pfeldman
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Add pause_on_start flag to WorkerProcessMsg_CreateWorker_Params. DevToolsAgentMsg_PauseWorkerContextOnStart was send to the worker process from the browser process in order to pause the worker context when it starts. Before http://crbug.com/329786 this message was sent between WorkerProcessMsg_CreateWorker and WorkerMsg_StartWorkerContext. So the worker was successfully paused before started. But after http://crbug.com/329786 the worker context may be started before the worker process receives this message because WorkerMsg_StartWorkerContext is no longer sent from the browser process. So we have to add pause_on_start flag to WorkerProcessMsg_CreateWorker_Params to pause the worker context correctly. BUG=329786 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=260377

Patch Set 1 #

Total comments: 4

Patch Set 2 : incorporated yurys's comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -21 lines) Patch
M content/browser/devtools/worker_devtools_manager.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/devtools/worker_devtools_manager.cc View 1 2 chunks +3 lines, -4 lines 0 comments Download
M content/browser/worker_host/worker_process_host.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/worker_host/worker_process_host.cc View 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/worker_host/worker_service_impl.cc View 1 1 chunk +3 lines, -2 lines 0 comments Download
M content/child/shared_worker_devtools_agent.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/child/shared_worker_devtools_agent.cc View 2 chunks +0 lines, -6 lines 0 comments Download
M content/common/devtools_messages.h View 1 chunk +0 lines, -5 lines 0 comments Download
M content/common/worker_messages.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/worker/websharedworker_stub.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/worker/websharedworker_stub.cc View 2 chunks +6 lines, -0 lines 0 comments Download
M content/worker/worker_thread.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
horo
kinuko@ Could you please review this?
6 years, 9 months ago (2014-03-27 06:20:47 UTC) #1
kinuko
https://codereview.chromium.org/213423008/diff/1/content/browser/devtools/worker_devtools_manager.cc File content/browser/devtools/worker_devtools_manager.cc (right): https://codereview.chromium.org/213423008/diff/1/content/browser/devtools/worker_devtools_manager.cc#newcode297 content/browser/devtools/worker_devtools_manager.cc:297: } I think adding pause_on_start param in CreateWorker message ...
6 years, 9 months ago (2014-03-27 08:04:34 UTC) #2
yurys
I like the idea of passing this "pause on start" flag as an argument to ...
6 years, 9 months ago (2014-03-27 08:37:25 UTC) #3
horo
On 2014/03/27 08:04:34, kinuko wrote: > https://codereview.chromium.org/213423008/diff/1/content/browser/devtools/worker_devtools_manager.cc > File content/browser/devtools/worker_devtools_manager.cc (right): > > https://codereview.chromium.org/213423008/diff/1/content/browser/devtools/worker_devtools_manager.cc#newcode297 > ...
6 years, 9 months ago (2014-03-27 09:45:18 UTC) #4
horo
https://codereview.chromium.org/213423008/diff/1/content/browser/devtools/worker_devtools_manager.cc File content/browser/devtools/worker_devtools_manager.cc (right): https://codereview.chromium.org/213423008/diff/1/content/browser/devtools/worker_devtools_manager.cc#newcode297 content/browser/devtools/worker_devtools_manager.cc:297: } On 2014/03/27 08:04:34, kinuko wrote: > I think ...
6 years, 9 months ago (2014-03-27 09:45:48 UTC) #5
horo
On 2014/03/27 09:45:48, horo wrote: > https://codereview.chromium.org/213423008/diff/1/content/browser/devtools/worker_devtools_manager.cc > File content/browser/devtools/worker_devtools_manager.cc (right): > > https://codereview.chromium.org/213423008/diff/1/content/browser/devtools/worker_devtools_manager.cc#newcode297 > ...
6 years, 9 months ago (2014-03-27 09:47:53 UTC) #6
horo
https://codereview.chromium.org/213423008/diff/1/content/browser/devtools/worker_devtools_manager.cc File content/browser/devtools/worker_devtools_manager.cc (right): https://codereview.chromium.org/213423008/diff/1/content/browser/devtools/worker_devtools_manager.cc#newcode283 content/browser/devtools/worker_devtools_manager.cc:283: bool WorkerDevToolsManager::TerminatedWorkerExist( On 2014/03/27 08:37:26, yurys wrote: > We ...
6 years, 9 months ago (2014-03-27 09:48:10 UTC) #7
yurys
lgtm
6 years, 9 months ago (2014-03-27 12:16:35 UTC) #8
kinuko
On 2014/03/27 09:45:18, horo wrote: > On 2014/03/27 08:04:34, kinuko wrote: > > > https://codereview.chromium.org/213423008/diff/1/content/browser/devtools/worker_devtools_manager.cc ...
6 years, 9 months ago (2014-03-27 12:26:09 UTC) #9
horo
jochen@ Could you please review content/child/shared_worker_devtools_agent.* in this cl? Thank you.
6 years, 9 months ago (2014-03-27 15:20:15 UTC) #10
jochen (gone - plz use gerrit)
lgtm
6 years, 9 months ago (2014-03-27 15:21:43 UTC) #11
horo
nasko@ Could you please review content/common/devtools_messages.h content/common/worker_messages.h in this CL? Thank you.
6 years, 9 months ago (2014-03-27 15:22:32 UTC) #12
nasko
messages LGTM
6 years, 9 months ago (2014-03-27 18:02:05 UTC) #13
horo
The CQ bit was checked by horo@chromium.org
6 years, 9 months ago (2014-03-27 22:03:23 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/horo@chromium.org/213423008/20001
6 years, 9 months ago (2014-03-27 22:05:28 UTC) #15
horo
The CQ bit was unchecked by horo@chromium.org
6 years, 8 months ago (2014-03-29 04:49:43 UTC) #16
horo
The CQ bit was checked by horo@chromium.org
6 years, 8 months ago (2014-03-29 04:49:43 UTC) #17
horo
The CQ bit was unchecked by horo@chromium.org
6 years, 8 months ago (2014-03-29 05:19:51 UTC) #18
horo
The CQ bit was checked by horo@chromium.org
6 years, 8 months ago (2014-03-29 05:29:58 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/horo@chromium.org/213423008/20001
6 years, 8 months ago (2014-03-29 05:30:08 UTC) #20
commit-bot: I haz the power
6 years, 8 months ago (2014-03-29 17:29:27 UTC) #21
Message was sent while issue was closed.
Change committed as 260377

Powered by Google App Engine
This is Rietveld 408576698