Title: [198153] trunk/Source/WebKit2
- Revision
- 198153
- Author
- [email protected]
- Date
- 2016-03-14 13:54:15 -0700 (Mon, 14 Mar 2016)
Log Message
REGRESSION (r191691): Can't Share Selected Text
https://bugs.webkit.org/show_bug.cgi?id=155459
rdar://problem/24893625
Reviewed by Tim Horton.
Add the selected text as well. Somehow this got lost in the refactoring.
* UIProcess/mac/WebContextMenuProxyMac.mm:
(WebKit::WebContextMenuProxyMac::createShareMenuItem):
Modified Paths
Diff
Modified: trunk/Source/WebKit2/ChangeLog (198152 => 198153)
--- trunk/Source/WebKit2/ChangeLog 2016-03-14 20:27:26 UTC (rev 198152)
+++ trunk/Source/WebKit2/ChangeLog 2016-03-14 20:54:15 UTC (rev 198153)
@@ -1,3 +1,16 @@
+2016-03-14 Anders Carlsson <[email protected]>
+
+ REGRESSION (r191691): Can't Share Selected Text
+ https://bugs.webkit.org/show_bug.cgi?id=155459
+ rdar://problem/24893625
+
+ Reviewed by Tim Horton.
+
+ Add the selected text as well. Somehow this got lost in the refactoring.
+
+ * UIProcess/mac/WebContextMenuProxyMac.mm:
+ (WebKit::WebContextMenuProxyMac::createShareMenuItem):
+
2016-03-14 Tim Horton <[email protected]>
Revert r194125 and r194186: We're going to fix this a different way.
Modified: trunk/Source/WebKit2/UIProcess/mac/WebContextMenuProxyMac.mm (198152 => 198153)
--- trunk/Source/WebKit2/UIProcess/mac/WebContextMenuProxyMac.mm 2016-03-14 20:27:26 UTC (rev 198152)
+++ trunk/Source/WebKit2/UIProcess/mac/WebContextMenuProxyMac.mm 2016-03-14 20:54:15 UTC (rev 198153)
@@ -284,6 +284,9 @@
[items addObject:image.get()];
}
+ if (!m_context.selectedText().isEmpty())
+ [items addObject:(NSString *)m_context.selectedText()];
+
if (![items count])
return nil;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes