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

Issue 1408363004: [DevTools] Filter any messages from previous sessions in DevToolsAgentHostImpl (Closed)

Created:
5 years, 1 month ago by kozy
Modified:
5 years, 1 month ago
Reviewers:
Tom Sepez, dgozman, pfeldman
CC:
chromium-reviews, tzik, apavlov+blink_chromium.org, kinuko+watch, jsbell+serviceworker_chromium.org, caseq+blink_chromium.org, jam, dglazkov+blink, darin-cc_chromium.org, devtools-reviews_chromium.org, blink-reviews, blink-reviews-api_chromium.org, blink-worker-reviews_chromium.org, mlamouri+watch-content_chromium.org, nhiroki, lushnikov+blink_chromium.org, michaeln, serviceworker-reviews, pfeldman+blink_chromium.org, kinuko+serviceworker, mkwst+moarreviews-renderer_chromium.org, horo+watch_chromium.org, sergeyv+blink_chromium.org, pfeldman, kozyatinskiy+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[DevTools] Filter any messages from previous sessions in DevToolsAgentHostImpl Frontend can receive response for protocol message that was sent by previous session. E.g. frontend send protocol message and then reattach then get response. session id for procol message is added in this CL. DevToolsAgentHostImpl store current session_id, RenderFrameDevToolsAgentHost and WorkerDevToolsAgentHost add to each protocol message session id and SendResponseMessageToClient method check it after processing. BUG=503875, 503824 TEST=run blink/tools/run_layout_tests.py inspector/sources/debugger-breakpoints/set-conditional-breakpoint.html --repeat-each 2 R=pfeldman@chromium.org, dgozman@chromium.org, tsepez@chromium.org TBR=jam@chromium.org Committed: https://crrev.com/d8f30ed7ab24a5e431e51b6f9f12d76b1cb1b386 Cr-Commit-Position: refs/heads/master@{#359119}

Patch Set 1 #

Patch Set 2 : #

Total comments: 38

Patch Set 3 : #

Total comments: 20

Patch Set 4 : #

Total comments: 8

