-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add safeguards to secure input on macOS #11928
base: develop
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #11928 +/- ##
===========================================
- Coverage 63.92% 63.90% -0.03%
===========================================
Files 369 369
Lines 38920 38920
===========================================
- Hits 24878 24868 -10
- Misses 14042 14052 +10 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
if (enable) { | ||
// Always keep the internal counter set to 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is kind of arcane. There should be a more thorough explanation in the comment as to what this does and why it's needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The api with macos is so bad. It keeps an internal counter that you have to decrement to zero to disable the feature. There is no way to determine the counter value. There is also no way to determine if your app (specifically) is still blocking.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put that in the comment and we're good. 😉
* Fixes #11906 * Disable secure input when password widget is hidden as well as focused out * Add safeguard to ensure the internal counter that macOS keeps is always set to 1 preventing the ability to disable secure input by focus/unfocus a password field
09d27d9
to
2a18b84
Compare
Testing strategy
Replicated issue on macOS and cannot replicate it after these changes.
Type of change