mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-01-10 17:02:54 +01:00
Remove web view recycling as this seems to contribute to the blank article problem on iPadOS
This commit is contained in:
parent
7064d5d8f5
commit
928e93c074
@ -62,10 +62,6 @@ class WebViewController: UIViewController {
|
||||
let scrollPositionQueue = CoalescingQueue(name: "Article Scroll Position", interval: 0.3, maxInterval: 1.0)
|
||||
var windowScrollY = 0
|
||||
|
||||
deinit {
|
||||
recycleWebView(webView)
|
||||
}
|
||||
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
|
||||
@ -451,23 +447,6 @@ private extension WebViewController {
|
||||
|
||||
}
|
||||
|
||||
func recycleWebView(_ webView: PreloadedWebView?) {
|
||||
guard let webView = webView else { return }
|
||||
|
||||
webView.removeFromSuperview()
|
||||
stopMediaPlayback(webView)
|
||||
cancelImageLoad(webView)
|
||||
|
||||
webView.navigationDelegate = nil
|
||||
webView.uiDelegate = nil
|
||||
webView.scrollView.delegate = nil
|
||||
webView.configuration.userContentController.removeScriptMessageHandler(forName: MessageName.imageWasClicked)
|
||||
webView.configuration.userContentController.removeScriptMessageHandler(forName: MessageName.imageWasShown)
|
||||
webView.interactions.removeAll()
|
||||
|
||||
coordinator.webViewProvider.enqueueWebView(webView)
|
||||
}
|
||||
|
||||
func renderPage(_ webView: PreloadedWebView?) {
|
||||
guard let webView = webView else { return }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user