Skip to content
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 (backport: 4-0-x) #17176

Merged
merged 1 commit into from Mar 1, 2019

Conversation

Projects
None yet
3 participants
@trop
Copy link
Contributor

trop bot commented Feb 28, 2019

Backport of #17126

See that PR for details.

Notes: Fixed a bug when retrieving security scoped bookmarks in ShowOpenDialog and ShowSaveDialog

fix: access of out-of-scope reference in ShowOpenDialog and ShowSaveD…
…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 #16664

@trop trop bot requested a review from as a code owner Feb 28, 2019

@trop trop bot referenced this pull request Feb 28, 2019

Merged

fix: access of out-of-scope reference in ShowOpenDialog #17126

4 of 4 tasks complete

@trop trop bot added 4-1-x backport labels Feb 28, 2019

@electron-cation electron-cation bot removed the new-pr 🌱 label Feb 28, 2019

@codebytere codebytere merged commit 9d30245 into electron:4-0-x Mar 1, 2019

4 checks passed

Semantic Pull Request ready to be squashed
Details
appveyor: win-ia32-testing-pr AppVeyor build succeeded
Details
appveyor: win-x64-testing-pr AppVeyor build succeeded
Details
release-notes Release notes found
@release-clerk

This comment has been minimized.

Copy link

release-clerk bot commented Mar 1, 2019

Release Notes Persisted

Fixed a bug when retrieving security scoped bookmarks in ShowOpenDialog and ShowSaveDialog

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.