{ "id": "101480", "key": "TIMOB-10973", "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": "14137", "description": "Release 2.1.3", "name": "Release 2.1.3", "archived": true, "released": true, "releaseDate": "2012-10-03" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14127", "description": "Sprint 2012-19 API", "name": "Sprint 2012-19 API", "archived": true, "released": true, "releaseDate": "2012-09-24" }, { "id": "14271", "description": "2012 Sprint 19", "name": "2012 Sprint 19", "archived": true, "released": true, "releaseDate": "2012-09-24" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2013-09-18T16:37:40.000+0000", "created": "2012-09-19T03:42:32.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "module_window", "qe-ios090112", "qe-ios6", "qe-testadded" ], "versions": [ { "id": "14137", "description": "Release 2.1.3", "name": "Release 2.1.3", "archived": true, "released": true, "releaseDate": "2012-10-03" } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-30T17:34:15.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": "This is not a regression. It occurs on 2.1.2 also on iOS 6 device/simulator. It works fine on iOS 5.\r\n\r\nIf parent window has set 'modal:true' , then child window could not be opened from it.\r\n\r\nSteps to reproduce:\r\n1. Use the code below in app.js\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\nvar aBtn = Ti.UI.createButton({title:'open'});\r\n\t\t\r\n\t\taBtn.addEventListener('click', function(){\r\n\t\t\tvar toplevel = Ti.UI.createWindow({backgroundColor : 'red'});\r\n\t\t\ttoplevel.open(); \r\n\t\t});\r\n\t\t\r\nwin.add(aBtn);\r\nwin.open({modal : true}); \r\n{code}\r\n2. Run the app\r\n3. Click open button.\r\n\r\nExpected result:\r\n2. A black window with 'open' button should be displayed.\r\n3. A red window should be displayed.\r\n\r\nActual result:\r\n2. A black window with 'open' button is displayed.\r\n3. A red window do not gets displayed.Instead a warning is displayed in console. Warning message attached.\r\n", "attachment": [ { "id": "31482", "filename": "Warning message.rtf", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-19T03:42:32.000+0000", "size": 840, "mimeType": "text/rtf" } ], "flagged": false, "summary": "iOS 6 : Child window is not opening if parent window has modal property set to true.", "creator": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK: 2.1.3.v20120918170114\r\nTitanium Studio: 2.1.3.201209170816\r\nDevice : iPad iOS 6.0\r\nXcode : 4.5 \r\nMachine OS : MAC 10.8", "comment": { "comments": [ { "id": "219781", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Reopening to investigate further", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-09-19T12:00:13.000+0000", "updated": "2012-09-19T12:00:13.000+0000" }, { "id": "219847", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Expanded test case\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\nvar aBtn = Ti.UI.createButton({title:'open modal'});\r\n\t\taBtn.addEventListener('click', function(){\r\n            var toplevel = Ti.UI.createWindow({backgroundColor : 'red'});\r\n\t\t\tvar bBtn = Ti.UI.createButton({title:'open regular', top:10});\r\n\t\t\tvar cBtn = Ti.UI.createButton({title:'close', top:60});\r\n\t\t\tvar dBtn = Ti.UI.createButton({title:'open Modal', top:110});\r\n\t\t\tbBtn.addEventListener('click', function(){\r\n\t\t\t\tvar test = Ti.UI.createWindow({backgroundColor : 'green'});\r\n\t\t\t\tvar eBtn = Ti.UI.createButton({title:'close'});\r\n\t\t\t\teBtn.addEventListener('click',function(){\r\n\t\t\t\t\ttest.close();\r\n\t\t\t\t});\r\n\t\t\t\ttest.add(eBtn);\r\n\t\t\t\ttest.open();\r\n\t\t\t});\r\n\t\t\t\r\n\t\t\tcBtn.addEventListener('click',function(){\r\n\t\t\t\t\ttoplevel.close();\r\n\t\t\t})\r\n\r\n\t\t\tdBtn.addEventListener('click', function(){\r\n\t\t\t\tvar test2 = Ti.UI.createWindow({backgroundColor : 'yellow'});\r\n\t\t\t\tvar fBtn = Ti.UI.createButton({title:'close'});\r\n\t\t\t\tfBtn.addEventListener('click',function(){\r\n\t\t\t\t\ttest2.close();\r\n\t\t\t\t});\r\n\t\t\t\ttest2.add(fBtn);\r\n\t\t\t\ttest2.open({modal:true});\r\n\t\t\t});\r\n\t\t\t\r\n\t\t\ttoplevel.add(bBtn);\r\n\t\t\ttoplevel.add(cBtn);\r\n\t\t\ttoplevel.add(dBtn);\r\n            toplevel.open({modal:true}); \r\n        });\r\n         \r\nwin.add(aBtn);\r\nwin.open(); \r\n{code}", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-09-19T15:55:55.000+0000", "updated": "2012-09-19T15:55:55.000+0000" }, { "id": "219848", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending https://github.com/appcelerator/titanium_mobile/pull/2999", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-09-19T16:00:19.000+0000", "updated": "2012-09-19T16:00:19.000+0000" }, { "id": "220056", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pull merged.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-20T17:25:33.000+0000", "updated": "2012-09-20T17:25:33.000+0000" }, { "id": "220228", "author": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix on:\r\nMAC OSX 10.8.1\r\nTitanium studio : 2.1.2.201208301612\r\nSDK version : 3.0.0.v20120921144915\r\nxcode 4.5\r\nbuilt with iOS6 SDK on Ipad 3 running iOS6 & on Iphone simulator.", "updateAuthor": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-09-21T16:23:59.000+0000", "updated": "2012-09-21T16:23:59.000+0000" }, { "id": "220240", "author": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested and verified on: \r\nOS: Mac OS X Lion 10.7.4 \r\nTitanium Studio, build: 2.1.2.201208301612\r\nTitanium SDK, build: 2.1.3.v20120921141611\r\nDevice: iPhone 4S (6.0.GM)\r\n\r\nA red window is displayed, but warning message \"Trying to open a new window from within a Modal Window is unsupported\" still appears in the console.", "updateAuthor": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-21T16:49:12.000+0000", "updated": "2012-09-21T16:49:12.000+0000" }, { "id": "262815", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening to update labels", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-23T11:41:20.000+0000", "updated": "2013-07-23T11:41:20.000+0000" }, { "id": "262816", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with: \r\nSDK:3.1.2.v20130718094558\r\nAppcelerator Studio: 3.1.2.201307121651\r\nOS: OSX 10.7.5\r\nDevice:iPadmini(ios6)\r\nXcode: 4.6", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-23T11:42:24.000+0000", "updated": "2013-07-23T11:42:24.000+0000" }, { "id": "271456", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested Environment:\r\n\r\nAppcelerator Studio: 3.1.3.201309132456\r\nSDK: 3.1.3.v20130916153052\r\nacs:1.0.6\r\nalloy:1.2.2-cr\r\nnpm:1.3.2\r\ntitanium:3.1.2\r\ntitanium-code-processo:1.0.2\r\nOSX: 10.8.4\r\nXcode:5.0 GM seed\r\nDevice:ipad3(v7.0),iphone4s(v7.0)\r\n\r\nThis is Regression since issue does not occurs on 3.1.2.GA.\r\n\r\nChild window with no modal property(as by default it is false) is not opening when parent window has modal property set to true.\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\nvar aBtn = Ti.UI.createButton({title:'open modal'});\r\n aBtn.addEventListener('click', function(){\r\n var toplevel = Ti.UI.createWindow({backgroundColor : 'red'});\r\n var bBtn = Ti.UI.createButton({title:'open regular', top:10});\r\n var cBtn = Ti.UI.createButton({title:'close', top:60});\r\n var dBtn = Ti.UI.createButton({title:'open Modal', top:110});\r\n bBtn.addEventListener('click', function(){\r\n var test = Ti.UI.createWindow({backgroundColor : 'green'});\r\n var eBtn = Ti.UI.createButton({title:'close'});\r\n eBtn.addEventListener('click',function(){\r\n test.close();\r\n });\r\n test.add(eBtn);\r\n test.open();\r\n });\r\n \r\n cBtn.addEventListener('click',function(){\r\n toplevel.close();\r\n })\r\n \r\n dBtn.addEventListener('click', function(){\r\n var test2 = Ti.UI.createWindow({backgroundColor : 'yellow'});\r\n var fBtn = Ti.UI.createButton({title:'close'});\r\n fBtn.addEventListener('click',function(){\r\n test2.close();\r\n });\r\n test2.add(fBtn);\r\n test2.open({modal:true});\r\n });\r\n \r\n toplevel.add(bBtn);\r\n toplevel.add(cBtn);\r\n toplevel.add(dBtn);\r\n toplevel.open({modal:true}); \r\n });\r\n \r\nwin.add(aBtn);\r\nwin.open(); \r\n{code}\r\n\r\nOn Clicking \"Open Regular\" titled button.New Window in 3.1.2.GA is opened but with 3.1.3.v20130916153052 build does not get opened.\r\n\r\nOn Clicking \"Open Modal\" titled button (child window with modal property true) New Window gets opened successfully for both 3.1.2.GA and 3.1.3.v20130916153052 build.\r\n\r\nHence Reopening issue since when Child window with no modal property(as by default it is false)and parent window has modal property set as true. Child window is not opened.\r\n And when both Child window and parent window has modal property set as true.Child window is opened successfully.", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-17T11:14:58.000+0000", "updated": "2013-09-18T11:48:51.000+0000" }, { "id": "416357", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-30T17:34:15.000+0000", "updated": "2017-03-30T17:34:15.000+0000" } ], "maxResults": 12, "total": 12, "startAt": 0 } } }