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)

x86
All
defect
Not set
normal
Points:
5

Tracking

()

RESOLVED FIXED
Firefox 38
Iteration:
38.2 - 9 Feb
Tracking Status
firefox36 --- wontfix
firefox37 --- fixed
firefox38 --- fixed

People

(Reporter: florian, Assigned: florian)

References

Details

Attachments

(2 files)

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: nobody → florian
Status: NEW → ASSIGNED
Attachment #8553368 - Flags: review?(dtownsend)
Attachment #8553369 - Flags: review?(dtownsend)
Points: --- → 5
Flags: qe-verify-
Flags: firefox-backlog+
OS: Mac OS X → All
Iteration: --- → 38.1 - 26 Jan
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+
Attachment #8553369 - Flags: review?(dtownsend) → review+
Iteration: 38.1 - 26 Jan → 38.2 - 9 Feb
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 38
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?
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?
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?
Flags: needinfo?(florian)
(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)
(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 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+
Attachment #8553369 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Depends on: 1139655
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: