Closed Bug 507382 Opened 15 years ago Closed 15 years ago

focus is fired earlier than root accessible name is changed when switching between tabs

Categories

(Core :: Disability Access APIs, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla1.9.3a1
Tracking Status
status1.9.2 --- beta1-fixed

People

(Reporter: surkov, Assigned: surkov)

References

(Blocks 1 open bug)

Details

(Keywords: access, verified1.9.2)

Attachments

(1 file, 2 obsolete files)

Attached patch mochitest (obsolete) (deleted) — Splinter Review
focus is fired earlier than root accessible name is changed when switching between tabs of tabbrowser
So DOM events are fired in correct order, select and then focus. When we get focus then @title attribute is updated already. But accessible name might be not updated yet. I guess problem is in nsIBaseWindow::GetTitle which is used in nsRootAccessible::GetName().
Attached patch mochitest2 (obsolete) (deleted) — Splinter Review
This mochitest doesn't demonstrate the bug if events debug dump is disabled. Probably timing issue.
Attachment #391579 - Attachment is obsolete: true
Ttile is changed on async event, see http://mxr.mozilla.org/mozilla-central/source/content/base/src/nsDocument.cpp#4977. That's the problem.
Note, getting name from title and title caching in nsXULWindow.cpp has been introduced in bug 257739.
I wonder if nsDocument::GetTitle will work for us (keeping in mind SVG since it updates document title as well, see http://mxr.mozilla.org/mozilla-central/source/content/svg/content/src/nsSVGTitleElement.cpp#192). If it is then should we remove the code of nsXULWindow.cpp introduced in bug 257739? CC'ing Neil since he took a part in discussion of the bug 257739.
(In reply to comment #5) > should we remove the code of nsXULWindow.cpp introduced in bug 257739? Since that code implemented previously unimplemented interface methods I don't quite see the point of unimplementing them again...
changing blocking since there is nothing wrong with a11y events here.
Blocks: namea11y
No longer blocks: eventa11y
Attached patch patch (deleted) — Splinter Review
Assignee: nobody → surkov.alexander
Attachment #391592 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #391778 - Flags: superreview?(neil)
Attachment #391778 - Flags: review?
Comment on attachment 391778 [details] [diff] [review] patch I doubt that your code change is big enough to merit superreview ;-)
Attachment #391778 - Flags: superreview?(neil) → superreview+
Attachment #391778 - Flags: review? → review?(bolterbugz)
(In reply to comment #9) > (From update of attachment 391778 [details] [diff] [review]) > I doubt that your code change is big enough to merit superreview ;-) Ah, just to ensure nsIDOMNSDocument::GetTitle is all we look for :)
Comment on attachment 391778 [details] [diff] [review] patch >+ <a target="_blank" >+ href="https://bugzilla.mozilla.org/show_bug.cgi?id=" >+ title=""> >+ Mozilla Bug >+ </a> This looks incomplete to me. Also, what's the chmod change for relations.js in this patch?
Comment on attachment 391778 [details] [diff] [review] patch r=me thanks!
Attachment #391778 - Flags: review?(bolterbugz) → review+
checked in with Marco's comments addressed on 1.9.3 - http://hg.mozilla.org/mozilla-central/rev/adb5151a10eb
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Attachment #391778 - Flags: approval1.9.2?
Comment on attachment 391778 [details] [diff] [review] patch it's urgent for AT users to hear correct page name when they are switched between tabs. Simple fix.
Flags: in-testsuite+
Verified fixed in Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.3a1pre) Gecko/20090822 Minefield/3.7a1pre (.NET CLR 3.5.30729)
Status: RESOLVED → VERIFIED
Attachment #391778 - Flags: approval1.9.2? → approval1.9.2+
Comment on attachment 391778 [details] [diff] [review] patch originally bug was reported under 3.5 firefox version, important for AT users, simple fix.
Attachment #391778 - Flags: approval1.9.1.4?
Comment on attachment 391778 [details] [diff] [review] patch Approved for 1.9.1.4, a=dveditz -- but must be landed by Tuesday (sept 22).
Attachment #391778 - Flags: approval1.9.1.4? → approval1.9.1.4+
Alex, can you take care of landing this? This is using portions of our events testing which we haven't backported to 1.9.1 yet.
Comment on attachment 391778 [details] [diff] [review] patch Oops, forgot that Alex is attending a conference this week and won't be able to complete this in time. Deferring it to 1.9.1.5 since the 1.9.1 version of this patch needs some delicate porting.
Attachment #391778 - Flags: approval1.9.1.4+ → approval1.9.1.5?
Verified fixed on Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2b1pre) Gecko/20090922 Namoroka/3.6b1pre (.NET CLR 3.5.30729)
Keywords: verified1.9.2
Comment on attachment 391778 [details] [diff] [review] patch "delicate porting" doesn't instill us will confidence, but in any case indicates this is definitely not the patch you mean to request approval on.
Attachment #391778 - Flags: approval1.9.1.5? → approval1.9.1.5-
Daniel, sorry, I didn't get your point. Why do you think this patch shouldn't be landed on 1.9.1?
comment 20 says we need a different patch for 1.9.1. I interpreted "delicate" as "tricky", but maybe it means "minor"? Either way, get us a patch that applies to 1.9.1 (that you've tested builds on 1.9.1 and fixes the bug there) before requesting approval on it. Since this is not 1) a security fix 2) a top crash fix, or 3) fixing a regression from an earlier stable-branch patch the presumption is that we're not taking it for a stable branch release. https://wiki.mozilla.org/TreeStatus#mozilla-1.9.1_-_1.9.1_Branch_.28Firefox_3.5.x.2C_Gecko_1.9.1_work.29
If I'll update patch to 1.9.1 and test it then can I ask approval again even if this patch is not security fix and etc? Because this patch makes AT user life easier when they switch between tabs, otherwise they won't know which tab they chose.
Target Milestone: --- → mozilla1.9.3a1
Version: unspecified → Trunk
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: