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 opening external windows from a webview #432

Merged
merged 2 commits into from
Jun 22, 2022

Conversation

elbywan
Copy link
Contributor

@elbywan elbywan commented Jun 22, 2022

πŸ“ Description

Restore the ability to open external windows from a <webview /> with the same API.

This bug was caused by a "kinda undocumented" electron 15 breaking change which impacted webviews indirectly.
nativeWindowOpen has been made true by default with electron 15, this PR restores the previous behaviour.

Note: both webviews and the api we use are marked as deprected by Chrome and Electron. It might be a good time to rewrite.

See:

❓ Context

  • Impacted projects: live-desktop
  • Linked resource(s): N/A

βœ… Checklist

  • Test coverage
  • Atomic delivery
  • No breaking changes

πŸ“Έ Demo

Screen.Recording.2022-06-22.at.11.47.27.mov

πŸš€ Expectations to reach

Please make sure you follow these Important Steps.

Pull Requests must pass the CI and be internally validated in order to be merged.

@vercel
Copy link

vercel bot commented Jun 22, 2022

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

Name Status Preview Updated
live-common-tools βœ… Ready (Inspect) Visit Preview Jun 22, 2022 at 9:54AM (UTC)
3 Ignored Deployments
Name Status Preview Updated
ledger-live-github-bot ⬜️ Ignored (Inspect) Jun 22, 2022 at 9:54AM (UTC)
native-ui-storybook ⬜️ Ignored (Inspect) Jun 22, 2022 at 9:54AM (UTC)
react-ui-storybook ⬜️ Ignored (Inspect) Jun 22, 2022 at 9:54AM (UTC)

@changeset-bot
Copy link

changeset-bot bot commented Jun 22, 2022

πŸ¦‹ Changeset detected

Latest commit: ebb7deb

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
ledger-live-desktop Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added the desktop Has changes in LLD label Jun 22, 2022
@github-actions
Copy link

@elbywan

Screenshots: βœ…

There are no changes in the screenshots for this PR. If this is expected, you are good to go.

Copy link
Member

@valpinkman valpinkman left a comment

Choose a reason for hiding this comment

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

LGTM, but definitely we will need to rethink the way we handle live-apps

@elbywan elbywan merged commit 211e880 into develop Jun 22, 2022
@elbywan elbywan deleted the bugfix/webview-open-window branch June 22, 2022 10:17
@elbywan elbywan added this to the Ledger Live Desktop 2.44.x milestone Jun 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
desktop Has changes in LLD
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants