[AC-6674] Android: Accessing WebView's requestHeaders property failing urls to load
| GitHub Issue | n/a |
| Type | Bug |
| Priority | n/a |
| Status | Open |
| Resolution | Unresolved |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Titanium SDK & CLI |
| Labels | n/a |
| Reporter | Prashant Saini |
| Assignee | Abir Mukherjee |
| Created | 2021-02-05T04:32:18.000+0000 |
| Updated | 2021-02-05T04:32:18.000+0000 |
Description
A simple accidental test led me to this bug that:
- Accessing *requestHeaders* property of WebView before the window is opened is stopping urls to load.
- Once window is opened, we can access or set *requestHeaders* property without any issue.
Though in the docs, it's mentioned to set *requestHeaders* property only in *createWebView* method or in *open* event, but not sure how it is related to simply accessing the property just for printing purpose.
Attached screenshots are enough to show the behaviour of the issue.
- Screenshot 1.JPG shows empty web-view as we are accessing the *requestHeaders* property before window is opened.
- Screenshot 2.JPG shows loaded web-view if we access *requestHeaders* after window is opened.
Attachments
| File | Date | Size |
| 1.JPG | 2021-02-05T04:30:39.000+0000 | 118169 |
| 2.JPG | 2021-02-05T04:30:39.000+0000 | 224446 |
No comments