RESOLVED FIXED 138786
Whitespace action menus should focus the HitTestResult and create an insertion point
https://bugs.webkit.org/show_bug.cgi?id=138786
Summary Whitespace action menus should focus the HitTestResult and create an insertio...
Beth Dakin
Reported 2014-11-16 17:06:08 PST
Whitespace action menus should focus the HitTestResult and create an insertion point rdar://problem/18944893
Attachments
Patch (9.95 KB, patch)
2014-11-16 17:10 PST, Beth Dakin
thorton: review+
Beth Dakin
Comment 1 2014-11-16 17:10:43 PST
Tim Horton
Comment 2 2014-11-16 17:28:40 PST
Comment on attachment 241685 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=241685&action=review > Source/WebKit/mac/WebView/WebActionMenuController.mm:176 > + frame->page()->focusController().setFocusedElement(element, element->document().frame()); > + VisiblePosition position = renderer->positionForPoint(_hitTestResult.localPoint(), nullptr); > + element->document().frame()->selection().setSelection(position); There's a bunch of things that might need null checks here? (but I don't know).
Beth Dakin
Comment 3 2014-11-17 12:10:11 PST
(In reply to comment #2) > Comment on attachment 241685 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=241685&action=review > > > Source/WebKit/mac/WebView/WebActionMenuController.mm:176 > > + frame->page()->focusController().setFocusedElement(element, element->document().frame()); > > + VisiblePosition position = renderer->positionForPoint(_hitTestResult.localPoint(), nullptr); > > + element->document().frame()->selection().setSelection(position); > > There's a bunch of things that might need null checks here? (but I don't > know). I fixed this up. Thank you! http://trac.webkit.org/changeset/176220
Note You need to log in before you can comment on or make changes to this bug.