[webkit-changes] [WebKit/WebKit] 2e940a: Add some new network connection integrity flags

Wenson Hsieh noreply at github.com
Mon Jan 30 10:35:36 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 2e940ac01eb0f71a1df868f3cf7acf654c5cda9b
      https://github.com/WebKit/WebKit/commit/2e940ac01eb0f71a1df868f3cf7acf654c5cda9b
  Author: Wenson Hsieh <wenson_hsieh at apple.com>
  Date:   2023-01-30 (Mon, 30 Jan 2023)

  Changed paths:
    M Source/WebCore/PAL/pal/spi/cf/CFNetworkSPI.h
    M Source/WebCore/platform/network/NetworkConnectionIntegrity.h
    M Source/WebKit/NetworkProcess/cocoa/NetworkDataTaskCocoa.mm
    M Source/WebKit/UIProcess/API/Cocoa/WKWebpagePreferences.mm
    M Source/WebKit/UIProcess/API/Cocoa/WKWebpagePreferencesPrivate.h

  Log Message:
  -----------
  Add some new network connection integrity flags
https://bugs.webkit.org/show_bug.cgi?id=251337
rdar://103369330

Reviewed by Aditya Keerthi.

Add a couple of new flags to `WebCore::NetworkConnectionIntegrity`, and expose it through new
corresponding SPI policy flags.

* Source/WebCore/PAL/pal/spi/cf/CFNetworkSPI.h:
* Source/WebCore/platform/network/NetworkConnectionIntegrity.h:
* Source/WebKit/NetworkProcess/cocoa/NetworkDataTaskCocoa.mm:
(WebKit::NetworkDataTaskCocoa::NetworkDataTaskCocoa):

Call `-_setWebSearchContent:` if the policy flag is set, and
`-[NSMutableURLRequest _setWebSearchContent:]` is available.

* Source/WebKit/UIProcess/API/Cocoa/WKWebpagePreferences.mm:
(-[WKWebpagePreferences _networkConnectionIntegrityPolicy]):
(-[WKWebpagePreferences _setNetworkConnectionIntegrityPolicy:]):
* Source/WebKit/UIProcess/API/Cocoa/WKWebpagePreferencesPrivate.h:

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




More information about the webkit-changes mailing list