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
fix: access of out-of-scope reference in ShowOpenDialog #17126
fix: access of out-of-scope reference in ShowOpenDialog #17126
Conversation
…ialog In the mac file dialog implementation of show*OpenDialog, a settings object is passed down to the dialog completion handler. However at the time the completion handler is invoked, the settings object is already out-of-scope, resulting in an invalid access to the security_scoped_bookmarks flag. The fix is to capture the value of the flag and passing that directly to the completion handler. fixes issue electron#16664
💖 Thanks for opening this pull request! 💖 We use semantic commit messages to streamline the release process. Before your pull request can be merged, you should update your pull request title to start with a semantic prefix. Examples of commit messages with semantic prefixes:
Things that will help get your PR across the finish line:
We get a lot of pull requests on this repo, so please be patient and we will get back to you as soon as we can. |
Release Notes Persisted
|
Congrats on merging your first pull request! 🎉🎉🎉 |
/trop run backport-to 4-0-x,5-0-x |
The backport process for this PR has been manually initiated, |
The backport process for this PR has been manually initiated, |
I have automatically backported this PR to "4-0-x", please check out #17176 |
I have automatically backported this PR to "5-0-x", please check out #17177 |
and also in and ShowSaveDialog.
Description of Change
In the mac file dialog implementation of show*OpenDialog, a settings
object is passed down to the dialog completion handler.
However at the time the completion handler is invoked, the settings
object is already out-of-scope, resulting in an invalid access to
the security_scoped_bookmarks flag.
The fix is to capture the value of the flag and passing that directly
to the completion handler.
Closes #16664
Checklist
npm test
passes (I get timeouts and seemingly unrelated failures)Release Notes
Notes: Fixed a bug when retrieving security scoped bookmarks in
ShowOpenDialog
andShowSaveDialog