| Summary: | Add a `DOMPasteAccessCategory` to control which pasteboard the WebProcess is granted access to when pasting | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Devin Rousso <hi> | ||||||||
| Component: | New Bugs | Assignee: | Devin Rousso <hi> | ||||||||
| Status: | RESOLVED FIXED | ||||||||||
| Severity: | Normal | CC: | akeerthi, berto, cdumez, cgarcia, esprehn+autocc, ews-watchlist, gustavo, hi, japhet, kangil.han, megan_gardner, mifenton, thorton, tsavell, webkit-bug-importer, wenson_hsieh | ||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||
| Version: | WebKit Nightly Build | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| Bug Depends on: | |||||||||||
| Bug Blocks: | 191379 | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Devin Rousso
2021-12-07 10:57:38 PST
Created attachment 446217 [details]
Patch
Thanks for the patch. If this patch contains new public API please make sure it follows the guidelines for new WebKit2 GTK+ API. See https://trac.webkit.org/wiki/WebKitGTK/AddingNewWebKit2API Comment on attachment 446217 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=446217&action=review > Source/WebCore/page/Frame.h:179 > + bool requestDOMPasteAccess(DOMPasteAccessCategory); Could we make this default to `DOMPasteAccessCategory::General`? Comment on attachment 446217 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=446217&action=review >> Source/WebCore/page/Frame.h:179 >> + bool requestDOMPasteAccess(DOMPasteAccessCategory); > > Could we make this default to `DOMPasteAccessCategory::General`? Sure. I kinda like the explicit-ness of having the callsite know exactly which category they're asking for, but I can also see the benefit in having `General` be the default. Created attachment 446222 [details]
Patch
Committed r286632 (244945@main): <https://commits.webkit.org/244945@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 446222 [details]. It looks like the changes in https://trac.webkit.org/changeset/286632/webkit broke 3 pasteboard tests on iOS 15 editing/pasteboard/dom-paste/dom-paste-confirmation.html editing/pasteboard/dom-paste/dom-paste-consecutive-confirmations.html editing/pasteboard/dom-paste/dom-paste-requires-user-gesture.html tracking in https://bugs.webkit.org/show_bug.cgi?id=234014 Reverted r286632 for reason: Broke 3 tests on iOS Committed r286705 (244984@trunk): <https://commits.webkit.org/244984@trunk> Created attachment 446487 [details]
Patch
fix mistake in `-[WKContentView pasteForWebView:]`
Committed r286825 (245059@main): <https://commits.webkit.org/245059@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 446487 [details]. |