-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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: Browser dialog prompts in app #10540
fix: Browser dialog prompts in app #10540
Conversation
… tab is focused. If it is then allow the regular execusion of JS, if not, block all JS execution in the Webview.
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
Bitrise❌❌❌ Commit hash: dc69d9d Note
|
Bitrise❌❌❌ Commit hash: a028cda Note
|
Bitrise✅✅✅ Commit hash: e024750 Note
|
…ndling it inside the component. Also added some unit tests
Bitrise❌❌❌ Commit hash: ad42703 Note
|
Bitrise✅✅✅ Commit hash: 276b154 Note
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #10540 +/- ##
==========================================
+ Coverage 52.60% 52.71% +0.10%
==========================================
Files 1530 1533 +3
Lines 36709 36802 +93
Branches 4313 4338 +25
==========================================
+ Hits 19312 19399 +87
+ Misses 16086 16084 -2
- Partials 1311 1319 +8 ☔ View full report in Codecov by Sentry. |
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.
LGTM! After addressing the chain id for hexadecimal values, this looks good to me!
Bitrise✅✅✅ Commit hash: 8c59f7f Note
|
Quality Gate passedIssues Measures |
Description
Added a function that checks to see if the Webview Tab is currently in focus. If the user navigates away from the webview at any point, the app will stop any JS execution in the webview. If the user remains in the webview tab, JS execution will continue as expected.
Related issues
Fixes: Browser Dialog prompts can overlay outside of tab
Manual testing steps
Screenshots/Recordings
Before
After
Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-08-21.at.22.44.37.mp4
Pre-merge author checklist
Pre-merge reviewer checklist