[webkit-changes] [WebKit/WebKit] 9bdd62: [SwiftUI] Add `load(fileURL:)` method to WebPage

Richard Robinson noreply at github.com
Mon Dec 9 11:47:58 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 9bdd624f21b8472f8f81dcaf759245f3c9420974
      https://github.com/WebKit/WebKit/commit/9bdd624f21b8472f8f81dcaf759245f3c9420974
  Author: Richard Robinson <richard_robinson2 at apple.com>
  Date:   2024-12-09 (Mon, 09 Dec 2024)

  Changed paths:
    M Source/WebKit/UIProcess/API/Swift/WebPage+NavigationPreferences.swift
    M Source/WebKit/UIProcess/API/Swift/WebPage.swift

  Log Message:
  -----------
  [SwiftUI] Add `load(fileURL:)` method to WebPage
https://bugs.webkit.org/show_bug.cgi?id=284309
rdar://141168231

Reviewed by Aditya Keerthi.

Add a missing `load(fileURL:)` method to `WebPage`.

* Source/WebKit/UIProcess/API/Swift/WebPage+NavigationPreferences.swift:

Drive-by fix: Fix an implementation issue in NavigationPreferences to avoid calling a setter method unnecessarily.

* Source/WebKit/UIProcess/API/Swift/WebPage.swift:
(WebPage_v0.load(fileURL:allowingReadAccessTo:)):
(WebPage_v0.load(fileRequest:allowingReadAccessTo:)):
(WebPage_v0.load(simulatedRequest:response:responseData:)):
(WebPage_v0.load(simulatedRequest:responseHTML:)):
(WebPage_v0.load(_:allowingReadAccessTo:)): Deleted.
(WebPage_v0.loadSimulatedRequest(_:response:responseData:)): Deleted.
(WebPage_v0.loadSimulatedRequest(_:responseHTML:)): Deleted.

Drive-by fix: Fix the naming of some of the other `load` methods.
Canonical link: https://commits.webkit.org/287560@main



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list