Cleanup: Remove PresShell::GetAccessibilityService/IsAccessibilityActive
Categories
(Core :: Disability Access APIs, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox109 | --- | fixed |
People
(Reporter: Jamie, Assigned: Jamie)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
Spun off https://phabricator.services.mozilla.com/D162263#inline-895099
GetAccessibilityService was added in bug 628922 in the days when there was a lot more XPCOM. These days, it just redirects to GetAccService, which seems like unnecessary indirection. IsAccessibilityActive also just calls GetAccService. We should remove these methods and just call GetAccService directly.
Also, I notice that PresShell.h includes nsAccessibilityService.h, but also forward declares nsAccessibilityService. We should try to remove the include if possible.
Assignee | ||
Comment 1•2 years ago
|
||
(In reply to James Teh [:Jamie] from comment #0)
Also, I notice that PresShell.h includes nsAccessibilityService.h, but also forward declares nsAccessibilityService. We should try to remove the include if possible.
Ah, we can't because it's needed in ~AutoSaveRestoreRenderingState
. See bug 1726227.
Assignee | ||
Comment 2•2 years ago
|
||
These have just called GetAccService for a long time now, so callers should just call that directly.
Updated•2 years ago
|
Pushed by jteh@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5abf34dbe421 Remove PresShell::GetAccessibilityService/IsAccessibilityActive. r=emilio
Comment 4•1 year ago
|
||
bugherder |
Description
•