WebKitTestRunner should be more aggressive about ensuring consistent state between tests. For instance, it should ensure that there are no outstanding loads, all windows other than the main window are closed and the web process is alive.
<rdar://problem/8283644>
Created attachment 64181 [details] Patch
Comment on attachment 64181 [details] Patch r-ing for now, there is something weird in here.
> + WKRetainPtr<WKURLRef> url(AdoptWK, createWKURL("about:blank")); > + WKPageLoadURL(m_mainWebView->page(), url.get()); It seems that this can affect performance a lot. DRT doesn't do that, does it?
(In reply to comment #4) > > + WKRetainPtr<WKURLRef> url(AdoptWK, createWKURL("about:blank")); > > + WKPageLoadURL(m_mainWebView->page(), url.get()); > > It seems that this can affect performance a lot. DRT doesn't do that, does it? DRT does, [mainFrame loadHTMLString:@"<html></html>" baseURL:[NSURL URLWithString:@"about:blank"]]; [mainFrame stopLoading]; in runTest(). I am not sure how much that differs in performance, but since we don't have that mechanism yet, I thought this would do nicely.
Created attachment 64188 [details] Patch 2
Landed in r65267.