{ "id": "165243", "key": "TIMOB-24288", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": [ { "id": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-02-08T22:58:35.000+0000", "created": "2017-01-10T09:13:45.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" } ], "issuelinks": [ { "id": "53909", "type": { "id": "10122", "name": "Gantt: start-finish", "inward": "is triggered by", "outward": "is triggering" }, "inwardIssue": { "id": "159457", "key": "TIMOB-23186", "fields": { "summary": "Android: Webview request send out beforeload event is excuted on Webview", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } }, { "id": "53908", "type": { "id": "10122", "name": "Gantt: start-finish", "inward": "is triggered by", "outward": "is triggering" }, "inwardIssue": { "id": "160056", "key": "TIMOB-23327", "fields": { "summary": "iOS: Webview request send out beforeload event is excuted on Webview (Parity)", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } }, { "id": "57944", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "174462", "key": "TIMOB-27618", "fields": { "summary": "Android: remove Ti.UI.WebView.onStopBlacklistedUrl event", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2019-11-21T18:46:51.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" }, { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "In TIMOB-23327 (iOS) and TIMOB-23186 (Android) we added support for blacklisting URL's to fit some special use-cases using the {{onStopBlacklistedUrl}} url together with the {{blacklistedUrls}} property. While the changes work fine, the event does not our common event naming and causing some trouble when being assigned to Alloy (e.g. {{onOnstopblacklistedurl=\"myHandler\"}}. Renaming it to {{blacklisturl}} would unify the naming and fix the possible Alloy issues.", "attachment": [], "flagged": false, "summary": "Deprecate \"onStopBlacklistedUrl\" WebView event in favor of cross-platform \"blacklisturl\" event", "creator": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "closedSprints": [ { "id": 796, "state": "closed", "name": "2017 Sprint 02 SDK", "startDate": "2017-01-15T00:00:41.845Z", "endDate": "2017-01-29T00:00:00.000Z", "completeDate": "2017-01-30T21:10:44.640Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "404333", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Putting in review for [~vijaysingh] (iOS), [~gmathews] (Android) and [~ewieber] (QE)", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-01-10T10:13:01.000+0000", "updated": "2017-01-10T10:13:01.000+0000" }, { "id": "404334", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/8736\r\n\r\nTest code-\r\n{code:java}\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{code}", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-01-10T10:17:31.000+0000", "updated": "2017-01-10T10:39:57.000+0000" }, { "id": "404336", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Working fine in iOS.", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-01-10T10:40:32.000+0000", "updated": "2017-01-10T10:40:32.000+0000" }, { "id": "406929", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Works as expected on both android & IOS. The blacklisturl event is fired successfully when a url is blocked.\r\n\r\nClosing.\r\n\r\nAppc Studio : 4.8.1.201612050850\r\nSDK Version : 6.1.0.v20170213093116\r\nMac OS Version : 10.12.2\r\nXcode Version : Xcode 8.2.1 Build version 8C1002\r\nAppc CLI AND Appc NPM : {\"NPM\":\"4.2.9-1\",\"CLI\":\"6.1.0\"}\r\nTi CLI : 5.0.11\r\nAlloy : 1.9.5\r\nNode : v4.6.0\r\nDevice: running 7.1.1Pixel\r\nIOS simulator: iphone 7 IOS 10.2 ", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-02-13T21:54:27.000+0000", "updated": "2017-02-13T21:54:39.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }