Copy and Lookup menu items should be disabled when something is not selectable rdar://problem/19149219
Created attachment 242864 [details] Patch
Comment on attachment 242864 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=242864&action=review > Source/WebCore/rendering/HitTestResult.cpp:549 > + Node* node = innerNode(); It seems like we need to run over all of the nodes in the range that we expand out to, not just the HitTestResult's innerNode (for user-select: none). > Source/WebKit2/UIProcess/mac/WKActionMenuController.mm:783 > + if (!hitTestResult->allowsCopy()) { You can move this into the thing that makes them. > Source/WebKit/mac/WebView/WebActionMenuController.mm:481 > + if (!_hitTestResult.allowsCopy()) { Ditto.
Thank you! http://trac.webkit.org/changeset/176999