{ "id": "61468", "key": "TIMOB-836", "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": "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": "2017-06-26T23:22:13.000+0000", "created": "2011-04-15T02:37:30.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "11233", "name": "Release 1.6.0", "archived": true, "released": true, "releaseDate": "2011-02-23" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-06-26T23:22:13.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": "{html}
Ti.* functions fail within webview after additional page loads.\r\nThis can be reproduced by creating links with to an additional page\r\nwith a call like Ti.API.info(\"message\"). I have only tried this on\r\niPhone, but it may be elsewhere. This affects an Oauth\r\nimplementation since a redirect to a callback url is used at the\r\nend of the authorization.
\r\nexample:
\r\n\r\nvar webview = Ti.UI.createWebView({url:'app://Resources/test2.html'});\r\nTi.UI.currentWindow.add(webview);
\r\n
\r\ntest2.html
\r\n\r\n<html>\r\n <head>\r\n <script>\r\n Ti.API.info(\"in test2.html\"); // console will show \"in test2.html\"\r\n </script>\r\n </head>\r\n <body>\r\n <h1>Test 2</h1>\r\n <a href='/test3.html'>Click to Test3</a>\r\n </body>\r\n</html>
\r\n
\r\ntest3.html
\r\n\r\n<html>\r\n <head>\r\n <script>\r\n Ti.API.info(\"in test3.html\"); // PROBLEM: console will show nothing...\r\n </script>\r\n </head>\r\n <body>\r\n <h1>Test 3</h1>\r\n </body>\r\n</html>
\r\n
Sorry, test2.html above didn't encode as I intended. Trying a\ndifferent method.
\n
\n
Got it -- ignore 2 previous comments (wish I could delete\nthem)
\ntest2.html
\n\n<head>\n <script>\n Ti.API.info(\"in test2.html\"); // shows \"in test2.html\"\n</script>\n</head>\n<body>\n <h1>Test 2</h1>\n <a href=\"test3.html\">Click to Test3</a>\n</body>
\n
\n(now I see the \"preview\" -- sorry I'm new to this...)
Not sure who to assign to -- Assuming Jeff as the\ndistributor.
Bumping into triage.