Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 8247373eff63cfdb78d840b5f2ca1f081e01938f
      
https://github.com/WebKit/WebKit/commit/8247373eff63cfdb78d840b5f2ca1f081e01938f
  Author: Ronan Turner <[email protected]>
  Date:   2026-01-15 (Thu, 15 Jan 2026)

  Changed paths:
    M Tools/TestWebKitAPI/Tests/WebKitCocoa/Navigation.mm

  Log Message:
  -----------
  Fix WKNavigation tests when Enhanced Security is enabled
https://bugs.webkit.org/show_bug.cgi?id=305325
rdar://167982762

Reviewed by Matthew Finkel.

When the EnhancedSecurityHeuristics flag is enabled, the following two
tests in WKNavigation fail:

  * HTTPSFirstWithHTTPRedirect
  * PreferredHTTPSPolicyAutomaticHTTPFallbackWithHTTPRedirect

These have specific results which expect a particular load count and final
URL. However, these have an underlying reliance on the initial load
re-using a WebContent process, then a PSON occurring when we get the
cross-site redirect. This is because we previously have loaded the same
site as the initial request.

Removing the initial load to site.example showcases this by hitting the
same assertion failure. With Enhanced Security heuristics enabled, we'll
perform a process swap earlier and so hit this same failure case.

To make test behaviour consistent, with or without the Enhanced Security
heuristics flag, this test fix simply ensures the second browse is to a
different site than the initial browse, standardising the process
swapping behaviour.

* Tools/TestWebKitAPI/Tests/WebKitCocoa/Navigation.mm:
(TEST(WKNavigation, HTTPSFirstWithHTTPRedirect)):
(TEST(WKNavigation, PreferredHTTPSPolicyAutomaticHTTPFallbackWithHTTPRedirect)):

Canonical link: https://commits.webkit.org/305680@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to