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

Issue 288193004: [Chromedriver] Add Device Metrics override support to ChromeDriver via Capabilities (Closed)

Created:
6 years, 7 months ago by srawlins
Modified:
6 years, 7 months ago
Reviewers:
samuong, stgao, dgozman, pfeldman
CC:
chromium-reviews, vsevik, yurys, paulirish+reviews_chromium.org, devtools-reviews_chromium.org, stgao, aandrey+blink_chromium.org, pfeldman
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

[Chromedriver] Add Device Metrics override support to ChromeDriver via Capabilities BUG=chromedriver:399 All of the code reviews for this patch were written against https://codereview.chromium.org/251933005/ . I used the wrong email address to create said patch, so I have created this one with the correct email address. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=271947

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+643 lines, -72 lines) Patch
M chrome/chrome_tests.gypi View 5 chunks +28 lines, -0 lines 0 comments Download
M chrome/test/chromedriver/capabilities.h View 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/test/chromedriver/capabilities.cc View 3 chunks +66 lines, -0 lines 0 comments Download
M chrome/test/chromedriver/capabilities_unittest.cc View 1 chunk +95 lines, -0 lines 0 comments Download
M chrome/test/chromedriver/chrome/chrome.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/test/chromedriver/chrome/chrome_desktop_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/chromedriver/chrome/chrome_desktop_impl.cc View 2 chunks +6 lines, -1 line 0 comments Download
M chrome/test/chromedriver/chrome/chrome_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/chromedriver/chrome/chrome_impl.cc View 2 chunks +8 lines, -1 line 0 comments Download
A chrome/test/chromedriver/chrome/device_metrics.h View 1 chunk +21 lines, -0 lines 0 comments Download
A chrome/test/chromedriver/chrome/device_metrics.cc View 1 chunk +16 lines, -0 lines 0 comments Download
M chrome/test/chromedriver/chrome/devtools_http_client.h View 4 chunks +5 lines, -1 line 0 comments Download
M chrome/test/chromedriver/chrome/devtools_http_client.cc View 4 chunks +10 lines, -3 lines 0 comments Download
A chrome/test/chromedriver/chrome/mobile_device.h View 1 chunk +24 lines, -0 lines 0 comments Download
A chrome/test/chromedriver/chrome/mobile_device.cc View 1 chunk +87 lines, -0 lines 0 comments Download
A + chrome/test/chromedriver/chrome/mobile_emulation_override_manager.h View 3 chunks +12 lines, -13 lines 0 comments Download
A chrome/test/chromedriver/chrome/mobile_emulation_override_manager.cc View 1 chunk +55 lines, -0 lines 3 comments Download
A + chrome/test/chromedriver/chrome/mobile_emulation_override_manager_unittest.cc View 3 chunks +32 lines, -41 lines 0 comments Download
M chrome/test/chromedriver/chrome/stub_chrome.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/chromedriver/chrome/stub_chrome.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/test/chromedriver/chrome/web_view_impl.h View 3 chunks +7 lines, -0 lines 0 comments Download
M chrome/test/chromedriver/chrome/web_view_impl.cc View 2 chunks +5 lines, -1 line 0 comments Download
M chrome/test/chromedriver/chrome_launcher.cc View 4 chunks +10 lines, -3 lines 0 comments Download
M chrome/test/chromedriver/client/chromedriver.py View 2 chunks +5 lines, -1 line 0 comments Download
M chrome/test/chromedriver/client/webelement.py View 1 chunk +3 lines, -0 lines 0 comments Download
A chrome/test/chromedriver/embed_mobile_devices_in_cpp.py View 1 chunk +48 lines, -0 lines 0 comments Download
M chrome/test/chromedriver/session.h View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/test/chromedriver/session_commands.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/test/chromedriver/test/run_py_tests.py View 4 chunks +56 lines, -0 lines 1 comment Download
M chrome/test/chromedriver/test/webserver.py View 3 chunks +26 lines, -6 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
srawlins
The CQ bit was checked by srawlins@google.com
6 years, 7 months ago (2014-05-20 18:47:02 UTC) #1
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/srawlins@google.com/288193004/1
6 years, 7 months ago (2014-05-20 18:48:24 UTC) #2
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-20 18:48:25 UTC) #3
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
6 years, 7 months ago (2014-05-20 18:48:25 UTC) #4
samuong
On 2014/05/20 18:48:25, I haz the power (commit-bot) wrote: > No LGTM from a valid ...
6 years, 7 months ago (2014-05-20 18:52:16 UTC) #5
pfeldman
https://codereview.chromium.org/288193004/diff/1/chrome/test/chromedriver/chrome/mobile_emulation_override_manager.cc File chrome/test/chromedriver/chrome/mobile_emulation_override_manager.cc (right): https://codereview.chromium.org/288193004/diff/1/chrome/test/chromedriver/chrome/mobile_emulation_override_manager.cc#newcode47 chrome/test/chromedriver/chrome/mobile_emulation_override_manager.cc:47: params.SetBoolean("emulateViewport", Note that you are using undocumented API that ...
6 years, 7 months ago (2014-05-20 18:57:28 UTC) #6
dgozman
https://codereview.chromium.org/288193004/diff/1/chrome/test/chromedriver/chrome/mobile_emulation_override_manager.cc File chrome/test/chromedriver/chrome/mobile_emulation_override_manager.cc (right): https://codereview.chromium.org/288193004/diff/1/chrome/test/chromedriver/chrome/mobile_emulation_override_manager.cc#newcode47 chrome/test/chromedriver/chrome/mobile_emulation_override_manager.cc:47: params.SetBoolean("emulateViewport", On 2014/05/20 18:57:29, pfeldman wrote: > Note that ...
6 years, 7 months ago (2014-05-20 19:01:39 UTC) #7
stgao
lgtm
6 years, 7 months ago (2014-05-20 19:28:06 UTC) #8
srawlins
https://codereview.chromium.org/288193004/diff/1/chrome/test/chromedriver/chrome/mobile_emulation_override_manager.cc File chrome/test/chromedriver/chrome/mobile_emulation_override_manager.cc (right): https://codereview.chromium.org/288193004/diff/1/chrome/test/chromedriver/chrome/mobile_emulation_override_manager.cc#newcode47 chrome/test/chromedriver/chrome/mobile_emulation_override_manager.cc:47: params.SetBoolean("emulateViewport", On 2014/05/20 19:01:40, dgozman wrote: > On 2014/05/20 ...
6 years, 7 months ago (2014-05-20 19:36:15 UTC) #9
srawlins
The CQ bit was checked by srawlins@google.com
6 years, 7 months ago (2014-05-20 19:36:21 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/srawlins@google.com/288193004/1
6 years, 7 months ago (2014-05-20 19:37:22 UTC) #11
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-21 07:45:23 UTC) #12
stgao
The CQ bit was unchecked by stgao@chromium.org
6 years, 7 months ago (2014-05-21 17:23:07 UTC) #13
stgao
The CQ bit was checked by stgao@chromium.org
6 years, 7 months ago (2014-05-21 17:23:13 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/srawlins@google.com/288193004/1
6 years, 7 months ago (2014-05-21 19:57:00 UTC) #15
commit-bot: I haz the power
Change committed as 271947
6 years, 7 months ago (2014-05-21 20:04:51 UTC) #16
stgao
https://codereview.chromium.org/288193004/diff/1/chrome/test/chromedriver/test/run_py_tests.py File chrome/test/chromedriver/test/run_py_tests.py (right): https://codereview.chromium.org/288193004/diff/1/chrome/test/chromedriver/test/run_py_tests.py#newcode852 chrome/test/chromedriver/test/run_py_tests.py:852: def testDeviceName(self): It seems this testcase keeps failing on ...
6 years, 7 months ago (2014-05-22 05:02:22 UTC) #17
samuong
On 2014/05/22 05:02:22, Shuotao wrote: > https://codereview.chromium.org/288193004/diff/1/chrome/test/chromedriver/test/run_py_tests.py > File chrome/test/chromedriver/test/run_py_tests.py (right): > > https://codereview.chromium.org/288193004/diff/1/chrome/test/chromedriver/test/run_py_tests.py#newcode852 > ...
6 years, 7 months ago (2014-05-22 17:13:19 UTC) #18
chromium-reviews
Wow, a curious error indeed! I can reproduce locally, on x86-64 Linux: chrome head, no ...
6 years, 7 months ago (2014-05-22 17:49:43 UTC) #19
samuong
6 years, 7 months ago (2014-05-22 19:03:59 UTC) #20
Message was sent while issue was closed.
On 2014/05/22 17:49:43, chromium-reviews_chromium.org wrote:
> Wow, a curious error indeed! I can reproduce locally, on x86-64 Linux:
> 
> chrome head, no Xvfb ==> OK
> chrome 33; no Xvfb ==> OK
> chrome head, yes Xvfb ==> OK
> chrome 33; yes Xvfb ==> ERROR
> 
> Based on
>
this<http://stackoverflow.com/questions/23269807/devtools-compositing-mode-is-not-supported>,
> it may be an "Accelerated Compositing" issue in Chrome 33? Maybe fixed
> by dgozman in 50043007 <https://codereview.chromium.org/50043007> ("DevTools:
> check for canForceCompositingMode before trying to emulate device
> metrics.") or maybe by caseq in
> 27330002<https://codereview.chromium.org/27330002>("DevTools: disable
> "force compositing" setting unless both modes are
> supported"). Not sure...
> 
> 
> Any recommendations on how to move forward? I'll keep digging.

We now know that it is a compositing issue that was fixed in M34+. We could run
a bisect to figure out precisely what CL fixed it but I don't think this would
be a very good use of your time. As Shuotao mentioned, it's time to drop support
for M33 anyway, since we just pushed out M35 to stable a few days ago. So I'll
submit a CL to drop support for M33 today, and you don't have to worry about
this particular issue.

Powered by Google App Engine
This is Rietveld 408576698