{ "id": "152872", "key": "TIMOB-19906", "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": [ { "id": "14826", "description": "Release 5.1.0-remaining iOS9 features, Android M features", "name": "Release 5.1.0", "archived": false, "released": true, "releaseDate": "2015-11-20" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-11-10T18:46:14.000+0000", "created": "2015-11-10T15:01:11.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "crash", "ios", "safaridialog" ], "versions": [], "issuelinks": [ { "id": "49702", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "152875", "key": "TIMOB-19905", "fields": { "summary": "iOS: SafariDialog's supported is false on iOS 9.1", "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": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2015-11-10T21:10:23.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "SafariaDialog crashes the app after opening with an URL containing spaces\r\n\r\n{code:title=Example}\r\nvar self = Ti.UI.createWindow({\r\n title: L('Test')\r\n });\r\n\r\n self.addEventListener('open', function () {\r\n var SafariDialog = require('ti.safaridialog');\r\n\r\n SafariDialog.open({\r\n url: 'http://www.amazon.com/s/field-keywords=Transformers 4', // works not\r\n //url: 'http://www.amazon.com/s/field-keywords=Transformers+4', // works\r\n title: 'Search'\r\n });\r\n\r\n SafariDialog.addEventListener('close', function (e) {\r\n console.log(e);\r\n });\r\n });\r\n\r\n self.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: SafariDialog close event crash", "creator": { "name": "benutzername", "key": "benutzername", "displayName": "Sebastian Klaus", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "benutzername", "key": "benutzername", "displayName": "Sebastian Klaus", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "369555", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "[~hansknoechel] shouldn't we fix this before it is released with 5.1?", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-11-10T15:54:11.000+0000", "updated": "2015-11-10T15:54:11.000+0000" }, { "id": "369566", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR (Ti.SafariDialog/master): https://github.com/appcelerator-modules/Ti.SafariDialog/pull/3\r\nPR (titanium_mobile/master): https://github.com/appcelerator/titanium_mobile/pull/7415\r\nPR (titanium_mobile/5_1_X): https://github.com/appcelerator/titanium_mobile/pull/7416\r\n\r\nDemo:\r\n{code:javascript}\r\n\r\nvar safariDialog = require('ti.safaridialog');\r\n\r\nTi.API.warn('ti.safaridialog.supported ' + safariDialog.supported);\r\nTi.API.warn('ti.safaridialog.getSupprted() ' + safariDialog.getSupported());\r\nTi.API.warn('ti.safaridialog.isSupported() ' + safariDialog.isSupported());\r\n\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: \"#fff\"\r\n});\r\nvar btn = Ti.UI.createButton({\r\n\ttitle: \"Open SafariDialog!\"\r\n});\r\n\r\nbtn.addEventListener(\"click\", function(){\r\n\tsafariDialog.open({\r\n\t\turl: \"http://www.amazon.com/s/field-keywords=Transformers 4\",\r\n\t\ttitle: \"Amazon\"\r\n\t});\r\n});\r\n\r\nsafariDialog.addEventListener(\"close\", function(e) {\r\n\tTi.API.warn(e);\r\n});\r\n\r\nsafariDialog.addEventListener(\"open\", function(e) {\r\n\tTi.API.warn(e);\r\n});\r\n\r\nwin.add(btn);\r\nwin.open();\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-11-10T18:05:37.000+0000", "updated": "2015-11-10T18:42:08.000+0000" }, { "id": "369568", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "OK with me. Merge away.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-11-10T18:41:01.000+0000", "updated": "2015-11-10T18:41:01.000+0000" }, { "id": "369574", "author": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR approved and Merged", "updateAuthor": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-11-10T18:59:16.000+0000", "updated": "2015-11-10T18:59:16.000+0000" }, { "id": "369594", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed. Using the above demo code, verified the following:\r\n\r\n* On a iOS 9.1 device, {{safariDialog.supported}}, {{afariDialog.getSupported()}}, and {{safariDialog.isSupported()}} returns true on launch of the app.\r\n* On a iOS 9.1 device, if I press the {{\"Open SafariDialog!\"}} button and close the SafariDialog multiple times, then the app does not crash.\r\n* On a iOS 8.2 device, {{safariDialog.supported}}, {{afariDialog.getSupported()}}, and {{safariDialog.isSupported()}} returns false on launch of the app.\r\n\r\nTested on:\r\n\r\nAppcelerator Studio, build: 4.4.0.201511101919\r\nAppc CLI NPM: 4.2.1\r\nAppc CLI Core: 5.1.0-44\r\nArrow: 1.3.19\r\nSDK: 5.1.0.v20151110110428\r\nti.safaridialog: 1.0.2\r\nNode: v4.2.1\r\nOS: El Capitan (10.11.1)\r\nXcode: 7.1.1\r\nDevices: iphone 6s plus (9.1), iphone 6 (8.2)", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-11-10T20:23:06.000+0000", "updated": "2015-11-10T20:23:06.000+0000" }, { "id": "369600", "author": { "name": "benutzername", "key": "benutzername", "displayName": "Sebastian Klaus", "active": true, "timeZone": "Europe/Berlin" }, "body": "Very fast reaction. Thank you all.", "updateAuthor": { "name": "benutzername", "key": "benutzername", "displayName": "Sebastian Klaus", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-11-10T21:10:23.000+0000", "updated": "2015-11-10T21:10:23.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }