Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: ff41eac48894511fe1be7de026034a39a27e2f2b
      
https://github.com/WebKit/WebKit/commit/ff41eac48894511fe1be7de026034a39a27e2f2b
  Author: Chris Dumez <[email protected]>
  Date:   2023-02-08 (Wed, 08 Feb 2023)

  Changed paths:
    M Source/WebKit/UIProcess/Network/NetworkProcessProxy.cpp
    M Tools/TestWebKitAPI/Tests/WebKitCocoa/SnapshotStore.mm

  Log Message:
  -----------
  `Clear-Site-Data: "cache"` should only suppress the next navigation snapshot 
in case of same-origin navigation
https://bugs.webkit.org/show_bug.cgi?id=251855

Reviewed by Sihui Liu.

`Clear-Site-Data: "cache"` should only suppress the next navigation snapshot in
case of same-origin navigation.

So if you navigate from A1 to B, and then to A2 (which serves the
Clear-Site-Data HTTP header). You'd expect the snapshot for A1 to get deleted
but not the one for B. This is because A2 served the header and we should thus
only delete snapshots for origin A.

Previously, we would prevent the creation of the snapshot for B when navigating
to A2. This patch fixes this.

* Source/WebKit/UIProcess/Network/NetworkProcessProxy.cpp:
(WebKit::NetworkProcessProxy::deleteWebsiteDataInWebProcessesForOrigin):
* Tools/TestWebKitAPI/Tests/WebKitCocoa/SnapshotStore.mm:
(TEST):

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


_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to