DRT doesn't call Internals::resetToConsistentState() before the first test. This is because it's called inside this block: void resetWebViewToConsistentStateBeforeTesting(const TestOptions& options) { ... if (gTestRunner) { gTestRunner->resetPageVisibility(); WebCoreTestSupport::resetInternalsObject([mainFrame globalContext]); // in the case that a test using the chrome input field failed, be sure to clean up for the next test gTestRunner->removeChromeInputField(); } and we don't have a gTestRunner yet. [mainFrame globalContext] needs one because it triggers didClearWindowObjectInStandardWorldForFrame: that assumes that one exists.
Created attachment 368212 [details] Patch
Comment on attachment 368212 [details] Patch Attachment 368212 [details] did not pass ios-sim-ews (ios-simulator-wk2): Output: https://webkit-queues.webkit.org/results/11992467 New failing tests: imported/w3c/web-platform-tests/service-workers/cache-storage/window/cache-abort.https.html
Created attachment 368217 [details] Archive of layout-test-results from ews122 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews122 Port: ios-simulator-wk2 Platform: Mac OS X 10.13.6
Comment on attachment 368212 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=368212&action=review > Tools/DumpRenderTree/mac/DumpRenderTree.mm:1887 > + // in the case that a test using the chrome input field failed, be sure to clean up for the next test Please fix to be sentence style.
https://trac.webkit.org/r244668
<rdar://problem/50223289>