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 #18657
fix: properly pass openExternal activate option #18657
Conversation
A reference to an OpenExternalOptions structure was being captured by an Objective-C block that outlived the object that was being referenced.
💖 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. |
Looks like I can't rely on a window onblur event in a test on CI (it worked when I ran it via |
Hmm, I see now that with #17649, osx-testing-test doesn't pass on PRs from forks. I don't have permission to push a branch to this repo though. |
@jeremyspiegel That's OK, as that's the only failure this PR is effectively green. Just needs a review 👍 |
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.
Thanks for this!
The failing macOS spec is expected for forks; merging. |
Congrats on merging your first pull request! 🎉🎉🎉 |
Release Notes Persisted
|
I was unable to backport this PR to "5-0-x" cleanly; |
I was unable to backport this PR to "4-2-x" cleanly; |
I was unable to backport this PR to "6-0-x" cleanly; |
@jeremyspiegel could you please open manual backports for the targeted release lines? |
@codebytere sure, but the bug is not in 4.2.x, it is new in 5.0.x. |
@jeremyspiegel oops, corrected! |
A maintainer has manually backported this PR to "5-0-x", please check out #18721 |
A maintainer has manually backported this PR to "6-0-x", please check out #18722 |
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 @miniak @nornagon @alexeykuzmin @codebytere
Checklist
npm test
passesRelease Notes
Notes: Fixed issue where
shell.openExternal
would not activate opened window on macOS