Bug 178962

Summary: Leaking WKWebViewConfiguration when running layout tests
Product: WebKit Reporter: Jonathan Bedard <jbedard>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WORKSFORME    
Severity: Normal CC: ap, dbates, lforschler, thorton, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Jonathan Bedard
Reported 2017-10-27 15:38:13 PDT
When running layout tests, we leak a WKWebViewConfiguration every times we reconfigure between tests. I believe I've tracked this leak down to line 477 in WKWebView.mm. Note that the biggest problem with leaking a WKWebViewConfiguration is that a WKWebViewConfiguration holds a strong reference to the ProcessPool. In effect, this means that leaking a WKWebViewConfiguration will create orphaned processes.
Attachments
Radar WebKit Bug Importer
Comment 1 2017-10-27 15:38:47 PDT
Jonathan Bedard
Comment 2 2017-10-30 09:56:54 PDT
I mis-diagnosed this leak. My reduced test case did a bad job at catching the autorelease of WKWebView, which cleans up the WKWebViewConfiguration I thought was being leaked.
Note You need to log in before you can comment on or make changes to this bug.