-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pass frameID along to grantAccessToCurrentPasteboardData
https://bugs.webkit.org/show_bug.cgi?id=273575 rdar://127383912 Reviewed by Sihui Liu. We need to start passing along frame info whenever granting access to pasteboard data because under site isolation, a frame may have a different process than the main frame. This is nessesary to work towards drag and drop. This change also gets paste in a site isolated iframe working. We currently change the process to grant pasteboard only in the no callback executeEditCommand case, as that is what paste uses and already sends a message to the focused or main frame. Added API test for paste. * Source/WebKit/UIProcess/Cocoa/WebPageProxyCocoa.mm: (WebKit::WebPageProxy::grantAccessToCurrentPasteboardData): * Source/WebKit/UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::executeEditCommand): (WebKit::WebPageProxy::performDragOperation): (WebKit::WebPageProxy::willPerformPasteCommand): * Source/WebKit/UIProcess/WebPageProxy.h: * Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm: (-[WKContentView _handleDOMPasteRequestWithResult:]): * Source/WebKit/UIProcess/ios/WebPageProxyIOS.mm: (WebKit::WebPageProxy::willPerformPasteCommand): * Source/WebKit/UIProcess/mac/WebPageProxyMac.mm: (WebKit::WebPageProxy::readSelectionFromPasteboard): (WebKit::WebPageProxy::platformDidSelectItemFromActiveContextMenu): (WebKit::WebPageProxy::willPerformPasteCommand): * Source/WebKit/UIProcess/mac/WebViewImpl.mm: (WebKit::WebViewImpl::requestDOMPasteAccess): (WebKit::WebViewImpl::handleDOMPasteRequestForCategoryWithResult): Canonical link: https://commits.webkit.org/278480@main
- Loading branch information
Pascoe
committed
May 7, 2024
1 parent
36dbfb8
commit ba6e612
Showing
6 changed files
with
80 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters