http/tests/in-app-browser-privacy/sub-frame-redirect-to-non-app-bound-domain-blocked.html is a flaky crash across iOS platforms. HISTORY: https://results.webkit.org/?suite=layout-tests&test=http%2Ftests%2Fin-app-browser-privacy%2Fsub-frame-redirect-to-non-app-bound-domain-blocked.html I attempted to replicate the failure as follows: run-webkit-test --iOS-simulator http/tests/in-app-browser-privacy/sub-frame-redirect-to-non-app-bound-domain-blocked.html I attempted running this test in iterations as well as in a test list with the issue not reproducing. Crash Log is attached.
Created attachment 464696 [details] Crash Log
Upon looking at the history, it looks like the first crash occurred at 255215@main. I was able to reproduce this crash at this build and later.
<rdar://problem/104774189>
I was able to reproduce the crash at 255215@main as follows: run-webkit-test --iOS-simulator http/tests/in-app-browser-privacy/sub-frame-redirect-to-non-app-bound-domain-blocked.html
Pull request: https://github.com/WebKit/WebKit/pull/9276
There is only one ASSERT in this function: // The bundle identifier can only be set once per test, and is cleared between tests. RELEASE_ASSERT(!m_hasSetApplicationBundleIdentifier); Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 org.webkit.WebKitTestRunnerApp 0x109cd6f62 WTFCrashWithInfo(int, char const*, char const*, int) 1 org.webkit.WebKitTestRunnerApp 0x109cec308 WTR::TestController::createWebViewWithOptions(WTR::TestOptions const&) 2 org.webkit.WebKitTestRunnerApp 0x109cec99e WTR::TestController::ensureViewSupportsOptionsForTest(WTR::TestInvocation const&) 3 org.webkit.WebKitTestRunnerApp 0x109cee7c8 WTR::TestController::configureViewForTest(WTR::TestInvocation const&) 4 org.webkit.WebKitTestRunnerApp 0x109d0952a WTR::TestInvocation::invoke() 5 org.webkit.WebKitTestRunnerApp 0x109cee95a WTR::TestController::runTest(char const*) The bundle identifier is set via a WKTR pragma, but why does this happen twice? I don't see any window.opens. <!DOCTYPE html><!-- webkit-test-runner [ enableInAppBrowserPrivacy=true applicationBundleIdentifier=inAppBrowserPrivacyTestIdentifier isAppBoundWebView=true ] -->
Test gardening commit 259579@main (bf9efb4e0c7e): <https://commits.webkit.org/259579@main> Reviewed commits have been landed. Closing PR #9276 and removing active labels.