Patch Set 5 : #

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+418 lines, -307 lines) Patch
M components/html_viewer/devtools_agent_impl.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M components/html_viewer/devtools_agent_impl.cc View 1 2 chunks +5 lines, -4 lines 0 comments Download
M content/browser/devtools/browser_devtools_agent_host.cc View 1 2 3 2 chunks +2 lines, -5 lines 0 comments Download
M content/browser/devtools/devtools_agent_host_impl.h View 1 2 3 4 chunks +13 lines, -3 lines 0 comments Download
M content/browser/devtools/devtools_agent_host_impl.cc View 1 2 6 chunks +19 lines, -5 lines 0 comments Download
M content/browser/devtools/devtools_protocol_handler.h View 1 2 3 4 1 chunk +13 lines, -9 lines 0 comments Download
M content/browser/devtools/devtools_protocol_handler.cc View 1 2 3 4 chunks +43 lines, -37 lines 0 comments Download
M content/browser/devtools/forwarding_agent_host.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/browser/devtools/protocol/devtools_protocol_client.h View 1 2 3 4 3 chunks +18 lines, -13 lines 0 comments Download
M content/browser/devtools/protocol/devtools_protocol_client.cc View 1 2 3 4 5 chunks +17 lines, -14 lines 0 comments Download
A content/browser/devtools/protocol/devtools_protocol_delegate.h View 1 2 3 4 5 1 chunk +22 lines, -0 lines 0 comments Download
M content/browser/devtools/protocol/devtools_protocol_handler_generator.py View 1 2 3 4 5 5 chunks +8 lines, -8 lines 0 comments Download
M content/browser/devtools/protocol/input_handler.cc View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M content/browser/devtools/protocol/tracing_handler.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/browser/devtools/render_frame_devtools_agent_host.cc View 1 2 3 4 5 9 chunks +31 lines, -24 lines 0 comments Download
M content/browser/devtools/worker_devtools_agent_host.cc View 1 2 3 5 chunks +11 lines, -17 lines 0 comments Download
M content/child/shared_worker_devtools_agent.h View 1 2 3 4 1 chunk +7 lines, -4 lines 0 comments Download
M content/child/shared_worker_devtools_agent.cc View 1 2 3 4 5 chunks +10 lines, -4 lines 0 comments Download
M content/common/devtools_messages.h View 1 2 2 chunks +13 lines, -7 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/devtools/devtools_agent.h View 1 3 chunks +15 lines, -10 lines 0 comments Download
M content/renderer/devtools/devtools_agent.cc View 1 5 chunks +27 lines, -20 lines 0 comments Download
M content/renderer/devtools/devtools_agent_filter.h View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/devtools/devtools_agent_filter.cc View 2 chunks +2 lines, -1 line 0 comments Download
M content/renderer/render_view_browsertest.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/service_worker/embedded_worker_devtools_agent.h View 1 1 chunk +5 lines, -3 lines 0 comments Download
M content/renderer/service_worker/embedded_worker_devtools_agent.cc View 1 2 chunks +7 lines, -4 lines 0 comments Download
M content/renderer/service_worker/service_worker_context_client.h View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/service_worker/service_worker_context_client.cc View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M content/renderer/shared_worker/embedded_shared_worker_stub.h View 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/shared_worker/embedded_shared_worker_stub.cc View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/inspector/CodeGeneratorInspector.py View 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/CodeGeneratorInspectorStrings.py View 13 chunks +30 lines, -29 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorFrontendChannel.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/inspector/WorkerInspectorController.cpp View 1 2 2 chunks +5 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/WebDevToolsAgentImpl.h View 1 4 chunks +7 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/web/WebDevToolsAgentImpl.cpp View 1 2 11 chunks +25 lines, -21 lines 0 comments Download
M third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.h View 1 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp View 1 3 chunks +8 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/web/WebSharedWorkerImpl.h View 1 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp View 1 3 chunks +8 lines, -8 lines 0 comments Download
M third_party/WebKit/public/web/WebDevToolsAgent.h View 1 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/public/web/WebDevToolsAgentClient.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/public/web/WebEmbeddedWorker.h View 1 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/public/web/WebSharedWorker.h View 1 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/public/web/WebSharedWorkerClient.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextClient.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 40 (16 generated)
kozy
ptal
5 years, 1 month ago (2015-10-30 17:16:32 UTC) #1
kozy
Dmitry, please take a look. I've added session id to protocol handler and notifications from ...
5 years, 1 month ago (2015-11-06 22:02:51 UTC) #2
dgozman
Almost there! https://codereview.chromium.org/1408363004/diff/20001/content/browser/devtools/devtools_agent_host_impl.cc File content/browser/devtools/devtools_agent_host_impl.cc (right): https://codereview.chromium.org/1408363004/diff/20001/content/browser/devtools/devtools_agent_host_impl.cc#newcode171 content/browser/devtools/devtools_agent_host_impl.cc:171: // Filter answer for message that was ...
5 years, 1 month ago (2015-11-06 22:57:28 UTC) #3
kozy
All done. PTAL! https://codereview.chromium.org/1408363004/diff/20001/content/browser/devtools/devtools_agent_host_impl.cc File content/browser/devtools/devtools_agent_host_impl.cc (right): https://codereview.chromium.org/1408363004/diff/20001/content/browser/devtools/devtools_agent_host_impl.cc#newcode171 content/browser/devtools/devtools_agent_host_impl.cc:171: // Filter answer for message that ...
5 years, 1 month ago (2015-11-07 01:54:44 UTC) #4
dgozman
One more step closer! https://codereview.chromium.org/1408363004/diff/40001/content/browser/devtools/browser_devtools_agent_host.cc File content/browser/devtools/browser_devtools_agent_host.cc (right): https://codereview.chromium.org/1408363004/diff/40001/content/browser/devtools/browser_devtools_agent_host.cc#newcode34 content/browser/devtools/browser_devtools_agent_host.cc:34: GetIOContext())), Do not touch unnecessary ...
5 years, 1 month ago (2015-11-07 02:28:40 UTC) #5
kozy
All done! https://codereview.chromium.org/1408363004/diff/40001/content/browser/devtools/browser_devtools_agent_host.cc File content/browser/devtools/browser_devtools_agent_host.cc (right): https://codereview.chromium.org/1408363004/diff/40001/content/browser/devtools/browser_devtools_agent_host.cc#newcode34 content/browser/devtools/browser_devtools_agent_host.cc:34: GetIOContext())), On 2015/11/07 02:28:40, dgozman wrote: > ...
5 years, 1 month ago (2015-11-07 03:02:35 UTC) #6
dgozman
lgtm https://codereview.chromium.org/1408363004/diff/60001/content/browser/devtools/devtools_protocol_handler.h File content/browser/devtools/devtools_protocol_handler.h (right): https://codereview.chromium.org/1408363004/diff/60001/content/browser/devtools/devtools_protocol_handler.h#newcode20 content/browser/devtools/devtools_protocol_handler.h:20: DevToolsProtocolHandler(DevToolsAgentHostImpl* agent_host); explicit https://codereview.chromium.org/1408363004/diff/60001/content/browser/devtools/protocol/devtools_protocol_client.cc File content/browser/devtools/protocol/devtools_protocol_client.cc (right): https://codereview.chromium.org/1408363004/diff/60001/content/browser/devtools/protocol/devtools_protocol_client.cc#newcode45 ...
5 years, 1 month ago (2015-11-07 03:15:29 UTC) #7
kozy
All done. https://codereview.chromium.org/1408363004/diff/60001/content/browser/devtools/devtools_protocol_handler.h File content/browser/devtools/devtools_protocol_handler.h (right): https://codereview.chromium.org/1408363004/diff/60001/content/browser/devtools/devtools_protocol_handler.h#newcode20 content/browser/devtools/devtools_protocol_handler.h:20: DevToolsProtocolHandler(DevToolsAgentHostImpl* agent_host); On 2015/11/07 03:15:29, dgozman wrote: ...
5 years, 1 month ago (2015-11-07 04:03:57 UTC) #9
kozy
Pavel, please take a look!
5 years, 1 month ago (2015-11-07 04:04:14 UTC) #10
pfeldman
lgtm
5 years, 1 month ago (2015-11-09 23:36:03 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1408363004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1408363004/80001
5 years, 1 month ago (2015-11-09 23:39:43 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1408363004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1408363004/80001
5 years, 1 month ago (2015-11-10 00:19:21 UTC) #17
kozy
@dcheng, please take a look. I need security review for content/common/devtools_messages.h
5 years, 1 month ago (2015-11-10 00:25:36 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/116924)
5 years, 1 month ago (2015-11-10 01:12:52 UTC) #22
kozy
@tsepez, please take a look! I neeed security review for content/common/devtools_messages.h.
5 years, 1 month ago (2015-11-10 22:19:26 UTC) #25
Tom Sepez
On 2015/11/10 22:19:26, kozyatinskiy wrote: > @tsepez, please take a look! I neeed security review ...
5 years, 1 month ago (2015-11-10 22:29:58 UTC) #26
kozy
On 2015/11/10 22:29:58, Tom Sepez wrote: > On 2015/11/10 22:19:26, kozyatinskiy wrote: > > @tsepez, ...
5 years, 1 month ago (2015-11-10 22:39:24 UTC) #27
Tom Sepez
lgtm
5 years, 1 month ago (2015-11-10 23:20:41 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1408363004/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1408363004/100001
5 years, 1 month ago (2015-11-11 16:44:05 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/117498)
5 years, 1 month ago (2015-11-11 16:54:00 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1408363004/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1408363004/120001
5 years, 1 month ago (2015-11-11 16:58:13 UTC) #37
commit-bot: I haz the power
Committed patchset #6 (id:120001)
5 years, 1 month ago (2015-11-11 18:20:37 UTC) #38
pfeldman
A revert of this CL (patchset #6 id:120001) has been created in https://codereview.chromium.org/1437993003/ by pfeldman@chromium.org. ...
5 years, 1 month ago (2015-11-12 04:21:44 UTC) #39
commit-bot: I haz the power
5 years, 1 month ago (2015-11-12 19:58:45 UTC) #40
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/d8f30ed7ab24a5e431e51b6f9f12d76b1cb1b386
Cr-Commit-Position: refs/heads/master@{#359119}

Powered by Google App Engine
This is Rietveld 408576698