Closed Bug 1032724 Opened 10 years ago Closed 10 years ago

Improve spatial navigation

Categories

(Firefox for Android Graveyard :: General, defect)

ARM
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 33

People

(Reporter: kershaw, Assigned: kershaw)

Details

Attachments

(2 files, 1 obsolete file)

      No description provided.
I've observed some strange behaviors of the current spatial navigation by the test page http://jsfiddle.net/LECVP/8/show/.

Take a look at the following two diagrams. A is the current focused element. 
When pressing down key,
expect: B should be focused.
actual: C is focused.

1. 
+---+      
| A | <-- the current focused element
+---+      
+---+ +---+
| B | | C |
+---+ +---+
2.
+-----+                                     
|  A  | <-- the current focused element                                  
+-----+                                                                           
+------------------------------------------+
|                                          |
|                    B                     |
|                                          |
+-----+------------------------------------+
+-----+                                     
|  C  |                                     
+-----+
Add the third case.
3. B and C are all below A. When pressing down key, B should be focused, not C.
+---+                              
| A | <-- the current focused element                              
+---+                              
                              +---+
                              | B |
                              +---+            
+---+                              
| C |                              
+---+
Hi Brad,

First, I am not sure if you are the one to talk about spatial navigation. If not, would you please help me to get the correct one involved?
I would like to make sure if this is really a bug. Have you seen the same cases I mentioned above?

Thanks.
Kershaw
Flags: needinfo?(blassey.bugs)
(In reply to Kershaw Chang [:kershaw] from comment #3)
> Hi Brad,
> 
> First, I am not sure if you are the one to talk about spatial navigation. If
> not, would you please help me to get the correct one involved?
> I would like to make sure if this is really a bug. Have you seen the same
> cases I mentioned above?
> 
> Thanks.
> Kershaw

I have not tested spatial navigation in almost a year. What you describe sounds like a bug. Can you attach a test case?
Flags: needinfo?(blassey.bugs)
Upload a test case which shows the problem I mentioned in case1.
Assignee: nobody → kechang
Hi Brad,

I've uploaded my proposed patch. Would you help to review it?

Thanks.
Attachment #8452192 - Flags: review?(blassey.bugs)
Hi Kershaw, I've twice started to reivew this patch but have been pulled off for other things. Unfortunitely it takes a little extra time since this isn't code that I've been looking at a lot lately. I should have time to get this review done tomorrow though.
Hi Brad,
No problem! Take your time.
Really thanks for your help.
Comment on attachment 8452192 [details] [diff] [review]
Proposed patch for improving spatial navigation

Review of attachment 8452192 [details] [diff] [review]:
-----------------------------------------------------------------

::: toolkit/modules/tests/mochitest/test_spatial_navigation.html
@@ +43,5 @@
>         "Spatial navigation up key is not handled correctly.");
>  
>      center.focus();
>      synthesizeKey("VK_DOWN", { });
> +    is(document.activeElement.id, bottom.id, 

nit, trailing white space (here and futher on in the patch)
Attachment #8452192 - Flags: review?(blassey.bugs) → review+
Update the final patch including the following changes:
1. Remove trailing spaces
2. Carry reviewer's name
Attachment #8452192 - Attachment is obsolete: true
Attachment #8456020 - Flags: review+
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/b6ca88f40b79
Status: NEW → RESOLVED
Closed: 10 years ago
Flags: in-testsuite?
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 33
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: