| Summary: | Avoid querying pasteboard strings while dragging content over a potential drop target | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Wenson Hsieh <wenson_hsieh> | ||||||
| Component: | HTML Editing | Assignee: | Wenson Hsieh <wenson_hsieh> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | bdakin, megan_gardner, rniwa, thorton, webkit-bug-importer, wenson_hsieh | ||||||
| Priority: | P2 | Keywords: | DoNotImportToRadar | ||||||
| Version: | WebKit Nightly Build | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Attachments: |
|
||||||||
|
Description
Wenson Hsieh
2020-03-24 22:51:15 PDT
Work towards <rdar://problem/59611585> Created attachment 394471 [details]
Patch
Comment on attachment 394471 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=394471&action=review > Source/WebCore/ChangeLog:15 > + This is incompatible with some changes in the near future which will prevent the web content process from any > + reading data from the pasteboard, if a paste or drop action has not yet been performed. To address this issue, "any reading data"? Comment on attachment 394471 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=394471&action=review > Source/WebCore/platform/PlatformPasteboard.h:102 > WEBCORE_EXPORT Vector<String> typesSafeForDOMToReadAndWrite(const String& origin) const; > + WEBCORE_EXPORT bool containsDOMSafeStringForType(const String&) const; For consistency, I suggest we call this containsStringSafeForDOMToReadForType Comment on attachment 394471 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=394471&action=review >> Source/WebCore/ChangeLog:15 >> + reading data from the pasteboard, if a paste or drop action has not yet been performed. To address this issue, > > "any reading data"? Oops — fixed! >> Source/WebCore/platform/PlatformPasteboard.h:102 >> + WEBCORE_EXPORT bool containsDOMSafeStringForType(const String&) const; > > For consistency, I suggest we call this containsStringSafeForDOMToReadForType Sounds good — changed to containsStringSafeForDOMToReadForType. Created attachment 394494 [details]
Patch for landing
Committed r258980: <https://trac.webkit.org/changeset/258980> All reviewed patches have been landed. Closing bug and clearing flags on attachment 394494 [details]. |