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: properly pass openExternal activate option (5-0-x) #18721

Conversation

jeremyspiegel
Copy link
Contributor

backport of #18657 to 5-0-x

Description of Change

A reference to an OpenExternalOptions structure was being captured by an Objective-C block that outlived the object that was being referenced (added in #15065). This caused the default browser window to not be activated when passing a URL on macOS when the default browser is Safari or Firefox. Fixes #18293.

cc @codebytere

Checklist

Release Notes

Notes: Fixed issue where shell.openExternal would not activate opened window on macOS.

A reference to an OpenExternalOptions structure was being captured by an Objective-C block that
outlived the object that was being referenced.
@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Jun 10, 2019
@jeremyspiegel jeremyspiegel changed the title fix: properly pass openExternal activate option fix: properly pass openExternal activate option (5-0-x) Jun 11, 2019
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Jun 11, 2019
@codebytere codebytere merged commit e0d566a into electron:5-0-x Jun 13, 2019
@release-clerk
Copy link

release-clerk bot commented Jun 13, 2019

Release Notes Persisted

Fixed issue where shell.openExternal would not activate opened window on macOS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants