{ "id": "175045", "key": "TIMOB-27913", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2020-05-29T12:29:23.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [ { "id": "20033", "name": "Release 9.0.0", "archived": false, "released": true, "releaseDate": "2020-03-18" }, { "id": "21018", "name": "Release 9.0.2", "archived": false, "released": true, "releaseDate": "2020-05-19" } ], "issuelinks": [], "assignee": null, "updated": "2020-06-01T11:26:09.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "Using the following test case the URL does not get blocked and a log message is not displayed stating the URL has been blocked. When testing on iOS the URL is blocked and the log message can be seen.\r\n\r\n*Test Case:*\r\n{code:java}\r\n\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor : 'black',\r\n layout : 'vertical'\r\n});\r\nvar webview = Titanium.UI.createWebView({\r\n url : 'https://developer.apple.com/library/'\r\n});\r\n\r\n webview.setBlacklistedURLs(['library']);\r\n\r\nwebview.addEventListener('load', function(e) {\r\n Ti.API.warn(\"load = e.url=\" + e.url);\r\n});\r\n\r\nwebview.addEventListener('blacklisturl', function(e) {\r\n Ti.API.info(e);\r\n});\r\n\r\nwin.add(webview);\r\nwin.open();\r\n\r\n{code}\r\n\r\n*Expected Result:*\r\nURL should be blocked and log message should display a message saying URL has been blocked. \r\n\r\n*Actual Result:*\r\nURL is not blocked and event is not fired.", "attachment": [], "flagged": false, "summary": "Android: 'setBlacklistedURLs' does not block URLs", "creator": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "MacOS Catalina: 10.15.5 Beta\r\nXcode: 11.4\r\nJava Version: 1.8.0_131\r\nAndroid NDK: 21.1.6273396-beta2\r\nNode.js: 10.16.3\r\n\"\"NPM\":\"5.0.0\",\"CLI\":\"8.0.0\"\"\r\nAndoird Pixel xl 7.1.1 Emulator ", "comment": { "comments": [ { "id": "455586", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~smohammed], you passing in \"library\" and not the full URL. Can you try the below please?\r\n{code:javascript}\r\nwebview.blacklistedURLs = [\r\n 'https://developer.apple.com/library/',\r\n 'https://developer.apple.com/library'\r\n];\r\n{code}\r\n", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-05-29T18:51:08.000+0000", "updated": "2020-05-29T18:55:12.000+0000" }, { "id": "455594", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~jquick] I tried to include the above changes but I still see the same problem. ", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-06-01T11:26:09.000+0000", "updated": "2020-06-01T11:26:09.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }