{ "id": "176022", "key": "AC-6674", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": null, "resolutiondate": null, "created": "2021-02-05T04:32:18.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2021-02-05T04:32:18.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "A simple accidental test led me to this bug that:\r\n- Accessing *requestHeaders* property of WebView before the window is opened is stopping urls to load.\r\n- Once window is opened, we can access or set *requestHeaders* property without any issue.\r\n\r\nThough 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.\r\n\r\nAttached screenshots are enough to show the behaviour of the issue.\r\n\r\n- Screenshot 1.JPG shows empty web-view as we are accessing the *requestHeaders* property before window is opened.\r\n\r\n- Screenshot 2.JPG shows loaded web-view if we access *requestHeaders* after window is opened.", "attachment": [ { "id": "67786", "filename": "1.JPG", "author": { "name": "prashant_saini", "key": "prashant_saini", "displayName": "Prashant Saini", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-02-05T04:30:39.000+0000", "size": 118169, "mimeType": "image/jpeg" }, { "id": "67785", "filename": "2.JPG", "author": { "name": "prashant_saini", "key": "prashant_saini", "displayName": "Prashant Saini", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-02-05T04:30:39.000+0000", "size": 224446, "mimeType": "image/jpeg" } ], "flagged": false, "summary": "Android: Accessing WebView's requestHeaders property failing urls to load", "creator": { "name": "prashant_saini", "key": "prashant_saini", "displayName": "Prashant Saini", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "prashant_saini", "key": "prashant_saini", "displayName": "Prashant Saini", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Ti SDK: 9.3.1.GA\r\n", "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }