After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 515571 - FF3 form field structural navigation should handle form fields that are not in forms
FF3 form field structural navigation should handle form fields that are not i...
Status: RESOLVED FIXED
Product: orca
Classification: Applications
Component: general
2.21.x
Other All
: Normal normal
: 2.22.0
Assigned To: Joanmarie Diggs (IRC: joanie)
Orca Maintainers
Depends on:
Blocks: 404403
 
 
Reported: 2008-02-10 13:35 UTC by Mesar Hameed
Modified: 2008-07-22 19:33 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22


Attachments
debug.out (198.24 KB, text/plain)
2008-02-10 13:37 UTC, Mesar Hameed
  Details
revision 1 (1.55 KB, patch)
2008-02-20 16:41 UTC, Joanmarie Diggs (IRC: joanie)
none Details | Review
revision 2 (1.58 KB, patch)
2008-02-20 20:53 UTC, Joanmarie Diggs (IRC: joanie)
committed Details | Review

Description Mesar Hameed 2008-02-10 13:35:43 UTC
Please describe the problem:
clean orca trunk, ff3.04beta as of this morning.
visiting www.google.com
submit "orca" as a search.
on result page, we can happily browse the page, previous/next heading etc.
but when pressing orcakey+tab to get back to the search box again, the search wrapps around and fails to find the searchbox.
Attached is the debug file.




Steps to reproduce:


Actual results:
searchbox is missed

Expected results:


Does this happen every time?
yes

Other information:
Comment 1 Mesar Hameed 2008-02-10 13:37:14 UTC
Created attachment 104840 [details]
debug.out
Comment 2 Joanmarie Diggs (IRC: joanie) 2008-02-20 00:37:07 UTC
Okay, here's the deal:

1. Google's markup of the page in question is such that the form controls are not officially part of the form.  This is not *just* in the accessible hierarchy; it's the case according to the DOM Inspector.  <grumble>Crappy markup</grumble>  On the main google page, the form controls are officially part of the form.  That's the difference.

In light of this:

2. I could certainly file a general bug against FF (as opposed to an a11y bug, because the accessible hierarchy seems to match the official hierarchy).  However, given that we're in the late stages of the game where everything must be blessed by one holy person per religion per continent for inclusion into 1.9, and given that the problem is due to poor markup rather than an actual FF bug, I'm not sure how good our chances are for inclusion into FF3.  Granted it's Google as opposed to some site no one's heard of...  So maybe it would get in. <shrugs>

However:

3. Ignoring this particular bug for a moment and looking more broadly, not all objects which one might consider a "form field" live inside actual forms.  Sometimes you come across controls just kinda floating there that have associated javascript to perform the appropriate formy tasks.

Unfortunately:

4. Our definition of "form field" is a field inside a form.   See: http://bugzilla.gnome.org/show_bug.cgi?id=423427 comments 8 through 10. Had I only known back then what I know now.... <grin>  

So gang, what shall we do?  Revise our definition of what is a form field to essentially be an enumeration of the type of objects we expect to find in forms, or file a FF bug and block this one against it?
Comment 3 Willie Walker 2008-02-20 12:40:20 UTC
(In reply to comment #2)
> hierarchy; it's the case according to the DOM Inspector.  <grumble>Crappy
> markup</grumble>

Yech.

> 2. I could certainly file a general bug against FF (as opposed to an a11y bug,
> because the accessible hierarchy seems to match the official hierarchy). 

What would the bug suggest?  Would it be to munge the DOM to accommodate poor markup?

> 3. Ignoring this particular bug for a moment and looking more broadly, not all
> objects which one might consider a "form field" live inside actual forms. 
> Sometimes you come across controls just kinda floating there that have
> associated javascript to perform the appropriate formy tasks.

Yep.  :-(

> 4. Our definition of "form field" is a field inside a form.   See:
> http://bugzilla.gnome.org/show_bug.cgi?id=423427 comments 8 through 10. Had I
> only known back then what I know now.... <grin>  
> 
> So gang, what shall we do?  Revise our definition of what is a form field to
> essentially be an enumeration of the type of objects we expect to find in
> forms, or file a FF bug and block this one against it?

I think we should challenge authors of crappy pages to produce good markup.  That's an uphill battle, though, especially in the wild web.  I'm not what the specifics of the FF bug would be.  But, I'm going to guess they will not fix it for 1.9, whatever the bug may be.  So, I think we will need to provide logic on our side.
Comment 4 Joanmarie Diggs (IRC: joanie) 2008-02-20 16:41:25 UTC
Created attachment 105650 [details] [review]
revision 1

This redefines isFormField() so that we look at object roles rather than (official) containment within an (official) form.

Pylinted and regression tested and seems to solve the problem reported in this bug.
Comment 5 Mesar Hameed 2008-02-20 17:11:51 UTC
Thanks Joanie,
works well here.
bug fixed.

Ive been away, was wondering if you could please point me to stuckage bugs, so that I could keep my eye on them.
Comment 6 Mike Pedersen 2008-02-20 17:44:37 UTC
Works great.  thanks 
Comment 7 Mesar Hameed 2008-02-20 20:36:27 UTC
orca rev 3613, ff3 as of today.
unintended consequence:
vanilla rev 3613 quick search works fine.
applying patch 105650 quick search doesnt work anymore.
Comment 8 Joanmarie Diggs (IRC: joanie) 2008-02-20 20:38:01 UTC
Thanks Jon.  More specific steps to reproduce would be helpful.
Comment 9 Mesar Hameed 2008-02-20 20:44:55 UTC
the usual way for me to find the list of orca bugs (yes not bookmarked)
address:
http://live.gnome.org/Orca
once page loads:
/bugs
landing on: "The complete list of work to do, including bugs and feature requests, along with known problems in other components, is maintained in"
then orca+tab across to: "Bugzilla" link

doing the same with patch applied i get no output after /bugs
using up and down arrows, the focus seems to be the same as before the quick search.

Comment 10 Joanmarie Diggs (IRC: joanie) 2008-02-20 20:46:09 UTC
gotcha.  Thanks.  I have a guess just from looking at the code.  Hopefully a new patch coming soon.
Comment 11 Mesar Hameed 2008-02-20 20:47:34 UTC
sorry ment orca+right arrow, not orca+tab
Comment 12 Joanmarie Diggs (IRC: joanie) 2008-02-20 20:53:44 UTC
Created attachment 105666 [details] [review]
revision 2

Jon please see if this solves it for you.  Thanks!
Comment 13 Mesar Hameed 2008-02-20 21:05:02 UTC
solved, thank you :)
Comment 14 Joanmarie Diggs (IRC: joanie) 2008-02-20 22:36:05 UTC
Retitling this bug to reflect the broader issue.
Comment 15 Joanmarie Diggs (IRC: joanie) 2008-02-20 22:41:30 UTC
Patch committed.  Moving to pending.