-
Notifications
You must be signed in to change notification settings - Fork 327
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: webview usage with electron 22 #2182
Conversation
* Revert ":fire: hotfix release [skip ci]" This reverts commit e0e5bb6. * Revert ":fire: hotfix prerelease [LLD(2.51.0-hotfix.0)]" This reverts commit 252aa67. * Revert ":rocket: entering LLD hotfix mode" This reverts commit 8f708eb. * Revert ":fire: hotfix release [skip ci]" This reverts commit 4ca8f86. * Revert "Update wording" This reverts commit fea165d. * Revert "add energy lt for warning message to be display" This reverts commit 693e44e. * Revert "add more feelimit to tron trc20" This reverts commit 1910b23. * Revert ":fire: hotfix prerelease [LLM(3.12.0)]" This reverts commit de77a92. * Revert ":rocket: entering LLM hotfix mode" This reverts commit 42df4fc.
[support] Manually merge hotfix to main
…2122) * Fix start of post onboarding not being called in the right place * changeset
Add blockcerts BCERT token icon
Removed the complex file, verifying the file can be converted to react native, verifying the requirements are present and avoid what is prohibited.
Added the latest requirements and removed what was asked to remove
feat - show DEX quotes on LLD Swap screen
🦋 Changeset detectedLatest commit: 0809051 The changes in this PR will be included in the next version bump. This PR includes changesets to release 35 packages
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 |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Codecov ReportBase: 0.00% // Head: 45.94% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## feat/electron-22 #2182 +/- ##
=====================================================
+ Coverage 0 45.94% +45.94%
=====================================================
Files 0 740 +740
Lines 0 31929 +31929
Branches 0 8368 +8368
=====================================================
+ Hits 0 14669 +14669
- Misses 0 15937 +15937
- Partials 0 1323 +1323
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
/generate-screenshots |
📝 Description
Description from: #1777
cf. https://ledgerhq.atlassian.net/browse/LIVE-4335?focusedCommentId=247299
In a breaking change in Electron 18 the nativeWindowOpen web preference (used here) have been removed (cf. this PR)
Now, Ledger live does not seem to receive (and handle) new-window events when a live-apps wants to open a new window (regularly used throughout Live Apps to open external contextual info like redirect to Twitter account, open ToS page, etc…)
webview
are deprecated and not formerly integrated / maintained in electron.updating electron broke previous handleding of new window opened from a
webview
use
setWindowOpenHandler
on thewebview
webContents to handle opening new window.cf. electron/electron#31117 (comment)
also, there seem to be issues between
webview
and Reactcf. electron/electron#6046
PS: this solution works as is. It might not be the most beautiful. Feel free to use it as a base version and improve on it if need be.
❓ Context
ledger-live-mobile
,ledger-live-desktop
✅ Checklist
📸 Demo
🚀 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.