-
-
Notifications
You must be signed in to change notification settings - Fork 652
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent Object Navigation Outside of the Lock Screen (#13328)
Link to issue number: None, follow up on #5269 Summary of the issue: On earlier Windows 10 builds, the top-level Window (Role.WINDOW) of the lock screen cannot directly navigate to the system with object navigation, but its parent can. This was fixed in a commit addressing #5269. On Windows 11 and newer Windows 10 builds, the top-level Window can directly navigate to the system with object navigation. STR: 1. Press Windows+L 1. press containing object (NVDA+numpad8/NVDA+shift+upArrow), 1. then you can use next object (NVDA+numpad6/NVDA+shift+rightArrow) to navigate the system. 1. On Windows 10 and 11, using "Navigate to the object under the mouse" (NVDA+numpadMultiply/NVDA+shift+n), you can navigate outside to the system from the lock screen. Microsoft is aware of this issue. Description of how this pull request fixes the issue: This PR adds a function which checks if the lockapp is the foreground window, and if so, if a given object is outside of the lockapp. To prevent focus objects being set or used for navigation, this function is utilised in various api methods. An overlay class is also added which prevents navigation and announcement of content outside of the lockapp. This PR also adds `GlobalCommands.script_navigatorObject_devInfo` to the allowed commands on the lockscreen to aid with debugging. This command should be safe as: - The command only logs objects it can navigate to - The log viewer cannot be accessed from the lockscreen Testing strategy: Manual testing on Windows 11, Windows 10 21H2, Windows 10 1809 - Attempt to navigate outside the top level window of the lock screen using object navigation using STR - Ensure the lock screen can still be navigated with object navigation An advisory is required to be sent out for earlier NVDA versions.
- Loading branch information
Showing
7 changed files
with
209 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.