{ "id": "93028", "key": "TIMOB-9478", "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": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-07-03T02:32:30.000+0000", "created": "2012-06-11T05:01:33.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "api", "module_webview", "qe-ios060112", "qe-testadded" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-07-03T14:39:33.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": "WebView doesn't render correctly when Window with Webview is closed and reopened.\r\n\r\nThis is not a regression.This occurs as far as 1.8.2.\r\n\r\nSteps to Reproduce:\r\n\r\n1. Install the app on your device and launch it.\r\n2. Press Open Webview button.\r\n3. Press close button.\r\n4. Click on Open WebView Button again.\r\n\r\napp.js\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor : 'blue'\r\n})\r\nvar button = Ti.UI.createButton({\r\n title : 'Open WebView'\r\n});\r\n\r\n\r\n var browser = Ti.UI.createWebView();\r\n var html = '';\r\n button.addEventListener('click', function() {\r\n var w = Ti.UI.createWindow({\r\n fullscreen : true\r\n });\r\n\r\n var wButton = Ti.UI.createButton({\r\n title : 'Close',\r\n bottom : 0,\r\n right : 0,\r\n height : '10%',\r\n width : '20%'\r\n });\r\n\r\n wButton.addEventListener('click', function() {\r\n //w.remove(browser)\r\n //browser=null;\r\n //browser = Titanium.UI.createWebView();\r\n w.close();\r\n });\r\n\r\n w.add(browser);\r\n w.add(wButton);\r\n w.open();\r\n browser.html = html;\r\n\r\n});\r\n\r\nwin.add(button);\r\nwin.open();\r\n{code}\r\n\r\nActual Result:\r\nAfter step 4,the WebView doesn't opens up correctly and it shows the first window. This happens only when WebView is opened for the second time otherwise it works properly.\r\n\r\nExpected Result:\r\nAfter step 4,the webview should opens up correctly everytime it is clicked. ", "attachment": [], "flagged": false, "summary": "iOS:WebView - WebView doesn't render correctly when Window with Webview is closed and reopened.", "creator": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "subtasks": [], "reporter": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "environment": "Tested with Titanium SDK: 2.1.0.v20120608174150\r\nTested with Titanium Studio: 2.1.0.201206081630\r\nPlatform & version: iOS (5.1)\r\nDevice Details: iPhone 4S.\r\nHost Operating System: OSX 10.7.3\r\n", "comment": { "comments": [ { "id": "199751", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Probably fixed by the fix for TIMOB-9359/TIMOB-9527", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-06-22T10:06:16.000+0000", "updated": "2012-06-22T10:06:16.000+0000" }, { "id": "200391", "author": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as fixed. Tested and verified with:\r\nTitanium Studio, build: 2.1.0.201206251749\r\nTitanium SDK: 2.1.0.v20120626104306\r\nDevice: iPad 3rd gen (5.1.1)", "updateAuthor": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-26T14:04:05.000+0000", "updated": "2012-06-26T14:04:05.000+0000" }, { "id": "201311", "author": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Reopening to update labels.", "updateAuthor": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2012-07-03T02:31:28.000+0000", "updated": "2012-07-03T02:31:28.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }