{ "id": "81258", "key": "TIMOB-5471", "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": "15108", "description": "2013 Sprint 10", "name": "2013 Sprint 10", "archived": true, "released": true, "releaseDate": "2013-05-20" } ], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2013-05-08T07:14:14.000+0000", "created": "2011-10-09T12:37:14.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "api" ], "versions": [ { "id": "11570", "description": "", "name": "Release 1.7.2", "archived": true, "released": true, "releaseDate": "2011-07-21" }, { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" } ], "issuelinks": [], "assignee": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-23T21:13:12.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": "h4.Problem\r\nwebview.reload() bug if website has iframe(s). If website is reloaded from Safari entire site is shown.\r\n\r\nh5.Tested on\r\niOS Simulator 4.3 & iPod 4.2\r\n\r\nh5.Repro sequence\r\n{code:title=app.js}\r\nvar win = Ti.UI.createWindow();\r\n\r\n//webview toolbar buttons\r\nvar btnBack = Ti.UI.createButton({\r\n\twidth: 50,title:'<',\r\n\t//image: '../img/icon_arrow_left.png',\r\n\tenabled: false\r\n});\r\n\r\n\t//event: back\r\n\tbtnBack.addEventListener('click', function(){\r\n\t\twebView.goBack();\r\n });\r\n\r\nvar btnFwd = Ti.UI.createButton({\r\n\twidth: 50,title:'>',\r\n\t//image: '../img/icon_arrow_right.png',\r\n\tenabled: false\r\n});\r\n\r\n\t//event: forward\r\n\tbtnFwd.addEventListener('click', function(){\r\n\t\twebView.goForward();\r\n });\r\n\r\nvar btnReload = Ti.UI.createButton({\r\n\tsystemButton:Titanium.UI.iPhone.SystemButton.REFRESH, \r\n\tvisible: false\r\n});\r\n\r\n\t//event: reload\r\n\tbtnReload.addEventListener('click', function(){\r\n\t\twebView.reload();\r\n });\r\n\r\nvar btnLoading = Ti.UI.createButton({\r\n\tsystemButton:Titanium.UI.iPhone.SystemButton.SPINNER,\r\n});\r\n\r\nvar btnSpace = Titanium.UI.createButton({\r\n\tsystemButton:Titanium.UI.iPhone.SystemButton.FLEXIBLE_SPACE\r\n});\r\n\r\n\r\n//webview\r\nvar webView = Ti.UI.createWebView({\r\n\turl: 'http://www.borsen.dk'\r\n});\r\nwin.add(webView);\r\n\r\n\t//event: before load\r\n\twebView.addEventListener('beforeload',function(e){\r\n\t\twebViewToolbar.items = [btnBack, btnFwd, btnSpace, btnLoading, btnSpace];\r\n\t});\r\n\r\n\r\n\t//event: load\r\n\twebView.addEventListener('load',function(e){\r\n\r\n\t\twebViewToolbar.items = [btnBack, btnFwd, btnSpace, btnReload, btnSpace];\r\n\r\n\t\t//ctrl: back\r\n\t\tif(webView.canGoBack()){\r\n\t\t\tbtnBack.enabled = true;\r\n\t\t} else { \r\n\t\t\tbtnBack.enabled = false;\r\n\t\t}\r\n\r\n\t\t//ctrl: fwd\r\n\t\tif(webView.canGoForward()){\r\n\t\t\tbtnFwd.enabled = true;\r\n\t\t} else { \r\n\t\t\tbtnFwd.enabled = false;\r\n\t\t}\r\n });\r\n\r\n\r\n\r\n//webview toolbar\r\nvar webViewToolbar = Ti.UI.createToolbar({\r\n\titems: [btnBack, btnFwd, btnSpace, btnReload, btnLoading, btnSpace],\r\n\tbottom: 0,\r\n\tbarColor: win.barColor\r\n});\r\nwin.add(webViewToolbar);\r\n\r\nwin.open();\r\n{code}\r\n\r\nh5.Associated HD ticket\r\nAPP-555912", "attachment": [], "flagged": false, "summary": "iOS: webview.reload() bug if website has iframe(s)", "creator": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK: Mobile 1.7.2\r\nPlatform OS: iOS\r\nPlatform OS Version: 4.3 ", "comment": { "comments": [ { "id": "195054", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "Tested with 2.0.1GA2 on the iOS simulator, the issue is still valid. The webpage is rendered fine, however at the bottom, you will see that it is 'truncating' parts of the page. ", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-05-16T14:42:44.000+0000", "updated": "2012-05-16T14:42:44.000+0000" }, { "id": "250756", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "cannot reproduce\r\n\r\nTested with\r\nTitanium Studio, build: 3.0.1.201212181159\r\nTitanium SDK version: 3.1.0\r\niOS iPhone Simulator: iOS SDK version: 6.0", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-08T07:14:14.000+0000", "updated": "2013-05-08T07:14:14.000+0000" }, { "id": "415379", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Can verify this ticket as \"Cannot Reproduce\". Tested with the following environment;\r\niPhone 7 and Simulator (10.2)\r\nMacOS 10.11.6 (15G31)\r\nStudio 4.8.1.201612050850\r\nTi SDK 6.0.3 GA\r\nAppc NPM 4.2.8\r\nAppc CLI 6.1.0\r\nTi CLI 5.0.11\r\nAlloy 1.9.5\r\nArrow 1.10.1\r\nXcode 8.2 (8C38)\r\nNode v4.6.0\r\nJava 1.7.0_80", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-23T21:13:12.000+0000", "updated": "2017-03-23T21:13:12.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }