Closed Bug 241991 Opened 20 years ago Closed 20 years ago

Active Accessibility: state change event at doc load finish shouldn't report STATE_BUSY

Categories

(Core :: Disability Access APIs, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: aaronlev, Assigned: aaronlev)

Details

(Keywords: access)

Attachments

(1 file)

Steps to repro:
1. Run accessible event watcher from MSAA SDK (accevent.exe)
2. Watch for state change events only (under options)
3. Load a new page in Mozilla

What happens:
First state change event for page reports state_busy (this is correct, doc has
started to load)
Second state change event for page also reports state_busy (incorrect, doc has
finished loading)

Expected:
Second state change event should not report state_busy
Seeking r=kyle
Attachment #147252 - Flags: review?(kyle.yuan)
Comment on attachment 147252 [details] [diff] [review]
Make sure mBusy set correctly before firing event

sure, r=me.
Attachment #147252 - Flags: review?(kyle.yuan) → review+
Johnny, can we relax the requirement for sr='s in the accessibility module for
some patches?
Attachment #147252 - Flags: superreview?(jst)
Comment on attachment 147252 [details] [diff] [review]
Make sure mBusy set correctly before firing event


     if (mBusy != eBusyStateDone) {
 #ifndef MOZ_ACCESSIBILITY_ATK
+      mBusy = eBusyStateDone; // before event callback so STATE_BUSY is not
reported
       FireToolkitEvent(nsIAccessibleEvent::EVENT_STATE_CHANGE, this, nsnull);
 #endif
     }

Right after this code mBusy is set to eBusyStateDone too, why not simply move
that line up above the if check that this check is nested in?

If you feel that requiring sr slows down development or doesn't generally
improve code quality in the accessibility module, take that up with
drivers@mozilla.org and super-reviewers@mozilla.org.

sr=jst
Attachment #147252 - Flags: superreview?(jst) → superreview+
> why not simply move that line up above the if check that this check is nested in?
Because the if () relies on the same value, so if we set it earlier it won't
fire the event.

> If you feel that requiring sr slows down development or doesn't generally
> improve code quality in the accessibility module, take that up with
> drivers@mozilla.org and super-reviewers@mozilla.org.
I did send an email to super-reviewers but got no response. 
Whenever I send an email to that alias I always get "your message awaits
moderator approval" and never hear back. Are the messages getting on there?
(In reply to comment #5)
> > If you feel that requiring sr slows down development or doesn't generally
> > improve code quality in the accessibility module, take that up with
> > drivers@mozilla.org and super-reviewers@mozilla.org.
> I did send an email to super-reviewers but got no response. 
> Whenever I send an email to that alias I always get "your message awaits
> moderator approval" and never hear back. Are the messages getting on there?

Hmm, I don't remember seeing your message, so it might have gotten lost. You'll
get the messages about awaiting moderator approval until someone approves
accepting email from your email address to the list, but you should only get
those a few times, then it should be taken care of. If you still get these,
please contact myk@mozilla.org
This was checked in a while ago, forgot to mark it fixed.

2004-04-30 07:01	aaronleventhal%moonset.net 	mozilla/ accessible/ src/ base/
nsDocAccessible.cpp 	1.34 	1/0  	Bug 241991. State change event for doc should
clear busy flag when doc finished loading. r=kyle, sr=jst
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: