Closed Bug 394253 Opened 17 years ago Closed 17 years ago

Opening DOM inspector enables accessibility globally

Categories

(Other Applications :: DOM Inspector, defect)

x86
Linux
defect
Not set
blocker

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bzbarsky, Assigned: surkov)

References

Details

(Keywords: access)

Attachments

(1 file)

This is a regression from bug 337674. Opening DOM inspector always enables accessibility globally, even if I never inspect the accessibles for anything. Once that's happened, the app slows down drastically, and I get hangs (bug 394115). In other words, once I open DOM Inspector the app becomes effectively unusable. This really needs to be fixed, imo. I'm downgrading to a build that predates the checkin for bug 337674 for the time being.
Flags: blocking1.9?
Version: unspecified → Trunk
The app slows down drastically? That doesn't sound good either.
Keywords: access
At least as far as I can tell, yes. Not for all operations, but some things become very slow.
I wish we had the resources to investigate that right now, but we need to focus on correctness and removing any hangs/crashes.
Anyway, about this bug -- If we fix the hang/lockups, is the app truly unusable? We don't currently have a way to turn accessibility on on a per-Window basis. This could be a lot of work to fix for 1.9. We still have plenty to do in terms of correcting bugs in the accessibility API support.
Looks like a dupe of bug 391798.
No. This is NOT the same as bug 391798. I am NOT asking to be able to turn _off_ accessibility. I'm just asking to not turn it on unless I actually switch to that panel in Inspector. Right now the mere act of opening an Inspector window turns it on. > If we fix the hang/lockups, is the app truly unusable? It's a huge pain to use, yes. Little things like typeahead find on short pages taking over a second per letter.
(In reply to comment #6) > No. This is NOT the same as bug 391798. I am NOT asking to be able to turn > _off_ accessibility. I'm just asking to not turn it on unless I actually > switch to that panel in Inspector. Right now the mere act of opening an > Inspector window turns it on. There are views for left panel. When you start to inspect document then DOMi check whether these views are suitable and it starts ally for this. Therefore we should disable ally by default to prevent these checks in DOMi and therefore I said it's the same.
> and it starts ally for this. Why? That is, why does deciding whether the accessible tree view is suitable require starting a11y?
(In reply to comment #8) > > and it starts ally for this. > > Why? That is, why does deciding whether the accessible tree view is suitable > require starting a11y? > Those views checks whether accessible is available for the DOM document. Though probably you're right because every DOM document is able to have accessible object and DOMi shouldn't check this.
Yeah, that's sort of what I was thinking.
Attached patch patchSplinter Review
Assignee: nobody → surkov.alexander
Status: NEW → ASSIGNED
Attachment #278909 - Flags: superreview?(neil)
Attachment #278909 - Flags: review?(comrade693+bmo)
Attachment #278909 - Flags: review?(aaronleventhal)
Comment on attachment 278909 [details] [diff] [review] patch I'm the wrong person to review the JS-foo, but yes any nsIDOMDocument can be made accessible.
Attachment #278909 - Flags: review?(aaronleventhal) → review+
(In reply to comment #12) > (From update of attachment 278909 [details] [diff] [review]) > I'm the wrong person to review the JS-foo, but yes any nsIDOMDocument can be > made accessible. > that's why I asked you to make sure for accessible stuff.
Attachment #278909 - Flags: superreview?(neil) → superreview+
Attachment #278909 - Flags: review?(comrade693+bmo)
Attachment #278909 - Flags: review+
Attachment #278909 - Flags: approval1.9?
Do I need an approval for UI changes in DOMi because Shawn said previously I don't need it still?
oh right, no. but the rules are so confusing that i can never keep them straight.
Attachment #278909 - Flags: approval1.9?
checked in
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Alexander, thanks for fixing!
As a sidenote, this seems really handy for stability testing of accessibility code. Just open the dom inspector one, do some testing and a crash is waiting to happen. Is is useful to file this type of bugs?
Flags: blocking1.9?
Absolutely.
Yes! In fact, if you want to do some fuzzing of accessibility code... that would be very nice.
We really need to torture test the accessibility code, and aren't doing well enough at it for 2 reasons: 2) Testing with screen readers on Windows doesn't get us crash reports because the COM actually swallows the crashes and just doesn't return from IAccessible2 method calls when there is a crash 2) Very few volunteer testers are running nightly builds on Linux with a11y Jesse and Mats were doing some fuzz testing and about 6+ crashes were fixed as a result of that.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: