Bug 211681 - [iOS][WKWebView] Going back to the web view screen, scroll down and up to view the loaded images. The image will break for unknown reason
Summary: [iOS][WKWebView] Going back to the web view screen, scroll down and up to vie...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Images (show other bugs)
Version: WebKit Local Build
Hardware: iPhone / iPad iOS 13
: P2 Major
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-05-09 20:42 PDT by Daohan Chong
Modified: 2020-05-12 14:05 PDT (History)
3 users (show)

See Also:


Attachments
Demo Project (207.29 KB, application/zip)
2020-05-09 20:42 PDT, Daohan Chong
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daohan Chong 2020-05-09 20:42:56 PDT
Created attachment 398955 [details]
Demo Project

I've contacted DTS and they think it should be a memory leak bug.

We're building a custom WKURLSchemeHandler to delegate image loading and link clicking into native app for better user experience.

However, if we tap the links to open Safari, then go back to the web view screen, scroll down and up to view the loaded images. The image will break for unknown reason.


Our app is not a pure browser. It is just like a read-it-later app that needs to customize the image and link loading logic. 

STEPS TO REPRODUCE 
1. Use my demo project.
2. Build and run it on your simulator or device
3. Go to "Demo 1" to view the web view
4. Scroll down for descriptions
5. Tap any link of the web page
6. Observe the first image of the web page, if the image still exists, just scroll up or down.
7. The image breaks.
Comment 1 Radar WebKit Bug Importer 2020-05-12 14:05:31 PDT
<rdar://problem/63153013>