-
-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
Which platform(s) does your issue occur on?
Both (examples below reproducible on iOS)
Please, provide the following version numbers that your issue occurs with:
Does not matter, web view runtime issue
Please, tell us how to recreate the issue in as much detail as possible.
Open some site in web view which executes script in global scope like (code from real 3DS payment form):
for (i = 0, ii = 0; i < method.length; i++) {
...
}
Is there any code involved?
The reason of the issue is this code:
ui-webview/www-src/bridge.ios.ts
Line 83 in b7c440f
| const w = window as any; |
ui-webview/www-src/bridge.android.ts
Line 24 in b7c440f
| const w = window as any; |
After minification "w" variable transforms to "i", and if some site will use it in "for" loop like from example, it will get error:
TypeError: Attempted to assign to readonly property.
Recommendation for fix is to wrap the related code from links into separate scope (not global one).
evich-sergey, EskeN, aslkva, VinarArtem and modos189
Metadata
Metadata
Assignees
Labels
No labels