Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: b87332b2a7c54b1d2548d26a986bb578dcb776d8
      
https://github.com/WebKit/WebKit/commit/b87332b2a7c54b1d2548d26a986bb578dcb776d8
  Author: Ryosuke Niwa <[email protected]>
  Date:   2026-10-05 (Mon, 05 Oct 2026)

  Changed paths:
    M Source/WebKit/WebProcess/WebPage/WebPage.cpp
    M Source/WebKit/WebProcess/WebPage/mac/WebPageMac.mm

  Log Message:
  -----------
  [Site Isolation] PreferredHTTPSPolicyAutomaticHTTPFallbackAfterSessionRestore 
fails
https://bugs.webkit.org/show_bug.cgi?id=326374

Reviewed by Sihui Liu.

With site isolation, the test's load of about:blank swaps to a new process (due 
to an EnhancedSecurity
change). ProvisionalPageProxy uses CommitTiming::Immediately for about:blank, 
so the provisional main frame
is committed inside the WebPage constructor. This calls 
WebChromeClient::mainFrameDidChange, which tried
to transfer the accessibility token before platformInitialize created 
m_mockAccessibilityElement, hitting
an assertion. Return early in that case; platformInitializeAccessibility 
transfers the token later.

Also, goToBackForwardItem disabled the HTTPS upgrade for http: history items 
only on the local main
frame. With site isolation, the session restore navigation swaps processes, so 
the main frame is still
remote and the load happens in the provisional frame, so the load was upgraded 
to https. Set the upgrade
behavior on the frame that actually loads.

* Source/WebKit/WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::goToBackForwardItem):
* Source/WebKit/WebProcess/WebPage/mac/WebPageMac.mm:
(WebKit::WebPage::platformReinitializeAccessibilityToken):

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



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

Reply via email to