Restrict atspi protocol to only clients without security context

This is only intended to be used by `orca`.

I guess `|_| true` was a placeholder for a potentially more restrictive
check, but use this for now, anyway.
This commit is contained in:
Ian Douglas Scott 2025-10-27 18:45:55 -07:00 committed by Victoria Brekenfeld
parent f91115fb45
commit f82db23f4a

View file

@ -693,7 +693,7 @@ impl State {
let a11y_state = A11yState::new::<State, _>(dh, client_not_sandboxed);
// TODO: Restrict to only specific client?
let atspi_state = AtspiState::new::<State, _>(dh, |_| true);
let atspi_state = AtspiState::new::<State, _>(dh, client_has_no_security_context);
State {
common: Common {