WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
56948
Tabbing from the last focused field to a non-webpage element leaves the selection in a weird state
https://bugs.webkit.org/show_bug.cgi?id=56948
Summary
Tabbing from the last focused field to a non-webpage element leaves the selec...
Jon Lee
Reported
2011-03-23 12:14:23 PDT
Go to
http://gcc.gnu.org/onlinedocs/
Select some text. Press tab, option-l, or click in the location bar to remove focus from the web view and into the location bar The selection remains instead of being cleared.
Attachments
Patch
(1.89 KB, patch)
2011-03-23 17:33 PDT
,
Jon Lee
sam
: review+
darin
: commit-queue-
Details
Formatted Diff
Diff
Refactored local variable
(1.76 KB, patch)
2011-03-24 10:19 PDT
,
Jon Lee
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Jon Lee
Comment 1
2011-03-23 15:38:41 PDT
<
rdar://problem/8553962
>
Jon Lee
Comment 2
2011-03-23 17:33:10 PDT
Created
attachment 86724
[details]
Patch
Sam Weinig
Comment 3
2011-03-23 18:13:04 PDT
Comment on
attachment 86724
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=86724&action=review
> Source/WebKit2/WebProcess/WebPage/WebPage.cpp:1129 > + FocusController* focusController = m_page->focusController();
Before this line, you should add RefPtr<WebPage> protect(this); There is also no need for this local variable.
Jon Lee
Comment 4
2011-03-24 10:19:54 PDT
Created
attachment 86791
[details]
Refactored local variable
Darin Adler
Comment 5
2011-03-24 10:23:09 PDT
Comment on
attachment 86791
[details]
Refactored local variable View in context:
https://bugs.webkit.org/attachment.cgi?id=86791&action=review
> Source/WebKit2/WebProcess/WebPage/WebPage.cpp:1130 > + if (!isFocused) > + m_page->focusController()->focusedOrMainFrame()->selection()->clear();
Sam said: “Before this line, you should add RefPtr<WebPage> protect(this)”.
Darin Adler
Comment 6
2011-03-24 10:43:15 PDT
Comment on
attachment 86791
[details]
Refactored local variable John told me that adding the RefPtr is more challenging than it looks, so we’ll do that in a separate patch after we land this fix.
Darin Adler
Comment 7
2011-03-24 10:44:10 PDT
(In reply to
comment #6
)
> John told me that adding the RefPtr is more challenging than it looks, so we’ll do that in a separate patch after we land this fix.
No, Jon told me that!
WebKit Commit Bot
Comment 8
2011-03-24 11:57:51 PDT
Comment on
attachment 86791
[details]
Refactored local variable Clearing flags on attachment: 86791 Committed
r81880
: <
http://trac.webkit.org/changeset/81880
>
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