Closed
Bug 1124904
Opened 10 years ago
Closed 10 years ago
cleanup the code handling keyboard navigation in the new search panel
Categories
(Firefox :: Search, defect)
Tracking
()
People
(Reporter: florian, Assigned: florian)
References
Details
Attachments
(2 files)
(deleted),
patch
|
mossop
:
review+
lmandel
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
mossop
:
review+
lmandel
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
I tried to work on bug 1102038, but the existing code is such a mess that I didn't feel adding another layer of special case handling would be reasonable.
There are 2 refactorings I've wanted to do for a while here:
1. split out the code handling setting/removing the 'selected' attribute. This will dramatically simplify patches like for things like bug 1107695.
2. separate the logic examining the key event from the logic moving the selection around.
I didn't feel confident touching this code without test coverage, so I started by writing tests in bug 1124900.
Assignee | ||
Comment 1•10 years ago
|
||
Assignee | ||
Comment 2•10 years ago
|
||
Attachment #8553369 -
Flags: review?(dtownsend)
Assignee | ||
Updated•10 years ago
|
Points: --- → 5
Flags: qe-verify-
Flags: firefox-backlog+
OS: Mac OS X → All
Updated•10 years ago
|
Iteration: --- → 38.1 - 26 Jan
Comment 3•10 years ago
|
||
Comment on attachment 8553368 [details] [diff] [review]
Part 1 - simplify handling of the 'selected' attribute
Review of attachment 8553368 [details] [diff] [review]:
-----------------------------------------------------------------
I wonder if it would make more sense to have selectedButton be a property of the popup where the buttons appear rather than of the textbox. Makes more sense in my head and maybe could use some methods to selectFirst, selectLast etc. I'd be ok with this landing without changing that though.
Attachment #8553368 -
Flags: review?(dtownsend) → review+
Updated•10 years ago
|
Attachment #8553369 -
Flags: review?(dtownsend) → review+
Updated•10 years ago
|
Iteration: 38.1 - 26 Jan → 38.2 - 9 Feb
Assignee | ||
Comment 5•10 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/966ff0f3c21e
https://hg.mozilla.org/integration/fx-team/rev/966573b47371
Flags: in-testsuite+
Whiteboard: [fixed-in-fx-team]
Comment 6•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/966ff0f3c21e
https://hg.mozilla.org/mozilla-central/rev/966573b47371
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
status-firefox38:
--- → fixed
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 38
Assignee | ||
Comment 7•10 years ago
|
||
Comment on attachment 8553368 [details] [diff] [review]
Part 1 - simplify handling of the 'selected' attribute
Approval Request Comment
[Feature/regressing bug #]: cleanup for code landed in bug 1088660.
[User impact if declined]: can't uplift bug 1102038 without this dependency.
[Describe test coverage new/current, TreeHerder]: tests landed in bug 1124900.
[Risks and why]: I think it's OK for aurora, but too much changes for beta.
[String/UUID change made/needed]: none.
Attachment #8553368 -
Flags: approval-mozilla-aurora?
Assignee | ||
Comment 8•10 years ago
|
||
Comment on attachment 8553369 [details] [diff] [review]
Part 2 - separate selection and keyboard event logics
Approval Request Comment: see comment 7.
Attachment #8553369 -
Flags: approval-mozilla-aurora?
Comment 9•10 years ago
|
||
I think this is a good fix to take on Aurora. Given the size of the change, I would like to see this verified on Nightly before uplift. This should already be in Nightly.
Florian - Can you please ensure that this is verified at which point I'll approve for uplift?
Assignee | ||
Comment 10•10 years ago
|
||
(In reply to Lawrence Mandel [:lmandel] (use needinfo) from comment #9)
> I think this is a good fix to take on Aurora. Given the size of the change,
> I would like to see this verified on Nightly before uplift. This should
> already be in Nightly.
>
> Florian - Can you please ensure that this is verified at which point I'll
> approve for uplift?
I had marked this qe-verify- because there's no expected user-visible change here. It's all preparation work for bug 1102038, so I think anybody verifying bug 1102038 will also verify the changes here at the same time.
Flags: needinfo?(florian)
Comment 11•10 years ago
|
||
(In reply to Florian Quèze [:florian] [:flo] from comment #10)
> I had marked this qe-verify- because there's no expected user-visible change
> here. It's all preparation work for bug 1102038, so I think anybody
> verifying bug 1102038 will also verify the changes here at the same time.
wfm
Comment 12•10 years ago
|
||
Comment on attachment 8553368 [details] [diff] [review]
Part 1 - simplify handling of the 'selected' attribute
Verification noted in bug 1102038. Aurora+
Attachment #8553368 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Updated•10 years ago
|
Attachment #8553369 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment 13•10 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•