Bug 252911

Summary: Memory leak WKHoverPlatter 96 bytes
Product: WebKit Reporter: edson <edsonjuniorananias>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: ap, thorton, wenson_hsieh
Priority: P2    
Version: Other   
Hardware: iPhone / iPad   
OS: iOS 15   
Attachments:
Description Flags
Instrument none

Description edson 2023-02-24 09:21:23 PST
Created attachment 465154 [details]
Instrument

Memory leak (WKHoverPlatter 96 bytes x1) The leak happens when webview is presented

I'm using Xcode 14.0.1 and the app is running on iOS 15.3.1

Code example: 

import UIKit
import WebKit

class ViewController: UIViewController {
    @IBOutlet weak var ContentView: UIView!

    private lazy var webView: WKWebView = {
        let webView = WKWebView(frame: .zero)
        webView.translatesAutoresizingMaskIntoConstraints = false
        return webView
    }()

    override func viewDidLoad() {
        super.viewDidLoad()
        view.addSubview(webView)
        webView.loadHTMLString("Test", baseURL: Bundle.main.bundleURL)
    }

}
Comment 1 Alexey Proskuryakov 2023-02-27 13:28:13 PST
WKHoverPlatter doesn't exist as of iOS 16, removed in https://commits.webkit.org/250754@main

There isn't anything for WebKit to fix at this point, so marking RESOLVED.