[webkit-changes] [WebKit/WebKit] 0b662f: [iOS] Allow WKWebView clients to customize the fil...
lilyspiniolas
noreply at github.com
Mon Sep 30 16:18:18 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 0b662f0233021039f359f91308fe4762e78d1f97
https://github.com/WebKit/WebKit/commit/0b662f0233021039f359f91308fe4762e78d1f97
Author: Lily Spiniolas <lily_spiniolas at apple.com>
Date: 2024-09-30 (Mon, 30 Sep 2024)
Changed paths:
M Source/WebKit/Shared/Cocoa/APIObject.mm
M Source/WebKit/UIProcess/API/Cocoa/WKOpenPanelParameters.h
M Source/WebKit/UIProcess/API/Cocoa/WKOpenPanelParameters.mm
M Source/WebKit/UIProcess/API/Cocoa/WKOpenPanelParametersInternal.h
M Source/WebKit/UIProcess/API/Cocoa/WKOpenPanelParametersPrivate.h
M Source/WebKit/UIProcess/API/Cocoa/WKUIDelegate.h
M Source/WebKit/UIProcess/Cocoa/UIDelegate.h
M Source/WebKit/UIProcess/Cocoa/UIDelegate.mm
M Source/WebKit/UIProcess/ios/forms/WKFileUploadPanel.h
M Source/WebKit/UIProcess/ios/forms/WKFileUploadPanel.mm
M Tools/TestWebKitAPI/Tests/WebKitCocoa/RunOpenPanel.mm
Log Message:
-----------
[iOS] Allow WKWebView clients to customize the file upload flow for file inputs
https://bugs.webkit.org/show_bug.cgi?id=280537
rdar://130219174
Reviewed by Wenson Hsieh.
These changes allow clients to implement 'webView:runOpenPanelWithParameters:initiatedByFrame:completionHandler:'
on iOS if they desire non-default behavior for the file upload flow in
WKWebView. These changes also make WKFileUploadPanel's
'_copyToNewTemporaryDirectory' a class method so that the fix for
rdar://78448610 can be reused here without code duplication.
* Source/WebKit/Shared/Cocoa/APIObject.mm:
(API::Object::newObject):
* Source/WebKit/UIProcess/API/Cocoa/WKOpenPanelParameters.h:
* Source/WebKit/UIProcess/API/Cocoa/WKOpenPanelParameters.mm:
* Source/WebKit/UIProcess/API/Cocoa/WKOpenPanelParametersInternal.h:
* Source/WebKit/UIProcess/API/Cocoa/WKOpenPanelParametersPrivate.h:
* Source/WebKit/UIProcess/API/Cocoa/WKUIDelegate.h:
* Source/WebKit/UIProcess/Cocoa/UIDelegate.h:
* Source/WebKit/UIProcess/Cocoa/UIDelegate.mm:
(WebKit::UIDelegate::setDelegate):
(WebKit::UIDelegate::UIClient::runOpenPanel):
* Source/WebKit/UIProcess/ios/forms/WKFileUploadPanel.h:
* Source/WebKit/UIProcess/ios/forms/WKFileUploadPanel.mm:
* Tools/TestWebKitAPI/Tests/WebKitCocoa/RunOpenPanel.mm:
(TestWebKitAPI::TEST(WebKit, RunOpenPanelNonLatin1)):
(TestWebKitAPI::TEST(WebKit, FileInputTypeCancelEvent)):
Canonical link: https://commits.webkit.org/284471@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