Open Bug 1582581 Opened 5 years ago Updated 2 years ago

xpcAccessibilityService::AddRef can run arbitrary script

Categories

(Core :: Disability Access APIs, defect, P3)

defect

Tracking

()

People

(Reporter: bzbarsky, Unassigned)

Details

It calls GetOrCreateAccService, which can notify observers, etc. At least in theory. It's pretty unexpected for taking a ref to do that.

Why is that call needed? It seems like that call is already made by NS_GetAccessibilityService and after that we shouldn't need to do it again...

Summary: xpcAccessibilityService::AddRef can run arbitary script → xpcAccessibilityService::AddRef can run arbitrary script

Maybe Yura knows the answers to the questions in comment #0.

Flags: needinfo?(yzenevich)
Flags: needinfo?(yzenevich)

sorry cleared by accident, I ll take a look shortly.

Flags: needinfo?(yzenevich)

From what I can remember, when creating multiple references to the xpcAccessibleService, NS_GetAccessibilityService is still only called on the first time. There might be a case where there's only one reference to xpcAccessibleService held (internally as a static reference) with the nsAccessibilityService shut down. If consequently we ask for another reference to an xpcAccessibleService that call is responsible for re-starting the nsAccessibilityService.

Flags: needinfo?(yzenevich)

The priority flag is not set for this bug.
:Jamie, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(jteh)
Flags: needinfo?(jteh)
Priority: -- → P3
Severity: normal normal → S3 S3
You need to log in before you can comment on or make changes to this bug.