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: call loadUrl when opening new windows from links #34159

Merged
merged 2 commits into from May 11, 2022

Conversation

codebytere
Copy link
Member

Description of Change

Closes #34152.

Fixes an issue where windows opened from new links wouldn't properly load URLs. This happened as a result of cleanup in d44a187 - a section of code was removed which loaded the url for non-guest windows in openGuestWindow. It's actually the case that this code is necessary when we're opening new windows from links as well. When we open a new window from a link via Shift+LeftClick, this routes through OpenUrlFromTab, at which point the browser process is responsible for initiating navigation in the new window. This PR restores that code and updates the comment accordingly.

Checklist

Release Notes

Notes: Fixes an issue where some BrowserWindows opened from new links wouldn't properly load URLs.

@codebytere codebytere added semver/patch backwards-compatible bug fixes target/18-x-y labels May 10, 2022
@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label May 10, 2022
Copy link
Member

@samuelmaddock samuelmaddock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, just had a question about the test

@MarshallOfSound MarshallOfSound merged commit dd6ce91 into main May 11, 2022
@MarshallOfSound MarshallOfSound deleted the fix-new-window-open branch May 11, 2022 18:34
@release-clerk
Copy link

release-clerk bot commented May 11, 2022

Release Notes Persisted

Fixes an issue where some BrowserWindows opened from new links wouldn't properly load URLs.

@trop
Copy link
Contributor

trop bot commented May 11, 2022

I was unable to backport this PR to "18-x-y" cleanly;
you will need to perform this backport manually.

@trop
Copy link
Contributor

trop bot commented May 11, 2022

I have automatically backported this PR to "19-x-y", please check out #34189

@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label May 13, 2022
@pushkin-
Copy link

Is this going to be backported to Electron 18?

@trop
Copy link
Contributor

trop bot commented Jul 13, 2022

@codebytere has manually backported this PR to "18-x-y", please check out #34910

khalwa pushed a commit to solarwindscloud/electron that referenced this pull request Feb 22, 2023
* fix: call loadUrl when opening new windows from links

* spec: add regression test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Non-default window dispositions fail to load initial URL
5 participants