|
[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}
Total comments: 1
Total comments: 6
|
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
|
Total messages: 19 (4 generated)
|