[webkit-changes] [WebKit/WebKit] f24797: Using Cross-Origin-Opener-Policy HTTP header disab...

Chris Dumez noreply at github.com
Sun Aug 11 19:45:40 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: f2479794724e0b99b9bea5b78631f518bd87be1a
      https://github.com/WebKit/WebKit/commit/f2479794724e0b99b9bea5b78631f518bd87be1a
  Author: Chris Dumez <cdumez at apple.com>
  Date:   2024-08-11 (Sun, 11 Aug 2024)

  Changed paths:
    M Source/WebKit/UIProcess/WebPageProxy.cpp
    M Tools/TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm

  Log Message:
  -----------
  Using Cross-Origin-Opener-Policy HTTP header disables the back/forward cache
https://bugs.webkit.org/show_bug.cgi?id=274310
rdar://128678196

Reviewed by Per Arne Vollan.

When process-swapping on navigation response, due to the Cross-Origin-Opener-Policy HTTP header,
we would fail to create a SuspendedPageProxy for the page in the previous WebProcess, which
would essentially disable the back/forward cache.

This is not efficient and also causes issues when navigating back to a history item that was
created by JavaScript via history.pushState().

* Source/WebKit/UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::commitProvisionalPage):
* Tools/TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
(-[PSONNavigationDelegate _webView:navigation:didSameDocumentNavigation:]):
((ProcessSwap, NavigateBackAfterNavigatingAwayFromCOOPUsingBFCache)):

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



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


More information about the webkit-changes mailing list