Closed Bug 467139 Opened 16 years ago Closed 16 years ago

NameFromSubtree rule should be based on role

Categories

(Core :: Disability Access APIs, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: surkov, Assigned: surkov)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

This is the part of the bug 455886.

Here ARIA nameFromSubtree rules will be dropped and all explicit calls of GetHTML/XULName that are used to point whether we should get the name from subtree or not will be dropped also.
Attached patch patchSplinter Review
Assignee: nobody → surkov.alexander
Status: NEW → ASSIGNED
Attachment #350556 - Flags: superreview?(neil)
Attachment #350556 - Flags: review?(aaronleventhal)
Attachment #350556 - Flags: review?(marco.zehe)
Attachment #350556 - Flags: review?(david.bolter)
Attachment #350556 - Flags: superreview?(neil) → superreview+
Comment on attachment 350556 [details] [diff] [review]
patch

I was just curious as to how moving this flag to a separate array improves the code.
(In reply to comment #2)
> (From update of attachment 350556 [details] [diff] [review])
> I was just curious as to how moving this flag to a separate array improves the
> code.

In the meantime this flag is applied for ARIA accessibles only. I extend its usage to all accessibles.
Comment on attachment 350556 [details] [diff] [review]
patch

Tests pass, tree comparison of google.com, mozilla.org and my blog don't show any difference, and while surfing with a build containing this patch, also didn't find any difference so far. r=me.
Attachment #350556 - Flags: review?(marco.zehe) → review+
Attachment #350556 - Flags: review?(david.bolter) → review+
Comment on attachment 350556 [details] [diff] [review]
patch

Nice work. I agree the name finding shouldn't be ARIA specific. Regarding the removal of the GetNameInternal overrides, I think this is logically correct, but I'm unsure of the perf cost since the base class does some extra work.

Do we have profile tests?
(In reply to comment #5)
> (From update of attachment 350556 [details] [diff] [review])
> Nice work. I agree the name finding shouldn't be ARIA specific. Regarding the
> removal of the GetNameInternal overrides, I think this is logically correct,
> but I'm unsure of the perf cost since the base class does some extra work.

David, what kind of extra work? Do you mean checking the HTML namespace? That's the difference between what was and what is.
(In reply to comment #6)

> David, what kind of extra work? Do you mean checking the HTML namespace?

And sometimes XUL of course.
Attachment #350556 - Flags: review?(aaronleventhal) → review+
David, the perf hit of getting the role is pretty low. This patch is fine.
Attachment #350556 - Flags: approval1.9.1?
(In reply to comment #4)
> (From update of attachment 350556 [details] [diff] [review])
> Tests pass, tree comparison of google.com, mozilla.org and my blog don't show
> any difference, and while surfing with a build containing this patch, also
> didn't find any difference so far. r=me.

Did you do your tree comparison with Speclenium?
What about the suite of ARIA tests the Eitan put into that?

The patch looks harmless, but I want to be sure we keep ARIA right. It would be good to check out the prefs dialog a bit as well.
(In reply to comment #9)
> (In reply to comment #4)
> > (From update of attachment 350556 [details] [diff] [review] [details])
> > Tests pass, tree comparison of google.com, mozilla.org and my blog don't show
> > any difference, and while surfing with a build containing this patch, also
> > didn't find any difference so far. r=me.
> 
> Did you do your tree comparison with Speclenium?

I'm sure Marco did this exactly.
(In reply to comment #2)
> (From update of attachment 350556 [details] [diff] [review])
> I was just curious as to how moving this flag to a separate array improves the
> code.

Neil, it will allow us to fix the dependent bug, where we should not walk into container widgets when using name from subtree rule. We don't want it to walk into any container widget in the subtree, whether ARIA or not.
(In reply to comment #8)
> David, the perf hit of getting the role is pretty low. This patch is fine.

Yup ok.
http://hg.mozilla.org/mozilla-central/rev/45104f550b52
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Attachment #350556 - Flags: approval1.9.1?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: