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

https://bugs.webkit.org/show_bug.cgi?id=240399

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/ProcessSwapOnNavigation.mm:
(-[PSONNavigationDelegate webViewWebContentProcessDidTerminate:]):

Canonical link: https://commits.webkit.org/250540@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@294172 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/ProcessSwapOnNavigation.mm
@@ -220,6 +220,11 @@ - (void)_webView:(WKWebView *)webView didPerformClientRedirectFromURL:(NSURL *)s
didPerformClientRedirect = true;
}

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

#if PLATFORM(IOS_FAMILY)

- (void)_webViewDidRequestPasswordForQuickLookDocument:(WKWebView *)webView

0 comments on commit c15a49d

Please sign in to comment.