|
|
[chromedriver] Implement reconnection to DevTools.
When user debugs a testcase with DevTools frontend UI, DevToolsClient will be disconnected. This CL is to automatically close DevTools frontend and reconnect afterwards.
Only try to reconnect before processing a command received from the chromedriver client.
There are two types of frontend UI: one is docked in page, opened through Shift+Ctrl+I or "Tools"--"Developer Tools"; the other is in a new tab, opened with url "chrome-devtools:///...".
For the tab one, we can close it by json/close of DevTools, just like closing a normal page. But for the docked one, we could only close it by clicking a button through Javascript.
BUG= 169098
NOTRY=true
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=186452
Total comments: 20
Total comments: 10
Total comments: 12
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+517 lines, -132 lines) |
Patch |
 |
M |
chrome/test/chromedriver/chrome_impl.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+21 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/test/chromedriver/chrome_impl.cc
|
View
|
1
2
3
4
5
6
7
|
8 chunks |
+170 lines, -38 lines |
0 comments
|
Download
|
 |
M |
chrome/test/chromedriver/chrome_impl_unittest.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+82 lines, -35 lines |
0 comments
|
Download
|
 |
M |
chrome/test/chromedriver/devtools_client.h
|
View
|
1
2
3
4
5
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/test/chromedriver/devtools_client_impl.h
|
View
|
1
2
3
4
5
|
4 chunks |
+6 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/test/chromedriver/devtools_client_impl.cc
|
View
|
1
2
3
4
5
6
|
6 chunks |
+28 lines, -22 lines |
0 comments
|
Download
|
 |
M |
chrome/test/chromedriver/devtools_client_impl_unittest.cc
|
View
|
1
2
3
4
5
|
23 chunks |
+133 lines, -29 lines |
0 comments
|
Download
|
 |
M |
chrome/test/chromedriver/net/sync_websocket.h
|
View
|
1
2
3
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/test/chromedriver/net/sync_websocket_impl.h
|
View
|
1
2
3
4
5
|
3 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/test/chromedriver/net/sync_websocket_impl.cc
|
View
|
1
2
3
4
5
|
6 chunks |
+21 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/test/chromedriver/net/sync_websocket_impl_unittest.cc
|
View
|
1
2
3
|
1 chunk |
+18 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/test/chromedriver/net/test_http_server.cc
|
View
|
1
2
3
4
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/test/chromedriver/stub_devtools_client.h
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/test/chromedriver/stub_devtools_client.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/test/chromedriver/stub_web_view.h
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/test/chromedriver/stub_web_view.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/test/chromedriver/web_view.h
|
View
|
1
2
3
4
5
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/test/chromedriver/web_view_impl.h
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/test/chromedriver/web_view_impl.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/test/chromedriver/web_view_impl_unittest.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/test/chromedriver/window_commands.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
Total messages: 10 (0 generated)
|