Skip to content

[SwiftUI] Remove unused initial download support implementation#43367

Merged
webkit-commit-queue merged 1 commit intoWebKit:mainfrom
rr-codes:eng/148290059
Apr 1, 2025
Merged

[SwiftUI] Remove unused initial download support implementation#43367
webkit-commit-queue merged 1 commit intoWebKit:mainfrom
rr-codes:eng/148290059

Conversation

@rr-codes
Copy link
Copy Markdown
Contributor

@rr-codes rr-codes commented Apr 1, 2025

ebb382f

[SwiftUI] Remove unused initial download support implementation
https://bugs.webkit.org/show_bug.cgi?id=290819
rdar://148290059

Reviewed by Tim Horton.

A version of this implementation may be used in the future, but for now this is unused code and
also unnecessary SPI.

* Source/WebKit/UIProcess/API/Swift/DownloadCoordinator.swift: Removed.
* Source/WebKit/UIProcess/API/Swift/WebPage+Download.swift: Removed.
* Source/WebKit/UIProcess/API/Swift/WebPage.swift:
(startDownload(using:)): Deleted.
(resumeDownload(fromResumeData:)): Deleted.
* Source/WebKit/UIProcess/Cocoa/WKDownloadDelegateAdapter.swift: Removed.
* Source/WebKit/UIProcess/Cocoa/WKNavigationDelegateAdapter.swift:
(WKNavigationDelegateAdapter.yieldDownloadProgress(_:download:)): Deleted.
(WKNavigationDelegateAdapter.webView(_:navigationAction:didBecome:)): Deleted.
(WKNavigationDelegateAdapter.webView(_:navigationResponse:didBecome:)): Deleted.
(WKNavigationDelegateAdapter._webView(_:contextMenuDidCreateDownload:)): Deleted.
* Source/WebKit/WebKit.xcodeproj/project.pbxproj:
* Tools/SwiftBrowser/Source/SwiftBrowser.swift:
(SwiftBrowserApp.body):
* Tools/SwiftBrowser/Source/ViewModel/BrowserViewModel.swift:
* Tools/SwiftBrowser/Source/ViewModel/DownloadCoordinator.swift: Removed.
* Tools/SwiftBrowser/Source/ViewModel/Downloadable.swift: Removed.
* Tools/SwiftBrowser/Source/Views/ContentView.swift:
(ContentView.body):
* Tools/SwiftBrowser/Source/Views/DownloadsView.swift: Removed.
* Tools/SwiftBrowser/SwiftBrowser.xcodeproj/project.pbxproj:

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

f531f1b

Misc iOS, visionOS, tvOS & watchOS macOS Linux Windows
✅ 🧪 style ✅ 🛠 ios ✅ 🛠 mac 🛠 wpe ✅ 🛠 win
✅ 🧪 bindings ✅ 🛠 ios-sim ✅ 🛠 mac-AS-debug 🧪 wpe-wk2 🧪 win-tests
✅ 🧪 webkitperl 🧪 ios-wk2 🧪 api-mac 🧪 api-wpe
🧪 ios-wk2-wpt 🧪 mac-wk1 🛠 wpe-cairo
🧪 api-ios 🧪 mac-wk2 ✅ 🛠 gtk
✅ 🛠 vision 🧪 mac-AS-debug-wk2 🧪 gtk-wk2
✅ 🛠 vision-sim ✅ 🧪 mac-wk2-stress 🧪 api-gtk
🧪 vision-wk2 🧪 mac-intel-wk2 🛠 playstation
✅ 🛠 🧪 unsafe-merge ✅ 🛠 tv 🛠 mac-safer-cpp
🛠 tv-sim
🛠 watch
✅ 🛠 watch-sim

@rr-codes rr-codes self-assigned this Apr 1, 2025
@rr-codes rr-codes added the New Bugs Unclassified bugs are placed in this component until the correct component can be determined. label Apr 1, 2025
@rr-codes rr-codes added the unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing label Apr 1, 2025
https://bugs.webkit.org/show_bug.cgi?id=290819
rdar://148290059

Reviewed by Tim Horton.

A version of this implementation may be used in the future, but for now this is unused code and
also unnecessary SPI.

* Source/WebKit/UIProcess/API/Swift/DownloadCoordinator.swift: Removed.
* Source/WebKit/UIProcess/API/Swift/WebPage+Download.swift: Removed.
* Source/WebKit/UIProcess/API/Swift/WebPage.swift:
(startDownload(using:)): Deleted.
(resumeDownload(fromResumeData:)): Deleted.
* Source/WebKit/UIProcess/Cocoa/WKDownloadDelegateAdapter.swift: Removed.
* Source/WebKit/UIProcess/Cocoa/WKNavigationDelegateAdapter.swift:
(WKNavigationDelegateAdapter.yieldDownloadProgress(_:download:)): Deleted.
(WKNavigationDelegateAdapter.webView(_:navigationAction:didBecome:)): Deleted.
(WKNavigationDelegateAdapter.webView(_:navigationResponse:didBecome:)): Deleted.
(WKNavigationDelegateAdapter._webView(_:contextMenuDidCreateDownload:)): Deleted.
* Source/WebKit/WebKit.xcodeproj/project.pbxproj:
* Tools/SwiftBrowser/Source/SwiftBrowser.swift:
(SwiftBrowserApp.body):
* Tools/SwiftBrowser/Source/ViewModel/BrowserViewModel.swift:
* Tools/SwiftBrowser/Source/ViewModel/DownloadCoordinator.swift: Removed.
* Tools/SwiftBrowser/Source/ViewModel/Downloadable.swift: Removed.
* Tools/SwiftBrowser/Source/Views/ContentView.swift:
(ContentView.body):
* Tools/SwiftBrowser/Source/Views/DownloadsView.swift: Removed.
* Tools/SwiftBrowser/SwiftBrowser.xcodeproj/project.pbxproj:

Canonical link: https://commits.webkit.org/292981@main
@webkit-commit-queue
Copy link
Copy Markdown
Collaborator

Committed 292981@main (ebb382f): https://commits.webkit.org/292981@main

Reviewed commits have been landed. Closing PR #43367 and removing active labels.

@webkit-commit-queue webkit-commit-queue merged commit ebb382f into WebKit:main Apr 1, 2025
@webkit-commit-queue webkit-commit-queue removed the unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing label Apr 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

New Bugs Unclassified bugs are placed in this component until the correct component can be determined.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants