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

Issue 1437283003: [DevTools] filter any messages from previous session in DevToolsAgentHostImpl (Closed)

Created:
5 years, 1 month ago by kozy
Modified:
5 years, 1 month ago
Reviewers:
Tom Sepez, dgozman, jam, pfeldman
CC:
chromium-reviews, tzik, nasko+codewatch_chromium.org, apavlov+blink_chromium.org, kinuko+watch, jsbell+serviceworker_chromium.org, caseq+blink_chromium.org, 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, creis+watch_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, 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 session in DevToolsAgentHostImpl Frontend can receive response for protocol message that was sent by previous session or notification that was produced during previous session. E.g. frontend send protocol message and then reattach and then get response. session_id for protocol 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. WebDevToolsAgentImpl get session_id from Attach or Reattach IPC message, clear session_id on Dettach message and use it for notifications. 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 TBR=jam@chromium.org, tsepez@chromium.org Committed: https://crrev.com/1084bdca601104f8eb99fa4ff11cc1397d8dd1af Cr-Commit-Position: refs/heads/master@{#361008}

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Total comments: 6

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+406 lines, -301 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 2 chunks +5 lines, -4 lines 0 comments Download
M content/browser/devtools/browser_devtools_agent_host.cc View 2 chunks +2 lines, -5 lines 0 comments Download
M content/browser/devtools/devtools_agent_host_impl.h View 1 2 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 chunk +13 lines, -9 lines 0 comments Download
M content/browser/devtools/devtools_protocol_handler.cc View 4 chunks +43 lines, -37 lines 0 comments Download
M content/browser/devtools/forwarding_agent_host.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/devtools/protocol/devtools_protocol_client.h View 3 chunks +18 lines, -13 lines 0 comments Download
M content/browser/devtools/protocol/devtools_protocol_client.cc View 5 chunks +17 lines, -14 lines 0 comments Download
A content/browser/devtools/protocol/devtools_protocol_delegate.h View 1 2 1 chunk +22 lines, -0 lines 0 comments Download
M content/browser/devtools/protocol/devtools_protocol_handler_generator.py View 5 chunks +8 lines, -8 lines 0 comments Download
M content/browser/devtools/protocol/input_handler.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M content/browser/devtools/protocol/tracing_handler.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/devtools/render_frame_devtools_agent_host.cc View 1 9 chunks +30 lines, -23 lines 0 comments Download
M content/browser/devtools/worker_devtools_agent_host.cc View 5 chunks +11 lines, -17 lines 0 comments Download
M content/child/shared_worker_devtools_agent.h View 1 chunk +7 lines, -4 lines 0 comments Download
M content/child/shared_worker_devtools_agent.cc View 5 chunks +10 lines, -4 lines 0 comments Download
M content/common/devtools_messages.h View 1 2 chunks +11 lines, -6 lines 0 comments Download
M content/content_browser.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/devtools/devtools_agent.h View 1 3 chunks +11 lines, -9 lines 0 comments Download
M content/renderer/devtools/devtools_agent.cc View 1 5 chunks +22 lines, -17 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 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/service_worker/embedded_worker_devtools_agent.h View 1 chunk +5 lines, -3 lines 0 comments Download
M content/renderer/service_worker/embedded_worker_devtools_agent.cc View 2 chunks +7 lines, -4 lines 0 comments Download
M content/renderer/service_worker/service_worker_context_client.h View 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/service_worker/service_worker_context_client.cc View 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 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 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 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 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp View 3 chunks +8 lines, -8 lines 0 comments Download
M third_party/WebKit/public/web/WebDevToolsAgent.h View 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/public/web/WebDevToolsAgentClient.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/public/web/WebEmbeddedWorker.h View 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/public/web/WebSharedWorker.h View 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/public/web/WebSharedWorkerClient.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextClient.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 19 (4 generated)
kozy
Pavel, ptal. Relanding CL from https://codereview.chromium.org/1408363004/. Previous attempt was reverted because if user opens DevTools ...
5 years, 1 month ago (2015-11-13 02:37:45 UTC) #1
jam
On 2015/11/13 02:37:45, kozyatinskiy wrote: > Pavel, ptal. > Relanding CL from https://codereview.chromium.org/1408363004/. Previous attempt ...
5 years, 1 month ago (2015-11-13 17:20:56 UTC) #2
pfeldman
I'll take a look at it.
5 years, 1 month ago (2015-11-13 17:37:38 UTC) #3
pfeldman
https://codereview.chromium.org/1437283003/diff/1/chrome/browser/devtools/devtools_window.cc File chrome/browser/devtools/devtools_window.cc (right): https://codereview.chromium.org/1437283003/diff/1/chrome/browser/devtools/devtools_window.cc#newcode534 chrome/browser/devtools/devtools_window.cc:534: agent->InspectElement(x, y); Lets land this separately.
5 years, 1 month ago (2015-11-13 17:38:12 UTC) #4
kozy
On 2015/11/13 17:38:12, pfeldman wrote: > https://codereview.chromium.org/1437283003/diff/1/chrome/browser/devtools/devtools_window.cc > File chrome/browser/devtools/devtools_window.cc (right): > > https://codereview.chromium.org/1437283003/diff/1/chrome/browser/devtools/devtools_window.cc#newcode534 > ...
5 years, 1 month ago (2015-11-13 18:08:15 UTC) #5
kozy
On 2015/11/13 17:20:56, jam wrote: > On 2015/11/13 02:37:45, kozyatinskiy wrote: > > Pavel, ptal. ...
5 years, 1 month ago (2015-11-13 18:10:10 UTC) #6
Tom Sepez
Messages LGTM.
5 years, 1 month ago (2015-11-16 17:30:39 UTC) #7
kozy
InspectElement was extracted and landed. please take a look.
5 years, 1 month ago (2015-11-20 18:23:44 UTC) #8
dgozman
lgtm https://codereview.chromium.org/1437283003/diff/20001/content/browser/devtools/devtools_agent_host_impl.cc File content/browser/devtools/devtools_agent_host_impl.cc (right): https://codereview.chromium.org/1437283003/diff/20001/content/browser/devtools/devtools_agent_host_impl.cc#newcode163 content/browser/devtools/devtools_agent_host_impl.cc:163: SendMessageToClient(session_id(), message); seesion_id_ https://codereview.chromium.org/1437283003/diff/20001/content/browser/devtools/devtools_agent_host_impl.h File content/browser/devtools/devtools_agent_host_impl.h (right): https://codereview.chromium.org/1437283003/diff/20001/content/browser/devtools/devtools_agent_host_impl.h#newcode62 ...
5 years, 1 month ago (2015-11-20 20:25:07 UTC) #9
kozy
All done. https://codereview.chromium.org/1437283003/diff/20001/content/browser/devtools/devtools_agent_host_impl.cc File content/browser/devtools/devtools_agent_host_impl.cc (right): https://codereview.chromium.org/1437283003/diff/20001/content/browser/devtools/devtools_agent_host_impl.cc#newcode163 content/browser/devtools/devtools_agent_host_impl.cc:163: SendMessageToClient(session_id(), message); On 2015/11/20 20:25:07, dgozman wrote: ...
5 years, 1 month ago (2015-11-21 00:49:00 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1437283003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1437283003/40001
5 years, 1 month ago (2015-11-21 00:51:49 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/134095)
5 years, 1 month ago (2015-11-21 02:16:19 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1437283003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1437283003/40001
5 years, 1 month ago (2015-11-21 03:29:01 UTC) #17
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 1 month ago (2015-11-21 05:40:58 UTC) #18
commit-bot: I haz the power
5 years, 1 month ago (2015-11-21 05:41:40 UTC) #19
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/1084bdca601104f8eb99fa4ff11cc1397d8dd1af
Cr-Commit-Position: refs/heads/master@{#361008}

Powered by Google App Engine
This is Rietveld 408576698