WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
175665
Automation: takeScreenshot should use the visible content rect not the document rect
https://bugs.webkit.org/show_bug.cgi?id=175665
Summary
Automation: takeScreenshot should use the visible content rect not the docume...
Carlos Garcia Campos
Reported
2017-08-17 02:54:41 PDT
https://w3c.github.io/webdriver/webdriver-spec.html#dfn-draw-a-bounding-box-from-the-framebuffer
We should take the document rectangle and draw it with the current viewport width and height. If I understand the spec correctly we should use the document rectangle coordinates, but that's not what chromium and firefox do, they take the screenshot of the visible area.
Attachments
Patch
(1.86 KB, patch)
2017-08-17 02:59 PDT
,
Carlos Garcia Campos
bburg
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Carlos Garcia Campos
Comment 1
2017-08-17 02:59:26 PDT
Created
attachment 318346
[details]
Patch
Blaze Burg
Comment 2
2017-08-18 12:13:48 PDT
Comment on
attachment 318346
[details]
Patch r=me I don't think there are any Selenium tests that cover interesting screenshot corner cases.
Carlos Garcia Campos
Comment 3
2017-08-19 00:54:51 PDT
(In reply to Brian Burg from
comment #2
)
> Comment on
attachment 318346
[details]
> Patch > > r=me > > I don't think there are any Selenium tests that cover interesting screenshot > corner cases.
Right, they just check the commands return any data. I did several manual tests comparing with firefox and chrome.
Carlos Garcia Campos
Comment 4
2017-08-28 05:32:48 PDT
Committed
r221246
: <
http://trac.webkit.org/changeset/221246
>
Radar WebKit Bug Importer
Comment 5
2017-08-28 05:34:07 PDT
<
rdar://problem/34108956
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug