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

Issue 12321057: [chromedriver] Implement reconnection to DevTools. (Closed)

Created:
7 years, 10 months ago by chrisgao (Use stgao instead)
Modified:
7 years, 9 months ago
Reviewers:
craigdh, kkania, frankf
CC:
chromium-reviews, cbentzel+watch_chromium.org, vsevik, darin-cc_chromium.org, yurys, pfeldman
Visibility:
Public.

Description

[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

Patch Set 1 #

Patch Set 2 : Fix some nits and add one unit test. #

Total comments: 20

Patch Set 3 : Address comments. #

Patch Set 4 : Address comments. #

Patch Set 5 : Fix nits. #

Total comments: 10

Patch Set 6 : Rebase and address comments. #

Total comments: 12

Patch Set 7 : Address comments. #

Patch Set 8 : Fix nits. #

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

Messages

Total messages: 10 (0 generated)
chrisgao (Use stgao instead)
ptal
7 years, 10 months ago (2013-02-22 00:09:41 UTC) #1
kkania
https://codereview.chromium.org/12321057/diff/11011/chrome/test/chromedriver/chrome_impl.cc File chrome/test/chromedriver/chrome_impl.cc (right): https://codereview.chromium.org/12321057/diff/11011/chrome/test/chromedriver/chrome_impl.cc#newcode29 chrome/test/chromedriver/chrome_impl.cc:29: const ParserFunc& parser) { i think this might be ...
7 years, 10 months ago (2013-02-22 01:35:24 UTC) #2
chrisgao (Use stgao instead)
ptal https://codereview.chromium.org/12321057/diff/11011/chrome/test/chromedriver/chrome_impl.cc File chrome/test/chromedriver/chrome_impl.cc (right): https://codereview.chromium.org/12321057/diff/11011/chrome/test/chromedriver/chrome_impl.cc#newcode29 chrome/test/chromedriver/chrome_impl.cc:29: const ParserFunc& parser) { On 2013/02/22 01:35:24, kkania ...
7 years, 9 months ago (2013-02-27 19:29:44 UTC) #3
kkania
change name of EnsureAlive too https://codereview.chromium.org/12321057/diff/15041/chrome/test/chromedriver/chrome_impl.cc File chrome/test/chromedriver/chrome_impl.cc (right): https://codereview.chromium.org/12321057/diff/15041/chrome/test/chromedriver/chrome_impl.cc#newcode29 chrome/test/chromedriver/chrome_impl.cc:29: Status FetchPagesInfo(URLRequestContextGetter* context_getter, this ...
7 years, 9 months ago (2013-03-04 23:33:57 UTC) #4
chrisgao (Use stgao instead)
comments are addressed. ptal https://codereview.chromium.org/12321057/diff/15041/chrome/test/chromedriver/chrome_impl.cc File chrome/test/chromedriver/chrome_impl.cc (right): https://codereview.chromium.org/12321057/diff/15041/chrome/test/chromedriver/chrome_impl.cc#newcode29 chrome/test/chromedriver/chrome_impl.cc:29: Status FetchPagesInfo(URLRequestContextGetter* context_getter, On 2013/03/04 ...
7 years, 9 months ago (2013-03-05 06:58:17 UTC) #5
chrisgao (Use stgao instead)
https://codereview.chromium.org/12321057/diff/26001/chrome/test/chromedriver/run_py_tests.py File chrome/test/chromedriver/run_py_tests.py (right): https://codereview.chromium.org/12321057/diff/26001/chrome/test/chromedriver/run_py_tests.py#newcode188 chrome/test/chromedriver/run_py_tests.py:188: import pdb; pdb.set_trace() To be removed in next patch.
7 years, 9 months ago (2013-03-05 07:00:12 UTC) #6
kkania
lgtm https://codereview.chromium.org/12321057/diff/26001/chrome/test/chromedriver/chrome_impl.cc File chrome/test/chromedriver/chrome_impl.cc (right): https://codereview.chromium.org/12321057/diff/26001/chrome/test/chromedriver/chrome_impl.cc#newcode51 chrome/test/chromedriver/chrome_impl.cc:51: return ParsePagesInfo(data, web_view_info_list); how does this know which ...
7 years, 9 months ago (2013-03-05 17:01:13 UTC) #7
chrisgao (Use stgao instead)
https://codereview.chromium.org/12321057/diff/26001/chrome/test/chromedriver/chrome_impl.cc File chrome/test/chromedriver/chrome_impl.cc (right): https://codereview.chromium.org/12321057/diff/26001/chrome/test/chromedriver/chrome_impl.cc#newcode51 chrome/test/chromedriver/chrome_impl.cc:51: return ParsePagesInfo(data, web_view_info_list); On 2013/03/05 17:01:13, kkania wrote: > ...
7 years, 9 months ago (2013-03-06 01:19:54 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/chrisgao@chromium.org/12321057/53002
7 years, 9 months ago (2013-03-06 17:02:25 UTC) #9
commit-bot: I haz the power
7 years, 9 months ago (2013-03-06 17:08:53 UTC) #10
Message was sent while issue was closed.
Change committed as 186452

Powered by Google App Engine
This is Rietveld 408576698