Bug 252911 - Memory leak WKHoverPlatter 96 bytes
Summary: Memory leak WKHoverPlatter 96 bytes
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: Other
Hardware: iPhone / iPad iOS 15
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-24 09:21 PST by edson
Modified: 2023-02-27 13:28 PST (History)
3 users (show)

See Also:


Attachments
Instrument (915.64 KB, image/png)
2023-02-24 09:21 PST, edson
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.