{ "id": "162195", "key": "MOD-2279", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10034", "key": "MOD", "name": "Appcelerator Modules", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2016-07-28T13:45:22.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-03-06T18:52:17.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": "14801", "name": "SafariDialog", "description": "ti.safaridialog" } ], "description": "I am using ti.safaridialog in an appcelerator application and when using Safari Inspector I am noticing that safari dialog instances/views are sticking around even after the dialog is closed.\r\n\r\nIf I hit Done in the ti.safaridialog url I am showing, the view still shows up under the Safari -> Develop -> Simulator -> (App Name) and I can select it and inspect the page that is no longer open. This makes me think that these ti.safaridialog views are not getting cleaned up properly.\r\n\r\n", "attachment": [], "flagged": false, "summary": "ti.safaridialog web pages still show in Safari Inspector after closing", "creator": { "name": "cthomas", "key": "cthomas", "displayName": "Christy Thomas", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "cthomas", "key": "cthomas", "displayName": "Christy Thomas", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Appcelerator Command-Line Interface, version 5.2.0\r\nCopyright (c) 2014-2016, Appcelerator, Inc. All Rights Reserved.\r\n\r\nOperating System\r\n Name = Mac OS X\r\n Version = 10.11.5\r\n Architecture = 64bit\r\n # CPUs = 8\r\n Memory = 16.0GB\r\n\r\nNode.js\r\n Node.js Version = 0.12.7\r\n npm Version = 2.11.3\r\n\r\nAppcelerator CLI\r\n Installer = 4.2.6\r\n Core Package = 5.2.0\r\n\r\nTitanium CLI\r\n CLI Version = 5.0.6\r\n node-appc Version = 0.2.31\r\n\r\nUsing iOS Simulator iPad 2 (v9.3)\r\nSafari 9.1.1", "comment": { "comments": [ { "id": "391844", "author": { "name": "cthomas", "key": "cthomas", "displayName": "Christy Thomas", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Also if you use Instruments and watch Allocations the SFSafariViewController is not being cleaned up. What is the appropriate way to clean up after using require('ti.safaridialog').open()?", "updateAuthor": { "name": "cthomas", "key": "cthomas", "displayName": "Christy Thomas", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-07-28T17:06:15.000+0000", "updated": "2016-07-28T17:06:15.000+0000" }, { "id": "394487", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~cthomas] Thank you for the information. I think the most important thing is if the module leaks. As you mentioned, on Instruments if you watch allocations it doesn't get cleaned up, it's normal as eventually it will get garbage collected. More importantly, on Instruments - Leaks, did you manage to snapshot any leaks? Thanks again.\r\n\r\n", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-08-26T07:52:37.000+0000", "updated": "2016-08-26T07:52:37.000+0000" }, { "id": "394632", "author": { "name": "cthomas", "key": "cthomas", "displayName": "Christy Thomas", "active": true, "timeZone": "America/Los_Angeles" }, "body": "There are some leaks occurring when going to the safari dialog and coming back to the app. Nothing specific to ti.safaridialog it appears, but it is something that doesn't happen otherwise when running our app and showing activity indicators. See image of leaks after switching to safari dialog a few times and back to the app : [link image|https://drive.google.com/file/d/0B5ksTWl7XXHRUVdPVTYxNm5QREE/view?usp=sharing].\r\n\r\nThe other concern I have is that the safari view is still showing up in the safari debug menu. Why isn't that getting cleaned up?", "updateAuthor": { "name": "cthomas", "key": "cthomas", "displayName": "Christy Thomas", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-08-29T12:43:03.000+0000", "updated": "2016-08-29T12:46:31.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }