Closed Bug 1801433 Opened 2 years ago Closed 1 year ago

Cleanup: Remove PresShell::GetAccessibilityService/IsAccessibilityActive

Categories

(Core :: Disability Access APIs, task)

task

Tracking

()

RESOLVED FIXED
109 Branch
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.

(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.

These have just called GetAccService for a long time now, so callers should just call that directly.

Assignee: nobody → jteh
Status: NEW → ASSIGNED
Pushed by jteh@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5abf34dbe421
Remove PresShell::GetAccessibilityService/IsAccessibilityActive. r=emilio
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 109 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: