Don't select an image that is about to be serviced. Instead select it afterwards and before pasting the result. <rdar://problem/16807845>
Created attachment 230911 [details] Patch v1
Comment on attachment 230911 [details] Patch v1 View in context: https://bugs.webkit.org/attachment.cgi?id=230911&action=review > Source/WebCore/editing/mac/EditorMac.mm:272 > + if (&(node->document()) != m_frame.document()) Don't think you need the parens. > Source/WebKit/mac/ChangeLog:10 > + Call the new replaceNodeFromPasteboard API instead of readSelectionFromPasteboard. extra space at the beginning of the line > Source/WebKit/mac/Misc/WebSharingServicePickerController.mm:125 > + Node* node = page->contextMenuController().context().hitTestResult().innerNode(); > + if (node) { if (Node* node = ...)
https://trac.webkit.org/r168378