DevTools: capturing area screenshot is wrong with page zoom
Reported by
vitezsla...@gmail.com,
Nov 20 2017
|
|||||
Issue description
Chrome Version : 62.0.3202.94
OS Version: 10.0
URLs (if applicable) :
Other browsers tested:
Add OK or FAIL after other browsers where you have tested this issue:
Safari 5:
Firefox 4.x:
IE 7/8/9:
This issue is related to the "Screenshots of a portion of the viewport" feature introduced in https://developers.google.com/web/updates/2017/08/devtools-release-notes#screenshot-areas
What steps will reproduce the problem?
1. Set windows scaling above 100%
2. Open dev tools and try making a rectangular selection for a screenshot
3. The rectangle does not match the mouse position
What is the expected result?
Expected is that the START and END point of mouse movement matches the selection.
What happens instead of that?
The selection is offsetted. See screenshot attached.
Please provide any additional information below. Attach a screenshot if
possible.
UserAgentString: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36
,
Nov 24 2017
Able to reproduce this issue on reported version 62.0.3202.94 and on latest canary 64.0.3267.0 using Windows 10 and Ubuntu 14.04 when scale > 100% in windows and scale 1.38 in Ubuntu 14.04. Issue is not reproducible on Mac 10.13.1. This issue is seen from the introduction of Screenshots of a portion of the viewport feature in M62. Hence considering this issue as Non-Regression and marking sa Untriaged. Thanks!
,
Nov 27 2017
,
Nov 27 2017
Thank you for the report!
,
Nov 27 2017
,
Dec 5
,
Dec 5
,
Dec 8
Sorry for late response. I tried to repro this one, but I'm not sure what zoom are you talking about? This works fine with browser zoom (the Ctrl+/- one). Perhaps, this is about some other form of zoom?
,
Dec 9
What steps will reproduce the problem? 1. Set windows scaling above 100% 2. Open dev tools and try making a rectangular selection for a screenshot 3. The rectangle does not match the mouse position
,
Jan 8
,
Jan 8
It's reproducible on Linux with DPR != 1.0
,
Jan 10
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/a2f3e1a8e91b743e872b809b6249aa32e45df7f3 commit a2f3e1a8e91b743e872b809b6249aa32e45df7f3 Author: Alexei Filippov <alph@chromium.org> Date: Thu Jan 10 18:21:44 2019 DevTools: Fix screenshot selection overlay position on Linux and Win. BUG=786993 Change-Id: I33a0a6d82dd3ab3c19320582de14d5b204c29ead Reviewed-on: https://chromium-review.googlesource.com/c/1401433 Commit-Queue: Alexei Filippov <alph@chromium.org> Reviewed-by: Dmitry Gozman <dgozman@chromium.org> Cr-Commit-Position: refs/heads/master@{#621646} [modify] https://crrev.com/a2f3e1a8e91b743e872b809b6249aa32e45df7f3/third_party/blink/renderer/core/inspector/InspectorOverlayPage.html [modify] https://crrev.com/a2f3e1a8e91b743e872b809b6249aa32e45df7f3/third_party/blink/renderer/core/inspector/inspector_overlay_agent.cc
,
Jan 14
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/5b40045127ca9fe6b94c5c8249b780a7e5e71bbd commit 5b40045127ca9fe6b94c5c8249b780a7e5e71bbd Author: Alexei Filippov <alph@chromium.org> Date: Mon Jan 14 21:13:43 2019 DevTools: Make area and node screenshots work on Win and Linux. Convert coordinates to device pixels on appropriate platforms. BUG=786993 Change-Id: I0e9080185073fcf3230604cec53eddf07766096f Reviewed-on: https://chromium-review.googlesource.com/c/1407609 Reviewed-by: Dmitry Gozman <dgozman@chromium.org> Commit-Queue: Alexei Filippov <alph@chromium.org> Cr-Commit-Position: refs/heads/master@{#622602} [modify] https://crrev.com/5b40045127ca9fe6b94c5c8249b780a7e5e71bbd/content/browser/devtools/protocol/page_handler.cc [modify] https://crrev.com/5b40045127ca9fe6b94c5c8249b780a7e5e71bbd/third_party/blink/renderer/core/inspector/inspector_overlay_agent.cc
,
Jan 15
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/e1012dd85f495321ff0f361687e16275efc90d9b commit e1012dd85f495321ff0f361687e16275efc90d9b Author: Alexei Filippov <alph@chromium.org> Date: Tue Jan 15 05:26:52 2019 DevTools: Fix screenshot capture for scrolled pages. BUG=786993 Change-Id: I92226fc7daf17d39366a177bf21b82dd34bc9623 Reviewed-on: https://chromium-review.googlesource.com/c/1410263 Reviewed-by: Dmitry Gozman <dgozman@chromium.org> Commit-Queue: Alexei Filippov <alph@chromium.org> Cr-Commit-Position: refs/heads/master@{#622742} [modify] https://crrev.com/e1012dd85f495321ff0f361687e16275efc90d9b/third_party/blink/renderer/core/inspector/inspector_overlay_agent.cc
,
Jan 16
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/7f5f19d3f1dafefab02d1ce64781c4098c158db4 commit 7f5f19d3f1dafefab02d1ce64781c4098c158db4 Author: Alexei Filippov <alph@chromium.org> Date: Wed Jan 16 04:40:14 2019 DevTools: Make node screenshot pass coordinates in dip. BUG=786993 Change-Id: I4b796f74df16fb6352f7c844d7390935b8b8ef71 Reviewed-on: https://chromium-review.googlesource.com/c/1410316 Commit-Queue: Alexei Filippov <alph@chromium.org> Reviewed-by: Dmitry Gozman <dgozman@chromium.org> Cr-Commit-Position: refs/heads/master@{#623107} [modify] https://crrev.com/7f5f19d3f1dafefab02d1ce64781c4098c158db4/third_party/blink/renderer/core/inspector/browser_protocol.pdl [modify] https://crrev.com/7f5f19d3f1dafefab02d1ce64781c4098c158db4/third_party/blink/renderer/core/inspector/inspector_page_agent.cc [modify] https://crrev.com/7f5f19d3f1dafefab02d1ce64781c4098c158db4/third_party/blink/renderer/devtools/front_end/emulation/DeviceModeWrapper.js [modify] https://crrev.com/7f5f19d3f1dafefab02d1ce64781c4098c158db4/third_party/blink/web_tests/inspector-protocol/page/get-layout-metrics-expected.txt |
|||||
►
Sign in to add a comment |
|||||
Comment 1 by manoranj...@chromium.org
, Nov 20 2017