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 Editing | Assignee: | 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
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/130078654>
Wenson Hsieh
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
Pull request: https://github.com/WebKit/WebKit/pull/29947
EWS
Committed 280149@main (50abb5331762): <https://commits.webkit.org/280149@main>
Reviewed commits have been landed. Closing PR #29947 and removing active labels.
ikopylov
Thanks for the fix! Which version of Safari will this land in?