{ "id": "87975", "key": "TIMOB-8019", "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": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "13170", "name": "Sprint 2012-06", "archived": true, "released": true, "releaseDate": "2012-03-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-03-15T12:03:26.000+0000", "created": "2012-03-14T15:38:39.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-mw020912", "qe-port" ], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [ { "id": "15760", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "77858", "key": "TIMOB-4759", "fields": { "summary": "Calling \"open\" method of already opened heavyweight window crashes application", "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": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-08-08T16:26: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": "11500", "name": "MobileWeb", "description": "Mobile Web (HTML) Platform" } ], "description": "Steps to reproduce:\r\n\r\n1. Create a default mobile web application and change the code of app.js to the following\r\n{code}\r\n\r\nvar _window = Titanium.UI.createWindow({\r\n\t\t\ttitle : 'test',\r\n\t\t\tbackgroundColor : 'white'\r\n\t\t});\r\n\r\nvar button = Ti.UI.createButton({\r\n\t\t\ttitle : 'Press me'\r\n\t\t});\r\n\t\tbutton.addEventListener('click', function() {\r\n\t\t\tvar button2 = Ti.UI.createButton({\r\n\t\t\t\ttitle : 'close'\r\n\t\t\t});\r\n\t\t\tvar win = Ti.UI.createWindow({\r\n\t\t\t\tmodal : true,\r\n\t\t\t\tbackgroundColor : '#c96'\r\n\t\t\t});\r\n\t\t\tbutton2.addEventListener('click', function() {\r\n\t\t\t\twin.close();\r\n\t\t\t});\r\n\t\t\twin.add(button2);\r\n\t\t\twin.open();\r\n\r\n\t\t\twin.open();\r\n\r\n\t\t});\r\n\t\t_window.add(button);\r\n_window.open();\r\n{code}\r\n2. Run the app\r\n3. Press the \"Press me\" button\r\n4. Press the \"close\" button\r\n\r\nActual result:\r\nThe app becomes non-responsive\r\n\r\nExpected result:\r\nThe window closes and app is still functional", "attachment": [], "flagged": false, "summary": "MobileWeb : Window - Calling open on an already opened window causes the app to become non-responsive", "creator": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Tested with Ti Studio build 2.0.0.201203132050\r\nTi Mob SDK 2.0.0.v20120314090311\r\nOSX Lion 10.7.3\r\niPad 1 OS 4.3.5, Galaxy Tab 10.1 OS 3.0", "comment": { "comments": [ { "id": "186568", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pull Request: https://github.com/appcelerator/titanium_mobile/pull/1685\r\n\r\nThe problem was actually with setting the window to modal, not with opening it twice. The app was perfectly responsive too, technically speaking. If it weren't responsive, you would have gotten a warning from the browser indicating an unresponsive page. What had happened was setting the window to modal caused an extra, empty window to be put on top of the window in question, which covered the button thus blocking all mouse events to it.", "updateAuthor": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-14T22:00:44.000+0000", "updated": "2012-03-14T22:00:44.000+0000" }, { "id": "186614", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Just for clarification purposes, the bug was on our end but was in the modal code, not the open code.", "updateAuthor": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-15T09:44:29.000+0000", "updated": "2012-03-15T09:44:29.000+0000" }, { "id": "213420", "author": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Tested On:\r\nTitanium studio : 2.1.1.201207271312\r\nSDK version : 2.2.0.v20120807144112\r\nAndroid 4.0.4 - default ,chrome 18.0\r\nIphone 4.3.5 - safari mobile\r\nMountain lion(10.8) - chrome 21.0,safari 5.1.4,firefox 14.0.1", "updateAuthor": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-08-08T15:14:42.000+0000", "updated": "2012-08-08T15:14:42.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }