Refactor some code running in the web process, such that it doesn’t need to ask for pasteboard data prior to drop (or paste).
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].