{ "id": "88008", "key": "TIMOB-8031", "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": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2014-04-17T22:12:36.000+0000", "created": "2012-03-15T10:41:36.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": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-04-17T22:12:36.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 change the code in app.js to the following\r\n{code}\r\nvar twWindow = Titanium.UI.createWindow({ \r\n title: 'Michaels Twitter', \r\n backgroundColor: \"#fff\", \r\n color: \"black\", \r\n navBarHidden: true,\r\n fullScreen:true\r\n\r\n});\r\n\r\nvar webview = Ti.UI.createWebView({ \r\n url: \"http://www.twitter.com\", \r\n top: 40 \r\n}); \r\n\r\n\r\ntwWindow.add(webview); \r\ntwWindow.open();\r\n{code}\r\n\r\n2. Run the app for mobile web\r\n\r\nActual result:\r\nA blank page is displayed\r\n\r\nExpected result:\r\nThe Twitter home page is displayed", "attachment": [], "flagged": false, "summary": "MobileWeb: WebView - Adding a webview to a window doesn't show the content of the url specified when creating the webview", "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": "187246", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Twitter sets an option called X-Frame-Options to SAMEORIGIN, which means that twitter.com can only be embedded in an iframe (MobileWeb's version of a webview) if the site of the parent is also twitter.com. Since your test obviously isn't running from twitter.com, the request is failing.\r\n\r\nChange the src to www.appcelerator.com and everything works fine.", "updateAuthor": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-19T15:55:49.000+0000", "updated": "2012-03-19T15:55:49.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }