Skip to content
Browse files
Regression(r293803) ProcessSwap.MediaTypeAfterSwap and ProcessSwap.Pa…
…geZoomLevelAfterSwap are failing

Reviewed by Alex Christensen.

Since r293803, WebKit's default WebContent process crash handler only reloads WebViews that are
visible. However, those 2 API tests were relying on the old behavior. To address the issue, use
a custom process termination handler which reloads the view.

* Tools/TestWebKitAPI/Tests/WebKitCocoa/
(-[PSONNavigationDelegate webViewWebContentProcessDidTerminate:]):

Canonical link:
git-svn-id: 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
cdumez committed May 13, 2022
1 parent 4ee336e commit c15a49d0ff37c4d446ab132ec7f6dc31b9e03df8
Showing with 5 additions and 0 deletions.
  1. +5 −0 Tools/TestWebKitAPI/Tests/WebKitCocoa/
@@ -220,6 +220,11 @@ - (void)_webView:(WKWebView *)webView didPerformClientRedirectFromURL:(NSURL *)s
didPerformClientRedirect = true;

- (void)webViewWebContentProcessDidTerminate:(WKWebView *)webView
[webView reload];


- (void)_webViewDidRequestPasswordForQuickLookDocument:(WKWebView *)webView

0 comments on commit c15a49d

Please sign in to comment.