nvda
a8e910ec - Initialize object caches in a safer manner (#14333)

Commit
3 years ago
Initialize object caches in a safer manner (#14333) Summary of the issue: During NVDA initialization, the api module is used to set initial object caches. These api functions check if an object is behind the lock screen when Windows is locked before setting the cache. Until #14301, the api module initialised the object caches to the desktop object. When NVDA started on the lock screen, it failed to set the desktop object due to the added security checks. Now the object caches are initialised to the foreground window, to avoid leaking insecure information. Unfortunately, setting those object caches causes side-effects, which may rely on uninitialized dependencies. Description of user facing changes None Description of development approach Revert to setting initial object caches to the desktop object. Ensure security failures are not raised when initialising caches by ignoring the windows lock state.
Author
Parents
Loading