[webkit-changes] [WebKit/WebKit] 515a0e: Add MarketplaceKit URL handler

bnham noreply at github.com
Mon Jan 29 11:43:52 PST 2024


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

  Changed paths:
    M Source/WTF/wtf/PlatformHave.h
    M Source/WebKit/Configurations/WebKitSwift.xcconfig
    M Source/WebKit/DerivedSources.make
    A Source/WebKit/UIProcess/Cocoa/MarketplaceKitWrapper.swift
    M Source/WebKit/UIProcess/Cocoa/NavigationState.mm
    M Source/WebKit/WebKit.xcodeproj/project.pbxproj

  Log Message:
  -----------
  Add MarketplaceKit URL handler
https://bugs.webkit.org/show_bug.cgi?id=268260
rdar://121812886

Reviewed by Brady Eidson.

WebKit needs to intercept navigations to MarketplaceKit URL schemes and call the MarketplaceKit
installation API with the appropriate referrer.

* Source/WTF/wtf/PlatformEnableCocoa.h:
* Source/WTF/wtf/PlatformHave.h:
* Source/WebKit/Configurations/WebKitSwift.xcconfig:
* Source/WebKit/DerivedSources.make:
* Source/WebKit/UIProcess/Cocoa/MarketplaceKitWrapper.swift: Added.
(MarketplaceKitWrapper.requestAppInstallation(_:url:)):
* Source/WebKit/UIProcess/Cocoa/NavigationState.mm:
(WebKit::isMarketplaceKitURL):
(WebKit::interceptMarketplaceKitNavigation):
(WebKit::tryInterceptNavigation):
(WebKit::NavigationState::NavigationClient::decidePolicyForNavigationAction):
* Source/WebKit/WebKit.xcodeproj/project.pbxproj:

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




More information about the webkit-changes mailing list