Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: d0700078af9d0e4945391a283eaad15fd45273a5
      
https://github.com/WebKit/WebKit/commit/d0700078af9d0e4945391a283eaad15fd45273a5
  Author: Charlie Wolfe <charl...@apple.com>
  Date:   2025-08-15 (Fri, 15 Aug 2025)

  Changed paths:
    M Source/WebCore/loader/EmptyClients.cpp
    M Source/WebCore/loader/EmptyFrameLoaderClient.h
    M Source/WebCore/loader/LocalFrameLoaderClient.h
    M Source/WebKit/WebProcess/WebCoreSupport/WebLocalFrameLoaderClient.h
    M Source/WebKit/WebProcess/WebPage/WebPage.cpp
    M Source/WebKit/WebProcess/WebPage/WebPage.h
    M Source/WebKit/WebProcess/WebProcess.cpp

  Log Message:
  -----------
  Clear frame-specific storage access state when WebKitTestRunner revokes 
permission
https://bugs.webkit.org/show_bug.cgi?id=297491
rdar://158441742

Reviewed by Rupin Mittal.

In 298743@main, I changed the Storage Access API to grant storage access at the 
frame level instead of
the page level. This undid the changes introduced in 298535@main, which cleared 
page-level permission
state when WKTR revoked permission. We should also be clearing frame-specific 
storage state in this case.

This change progresses the following WPTs, though we won’t have CI coverage 
because we lack a local
DNS resolver:
imported/w3c/web-platform-tests/storage-access-api/requestStorageAccess-cross-site-iframe.sub.https.window.html
imported/w3c/web-platform-tests/storage-access-api/requestStorageAccess-nested-cross-site-iframe.sub.https.window.html

* Source/WebCore/loader/EmptyClients.cpp:
(WebCore::EmptyFrameLoaderClient::revokeFrameSpecificStorageAccess):
* Source/WebCore/loader/EmptyFrameLoaderClient.h:
* Source/WebCore/loader/LocalFrameLoaderClient.h:
* Source/WebKit/WebProcess/WebCoreSupport/WebLocalFrameLoaderClient.h:
* Source/WebKit/WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::revokeFrameSpecificStorageAccess):
* Source/WebKit/WebProcess/WebPage/WebPage.h:
* Source/WebKit/WebProcess/WebProcess.cpp:
(WebKit::WebProcess::clearResourceLoadStatistics):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to