Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 39b67e68ebc2aed8f549fdf73622f8f6c4871647
      
https://github.com/WebKit/WebKit/commit/39b67e68ebc2aed8f549fdf73622f8f6c4871647
  Author: Roberto Rodriguez <[email protected]>
  Date:   2026-08-19 (Wed, 19 Aug 2026)

  Changed paths:
    M Source/WebKit/UIProcess/EnhancedSecurityTracking.cpp

  Log Message:
  -----------
  REGRESSION(319079@main): 
TestWebKitAPI.WKNavigation.PreferredHTTPSPolicyAutomaticHTTPFallbackAfterTerminateProcess
 (api-test) is a constant fail.
https://bugs.webkit.org/show_bug.cgi?id=321949
rdar://185125314

Reviewed by Matthew Finkel.

319079@main normalizes an empty document URL to about:blank in 
NavigationRequester::from so
about:blank inherits its initiator's policy container rather than a 
cross-origin one. That also
makes NavigationAction::isEmpty() false for a history restore in a relaunched 
process, so its
triggering action is preserved and the navigation reports 
NavigationType::BackForward.
handleBackForwardNavigation then runs for a reload, whose navigation sets 
reloadItem() rather
than targetItem(), so the prior state reads as Disabled and Enhanced Security 
goes dormant. The
resulting process swap discards the HTTP fallback state and the reload is 
upgraded back to https.

Fix by falling back to reloadItem() when there is no targetItem(). Both name 
the item being
navigated to and only one is ever set, so the item's stored Enhanced Security 
state is used
instead of defaulting to Disabled.

* Source/WebKit/UIProcess/EnhancedSecurityTracking.cpp:
(WebKit::EnhancedSecurityTracking::handleBackForwardNavigation):

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



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

Reply via email to