-
Notifications
You must be signed in to change notification settings - Fork 399
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
OK-23494: Restrict protocols for webview navigation #3622
Conversation
PR Summary
|
// Supported thrid party wallets which was registered in info.plist | ||
'fireblocks-wc:' as const, | ||
'zerion:' as const, | ||
'rainbow:' as const, |
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.
发现页也能打开 deeplink 吗?发现页只能打开 https 网页吧
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.
以及用 will-navigate 最好等 electron 版本升级之后再合入,因为不同的 electron 版本,webview 和主进程 API 差异都蛮大的,现在这个版本生效,不一定升级后的版本也能生效
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.
发现页也能打开 deeplink 吗?发现页只能打开 https 网页吧
这是主分支里 Native webview 的逻辑,只要链接正确,是能通过 universal link 唤起第三方 App 的
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.
以及用 will-navigate 最好等 electron 版本升级之后再合入,因为不同的 electron 版本,webview 和主进程 API 差异都蛮大的,现在这个版本生效,不一定升级后的版本也能生效
webviewTag 拦截的手法不多,因为它是不支持在自身的 will-navigate 事件中 preventEvent 的。
这里是在主进程统一对 webview 类型的 will-navigate 做了拦截,目前自测没问题
如果这个 issue 不着急的话就先 draft pr 了,升级完之后再自测下
Bundle Stats-web bundle diffHey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle. As this PR is updated, I'll keep you updated on how the bundle size is impacted. Total
View detailed bundle breakdownAdded
Removed
Bigger
Smaller
Unchanged
|
Bundle Stats-ios bundle diffHey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle. As this PR is updated, I'll keep you updated on how the bundle size is impacted. Total
View detailed bundle breakdownAdded No assets were added Removed No assets were removed Bigger
Smaller No assets were smaller Unchanged No assets were unchanged |
No description provided.