WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
153099
Out of window rendering in WKWebView causes issues with certain pages
https://bugs.webkit.org/show_bug.cgi?id=153099
Summary
Out of window rendering in WKWebView causes issues with certain pages
Shreyas VA
Reported
2016-01-14 11:15:29 PST
Created
attachment 268980
[details]
Simple app that repros the bug. When certain pages are loaded when the WKWebView is not part of the app's view hierarchy and with a frame of CGRect, the certain click handlers in them are not fired. Steps to Reproduce: 1) Run the attached code. 2) Wait for page to load and scroll down until the "read more" button is shown 3) Click on the "read more" button This problem is more pronounced on a site such as
http://www.cnn.com/2016/01/11/americas/mexico-sean-penn-el-chapo-capture/index.html
. See example code for an example app. Expected Results: Clicking on the read more leads to the rest of the content being revealed/loaded. Actual Results: Clicking has no effect Version: iOS9.2 Extra notes: What's interesting is that the problem goes away if an initial frame is set on the WKWebView. Configuration: iPhone 6S and Simulator
Attachments
Simple app that repros the bug.
(21.52 KB, application/zip)
2016-01-14 11:15 PST
,
Shreyas VA
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Shreyas VA
Comment 1
2016-01-14 11:16:18 PST
rdar://24191264
Shreyas VA
Comment 2
2016-01-14 11:48:13 PST
Update: setting the initial frame does not always fix it and instead fixes it unreliably.
Simon Fraser (smfr)
Comment 3
2016-01-15 23:05:18 PST
Did you mean "with a frame of CGRectZero"?
Shreyas VA
Comment 4
2016-01-17 11:07:59 PST
Yes; sorry, looks like a typo on my part. s/CGRect/CGRectZero s/the/then To double confirm, the following preconditions need to be satisfied 1) frame = CGRectZero 2) webView.window = nil The example app should illustrate this.
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