Bug 42825

Summary: WebKitTestRunner never destroys its main PlatformWebView (and thus its WKView[Ref])
Product: WebKit Reporter: Adam Roben (:aroben) <aroben>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WORKSFORME    
Severity: Normal CC: andersca, sam
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   

Description Adam Roben (:aroben) 2010-07-22 08:16:07 PDT
WebKitTestRunner allocates a main PlatformWebView on the heap and never destroys it. It should clean up after itself!
Comment 1 Adam Roben (:aroben) 2010-07-22 08:30:24 PDT
See also bug 42828, which is triggered by this bug.
Comment 2 Adam Roben (:aroben) 2010-07-22 08:30:50 PDT
It's possible that this is a cause of bug 42785. See discussion in that bug for more details.
Comment 3 Adam Roben (:aroben) 2010-07-22 08:31:30 PDT
<rdar://problem/8222252>
Comment 4 Adam Roben (:aroben) 2010-07-22 09:20:20 PDT
I added some code to the end of TestController::run that deletes m_mainWebView. This causes a crash in the web process on Mac. It crashes in CoreIPC::Connection::dispatchConnectionDidClose because m_client is null. dispatchConnectionDidClose must be getting called twice.
Comment 5 Adam Roben (:aroben) 2010-07-26 14:01:55 PDT
(In reply to comment #4)
> I added some code to the end of TestController::run that deletes m_mainWebView. This causes a crash in the web process on Mac. It crashes in CoreIPC::Connection::dispatchConnectionDidClose because m_client is null. dispatchConnectionDidClose must be getting called twice.

Anders fixed this crash in r63916.
Comment 6 Adam Roben (:aroben) 2010-08-23 13:07:17 PDT
This was fixed in r64485.