Bug 275608

Summary: Clicking Edit > Paste in the in-page menu on Google Docs results in a failed MESSAGE_CHECK
Product: WebKit Reporter: ikopylov
Component: HTML EditingAssignee: Wenson Hsieh <wenson_hsieh>
Status: RESOLVED FIXED    
Severity: Normal CC: ahmad.saleem792, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: Safari 17   
Hardware: Unspecified   
OS: Unspecified   

ikopylov
Reported 2024-06-18 07:15:54 PDT
Seeing "This webpage reloaded because a problem occured" on Google Docs on Safari 17.5, when using the menu the Edit->Paste. Also reproduces on this fiddle: https://jsfiddle.net/fawq7y6h/ Issue seems to be calling execCommand('paste') on an iframe's contentDocument.
Attachments
Radar WebKit Bug Importer
Comment 1 2024-06-18 07:29:04 PDT
Wenson Hsieh
Comment 2 2024-06-18 07:34:30 PDT
I can reproduce this — failed message check in WebPageProxy: ``` void WebPageProxy::requestDOMPasteAccess(DOMPasteAccessCategory pasteAccessCategory, FrameIdentifier frameID, const IntRect& elementRect, const String& originIdentifier, CompletionHandler<void(DOMPasteAccessResponse)>&& completionHandler) { MESSAGE_CHECK_COMPLETION(m_legacyMainFrameProcess, !originIdentifier.isEmpty(), completionHandler(DOMPasteAccessResponse::DeniedForGesture)); ``` Seems like something we need to investigate. Thanks for the report!
Wenson Hsieh
Comment 3 2024-06-18 13:13:08 PDT
EWS
Comment 4 2024-06-18 18:23:00 PDT
Committed 280149@main (50abb5331762): <https://commits.webkit.org/280149@main> Reviewed commits have been landed. Closing PR #29947 and removing active labels.
ikopylov
Comment 5 2024-06-21 08:16:26 PDT
Thanks for the fix! Which version of Safari will this land in?
Note You need to log in before you can comment on or make changes to this bug.