WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
144644
[iOS] Scroll snap points trigger reentrant layout
https://bugs.webkit.org/show_bug.cgi?id=144644
Summary
[iOS] Scroll snap points trigger reentrant layout
Brent Fulgham
Reported
2015-05-05 16:07:06 PDT
Created
attachment 252417
[details]
Simple test case that crashes on Debug iOS builds The attached test case triggers a crash in the WebProcess in debug builds, because it is attempting to trigger layout while in the middle of performing the initial layout. This bad behavior was caused by the improper use of 'offsetLeft' and 'offsetTop' in the iOS code path for handling scroll snap-points. Instead, it should have just used the same code path as OS X. Apparently, the original author of that code had the misapprehension that the RenderBox::localToContainerPoint method did not work properly under iOS, which is certainly not true (at least today). The fix here is to delete the bad iOS-only code path and use the standard drawing code.
Attachments
Simple test case that crashes on Debug iOS builds
(2.50 KB, text/html)
2015-05-05 16:07 PDT
,
Brent Fulgham
no flags
Details
Patch
(2.48 KB, patch)
2015-05-05 16:10 PDT
,
Brent Fulgham
simon.fraser
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Brent Fulgham
Comment 1
2015-05-05 16:07:33 PDT
<
rdar://problem/20366547
>
Brent Fulgham
Comment 2
2015-05-05 16:10:39 PDT
Created
attachment 252418
[details]
Patch
Brent Fulgham
Comment 3
2015-05-05 16:36:58 PDT
Committed
r183840
: <
http://trac.webkit.org/changeset/183840
>
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