WKWebView redirection bug
Originator: | an00na | ||
Number: | rdar://20844299 | Date Originated: | 06-May-2015 04:41 PM |
Status: | Open | Resolved: | |
Product: | iOS SDK | Product Version: | 9.0 |
Classification: | Serious Bug | Reproducible: | Always |
Summary: If user is not signed in, 1. visiting http://photo.weibo.com/h5/comment/compic_id/1022:2305972009eadb8261e2a58c6dbf57d7d33641 redirects to 2. http://passport.weibo.com/visitor/visitor which redirects to 3. http://weibo.com/login.php which redirects to 4. http://www.weibo.com/login.php which finally redirects to 5. http://login.sina.com.cn/plugin_proxy.html, where user can sign in. WKWebView stops at step 2. Steps to Reproduce: 1. Run sample app. 2. Wait 20 seconds for the loading to finish. 3. See the blank page. 4. Read console logs to see the final URL is that of step 2 in summary. 5. Comment line 17~18 and uncomment line 20~22 of ViewController.swift to switch to use UIWebView. 6. Restart sample app. 7. Wait 20 seconds for the loading to finish. 8. See the sign-in page. 9. Read console logs to see the final URL is that of step 5 in summary. Sample code: http://cl.ly/0f2m3N1Q161e
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!