[webkit-changes] [WebKit/WebKit] ce5ed8: Add support for updatable list of domains with res...

bnham noreply at github.com
Mon Jan 29 15:16:10 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: ce5ed8691c6da66b81833634d7e01d7888fbd90e
      https://github.com/WebKit/WebKit/commit/ce5ed8691c6da66b81833634d7e01d7888fbd90e
  Author: Ben Nham <nham at apple.com>
  Date:   2024-01-29 (Mon, 29 Jan 2024)

  Changed paths:
    M Source/WebCore/PAL/pal/spi/cocoa/WebPrivacySPI.h
    M Source/WebKit/Platform/cocoa/WebPrivacyHelpers.h
    M Source/WebKit/Platform/cocoa/WebPrivacyHelpers.mm
    A Source/WebKit/Shared/RestrictedOpenerType.h
    M Source/WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm
    M Source/WebKit/WebKit.xcodeproj/project.pbxproj

  Log Message:
  -----------
  Add support for updatable list of domains with restricted openers
https://bugs.webkit.org/show_bug.cgi?id=268185
rdar://problem/121677395

Reviewed by Wenson Hsieh.

This adds support for a list of domains that will receive restricted window opener access. The list
is maintained and updated through WebPrivacy.

I didn't add a method to override the list for testing purposes yet. I'll do that in a future patch
which actually uses these interfaces.

* Source/WebCore/PAL/pal/spi/cocoa/WebPrivacySPI.h:
* Source/WebKit/Platform/cocoa/WebPrivacyHelpers.h:
* Source/WebKit/Platform/cocoa/WebPrivacyHelpers.mm:
(-[WKWebPrivacyNotificationListener listenForRestrictedOpenerDomainsChanges:]):
(-[WKWebPrivacyNotificationListener didUpdate:]):
(WebKit::RestrictedOpenerDomainsController::shared):
(WebKit::RestrictedOpenerDomainsController::RestrictedOpenerDomainsController):
(WebKit::restrictedOpenerType):
(WebKit::RestrictedOpenerDomainsController::populate):
(WebKit::RestrictedOpenerDomainsController::lookup const):
* Source/WebKit/WebKit.xcodeproj/project.pbxproj:

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




More information about the webkit-changes mailing list