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

Issue 1400213002: Update telemetry tests that rely on window.innerWidth/Height. (Closed)

Created:
5 years, 2 months ago by ymalik
Modified:
5 years, 2 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, extensions-reviews_chromium.org, jam, blink-reviews, dglazkov+blink, darin-cc_chromium.org, telemetry-reviews_chromium.org, piman+watch_chromium.org, mkwst+moarreviews-renderer_chromium.org, chromium-apps-reviews_chromium.org, blink-reviews-api_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Update telemetry tests that rely on window.innerWidth/Height. window.scroll properties have been relative to the visual viewport. This breaks some pages under pinch-zoom (see crbug.com/489206). This CL fixes the telemetry tests that would fail if window.scroll properties are changed to be relative to the layout viewport. This CL adds an api method to get the visual viewport size instead of getting it from window.innerWidth and window.innerHeight. See crbug.com/433794 for some history. BUG=489206 Committed: https://crrev.com/e81760ea8fd85cf9ae2900e3978dd600bbb3c8e0 Cr-Commit-Position: refs/heads/master@{#354071}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Worked on review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -2 lines) Patch
M content/renderer/gpu/gpu_benchmarking_extension.h View 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/gpu/gpu_benchmarking_extension.cc View 2 chunks +16 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.cpp View 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebView.h View 1 chunk +3 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/internal/actions/gesture_common.js View 1 1 chunk +12 lines, -2 lines 0 comments Download

Messages

Total messages: 24 (8 generated)
ymalik
5 years, 2 months ago (2015-10-13 17:26:56 UTC) #2
ymalik
On 2015/10/13 17:26:56, ymalik1 wrote: @bokan Need your stamp before I add specific owners :)
5 years, 2 months ago (2015-10-13 17:28:15 UTC) #3
bokan
lgtm
5 years, 2 months ago (2015-10-13 17:30:29 UTC) #4
ymalik (do not use)
+avi@ for content/renderer/gpu +rbyers@ for WebKit/public/web
5 years, 2 months ago (2015-10-13 18:23:56 UTC) #7
ymalik (do not use)
+skyostil@ for tools/telemetry
5 years, 2 months ago (2015-10-13 18:25:54 UTC) #9
Avi (use Gerrit)
stampity stamp lgtm
5 years, 2 months ago (2015-10-13 20:25:19 UTC) #10
Sami
https://codereview.chromium.org/1400213002/diff/1/tools/telemetry/telemetry/internal/actions/gesture_common.js File tools/telemetry/telemetry/internal/actions/gesture_common.js (right): https://codereview.chromium.org/1400213002/diff/1/tools/telemetry/telemetry/internal/actions/gesture_common.js#newcode43 tools/telemetry/telemetry/internal/actions/gesture_common.js:43: chrome.gpuBenchmarking.visualViewportHeight(); Some telemetry tests run against older reference builds ...
5 years, 2 months ago (2015-10-14 10:44:38 UTC) #11
ymalik
https://codereview.chromium.org/1400213002/diff/1/tools/telemetry/telemetry/internal/actions/gesture_common.js File tools/telemetry/telemetry/internal/actions/gesture_common.js (right): https://codereview.chromium.org/1400213002/diff/1/tools/telemetry/telemetry/internal/actions/gesture_common.js#newcode43 tools/telemetry/telemetry/internal/actions/gesture_common.js:43: chrome.gpuBenchmarking.visualViewportHeight(); On 2015/10/14 10:44:38, Sami wrote: > Some telemetry ...
5 years, 2 months ago (2015-10-14 15:56:10 UTC) #12
Sami
Thanks, lgtm.
5 years, 2 months ago (2015-10-14 16:04:59 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1400213002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1400213002/20001
5 years, 2 months ago (2015-10-14 16:50:10 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/109345)
5 years, 2 months ago (2015-10-14 17:00:49 UTC) #18
ymalik (do not use)
@rbyers Just need a stamp from you :)
5 years, 2 months ago (2015-10-14 17:14:27 UTC) #19
Rick Byers
WebKit/public LGTM
5 years, 2 months ago (2015-10-14 17:42:22 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1400213002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1400213002/20001
5 years, 2 months ago (2015-10-14 18:00:53 UTC) #22
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 2 months ago (2015-10-14 18:24:31 UTC) #23
commit-bot: I haz the power
5 years, 2 months ago (2015-10-14 18:25:27 UTC) #24
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/e81760ea8fd85cf9ae2900e3978dd600bbb3c8e0
Cr-Commit-Position: refs/heads/master@{#354071}

Powered by Google App Engine
This is Rietveld 408576698