WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
159851
Web Automation: Fix element and event coord space issues
https://bugs.webkit.org/show_bug.cgi?id=159851
Summary
Web Automation: Fix element and event coord space issues
Timothy Hatcher
Reported
2016-07-15 17:01:54 PDT
rdar://problem/27375780
Attachments
Patch
(3.78 KB, patch)
2016-07-15 17:04 PDT
,
Timothy Hatcher
bburg
: review+
timothy
: commit-queue-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2016-07-15 17:03:01 PDT
<
rdar://problem/27383442
>
Timothy Hatcher
Comment 2
2016-07-15 17:04:21 PDT
Created
attachment 283818
[details]
Patch
Blaze Burg
Comment 3
2016-07-15 17:14:30 PDT
Comment on
attachment 283818
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=283818&action=review
r=me
> Source/WebKit2/WebProcess/Automation/WebAutomationSessionProxy.cpp:503 > rect = coreFrameView->rootViewToContents(rect);
I see, so in this case the topContentInset is eventually subtracted here: ScrollPosition ScrollView::documentScrollPositionRelativeToViewOrigin() const { return scrollPosition() - IntSize( shouldPlaceBlockDirectionScrollbarOnLeft() && m_verticalScrollbar ? m_verticalScrollbar->occupiedWidth() : 0, headerHeight() + topContentInset(TopContentInsetType::WebCoreOrPlatformContentInset)); } But otherwise we get the clientRect in raw window space, which is why we have to deduct topContentInset in the other case. You may want to add a comment or note in the changelog about this, as I thought it was a bug when reviewing.
Timothy Hatcher
Comment 4
2016-07-15 18:21:05 PDT
Comment on
attachment 283818
[details]
Patch
https://trac.webkit.org/changeset/203316
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