{ "id": "88013", "key": "TIMOB-8033", "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-19T22:46:47.000+0000", "created": "2012-03-15T11:00:48.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-mw020912" ], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2017-03-03T23:59:09.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 project and replace the code in app.js with the following\r\n{code}\r\nvar win = Titanium.UI.createWindow({\r\n\t\t\ttitle : 'test',\r\n\t\t\tbackgroundColor : 'white'\r\n\t\t});\r\n\t\tvar web = Ti.UI.createWebView({\r\n\t\t url: 'http://appc.me/test/Echo',\r\n\t\t width: '90%', height: '90%', top: '5%', left: '5%'\r\n\t\t});\r\n\t\twin.add(web);\r\n\t\t\r\n\t\tweb.addEventListener('load', function() {\r\n\t\t // The server returns just 'GET', but iOS forces the web view to be well formed...\r\n\t\t Ti.API.info(web.html);\r\n\t\t // So we'll accept either a well formed HTML or the literal response from the server.\r\n\t\t if (web.html == 'GET' || web.html == 'GET') {\r\n\t\t _window.backgroundColor = '#0f0';\r\n\t\t alert('PASS: I love you forever!');\r\n\t\t }\r\n\t\t // Otherwise... FAIL!\r\n\t\t else {\r\n\t\t _window.backgroundColor = '#f00';\r\n\t\t alert('FAIL: web.html != expected html');\r\n\t\t }\r\n\t\t});\r\nwin.open();\r\n{code}\r\n\r\n2. Run the app\r\n\r\nActual result:\r\nThe content of html is undefinded\r\n\r\nExpected result:\r\nThe content of html is GET", "attachment": [], "flagged": false, "summary": "MobileWeb: WebView - The content of the property \"html\" is undefined after listening for the load event", "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.v20120315091738 hash rec1c5584\r\nOSX Lion 10.7.3\r\niPad 1 OS 4.3.5, Galaxy Tab 10.1 OS 3.0", "comment": { "comments": [ { "id": "187266", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pull Request: https://github.com/appcelerator/titanium_mobile/pull/1751\r\n\r\nNote: this test will still fail with the new implementation for two reasons:\r\n\r\n1) unless the test app itself is running on appc.me, then the test will fail because the iframe is cross-domain\r\n2) Some browsers like to inject extra attributes and remove the tags. For example, Safari returns \"GET\", not \"GET\"", "updateAuthor": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-19T16:34:33.000+0000", "updated": "2012-03-19T16:34:33.000+0000" }, { "id": "409157", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as MobileWeb is no longer supported.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-03T23:59:09.000+0000", "updated": "2017-03-03T23:59:09.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }