WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
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+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Beth Dakin
Comment 1
2014-11-16 17:10:43 PST
Created
attachment 241685
[details]
Patch
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.
Top of Page
Format For Printing
XML
Clone This Bug