Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 267386a0cc1cd17e40151cd460520e37e0bbc118
https://github.com/WebKit/WebKit/commit/267386a0cc1cd17e40151cd460520e37e0bbc118
Author: Charlie Wolfe <[email protected]>
Date: 2024-06-14 (Fri, 14 Jun 2024)
Changed paths:
M Source/WebKit/UIProcess/WebOpenPanelResultListenerProxy.cpp
M Source/WebKit/UIProcess/WebOpenPanelResultListenerProxy.h
M Source/WebKit/UIProcess/WebPageProxy.cpp
M Tools/TestWebKitAPI/Tests/WebKitCocoa/SiteIsolation.mm
M Tools/TestWebKitAPI/cocoa/TestUIDelegate.h
M Tools/TestWebKitAPI/cocoa/TestUIDelegate.mm
Log Message:
-----------
[Site Isolation] Fix file open panels
https://bugs.webkit.org/show_bug.cgi?id=275465
rdar://128979437
Reviewed by Aditya Keerthi.
When a file panel is opened, the selected file should be sent to the process
that opened the panel. Store
a weak pointer to the process that opened the file on
`WebOpenPanelResultListenerProxy`.
* Source/WebKit/UIProcess/WebOpenPanelResultListenerProxy.cpp:
(WebKit::WebOpenPanelResultListenerProxy::WebOpenPanelResultListenerProxy):
(WebKit::WebOpenPanelResultListenerProxy::invalidate):
* Source/WebKit/UIProcess/WebOpenPanelResultListenerProxy.h:
(WebKit::WebOpenPanelResultListenerProxy::create):
(WebKit::WebOpenPanelResultListenerProxy::process const):
* Source/WebKit/UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::runOpenPanel):
(WebKit::WebPageProxy::didChooseFilesForOpenPanel):
(WebKit::WebPageProxy::didCancelForOpenPanel):
* Tools/TestWebKitAPI/Tests/WebKitCocoa/SiteIsolation.mm:
(TestWebKitAPI::siteIsolatedViewAndDelegate):
(TestWebKitAPI::TEST(SiteIsolation, RunOpenPanel)):
(TestWebKitAPI::TEST(SiteIsolation, CancelOpenPanel)):
* Tools/TestWebKitAPI/cocoa/TestUIDelegate.h:
* Tools/TestWebKitAPI/cocoa/TestUIDelegate.mm:
(-[TestUIDelegate
webView:runOpenPanelWithParameters:initiatedByFrame:completionHandler:]):
Canonical link: https://commits.webkit.org/280042@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes