Bug 178962 - Leaking WKWebViewConfiguration when running layout tests
Summary: Leaking WKWebViewConfiguration when running layout tests
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2017-10-27 15:38 PDT by Jonathan Bedard
Modified: 2017-10-30 09:57 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Bedard 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.
Comment 1 Radar WebKit Bug Importer 2017-10-27 15:38:47 PDT
<rdar://problem/35230365>
Comment 2 Jonathan Bedard 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.