{ "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\n

example:

\r\n
\r\nvar webview = Ti.UI.createWebView({url:'app://Resources/test2.html'});\r\nTi.UI.currentWindow.add(webview);\r\n
\r\n

test2.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\n

test3.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
{html}", "attachment": [], "flagged": false, "summary": "iOS: Ti.* functions fail within webview after additional page loads.", "creator": { "name": "gabrielcox", "key": "gabrielcox", "displayName": "Gabriel Cox", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "gabrielcox", "key": "gabrielcox", "displayName": "Gabriel Cox", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "124161", "author": { "name": "gabrielcox", "key": "gabrielcox", "displayName": "Gabriel Cox", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Sorry, test2.html above didn't encode as I intended. Trying a\ndifferent method.

\n


\n{mkd-extraction-e98647f60da57ec8b80b213d12dc331f}\n


\n

\n{mkd-extraction-bb3970ac74fe1f13090ef8573691f334}
{html}", "updateAuthor": { "name": "gabrielcox", "key": "gabrielcox", "displayName": "Gabriel Cox", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:37:30.000+0000", "updated": "2011-04-15T02:37:30.000+0000" }, { "id": "124162", "author": { "name": "gabrielcox", "key": "gabrielcox", "displayName": "Gabriel Cox", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Trying \"

\n
\n\"\n\n
\n
\n\n    \n        \n    \n    \n        \n
\n
\n\n\n
\n

Test 2

\n
\n\n        Click to Test3\n    \n
{html}", "updateAuthor": { "name": "gabrielcox", "key": "gabrielcox", "displayName": "Gabriel Cox", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:37:30.000+0000", "updated": "2011-04-15T02:37:30.000+0000" }, { "id": "124163", "author": { "name": "gabrielcox", "key": "gabrielcox", "displayName": "Gabriel Cox", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Got it -- ignore 2 previous comments (wish I could delete\nthem)

\n

test2.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...)

{html}", "updateAuthor": { "name": "gabrielcox", "key": "gabrielcox", "displayName": "Gabriel Cox", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:37:30.000+0000", "updated": "2011-04-15T02:37:30.000+0000" }, { "id": "124164", "author": { "name": "gabrielcox", "key": "gabrielcox", "displayName": "Gabriel Cox", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Not sure who to assign to -- Assuming Jeff as the\ndistributor.

{html}", "updateAuthor": { "name": "gabrielcox", "key": "gabrielcox", "displayName": "Gabriel Cox", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:37:31.000+0000", "updated": "2011-04-15T02:37:31.000+0000" }, { "id": "124165", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Bumping into triage.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:37:31.000+0000", "updated": "2011-04-15T02:37:31.000+0000" }, { "id": "161626", "author": { "name": "vsingh", "key": "vsingh", "displayName": "Vikramjeet Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Bug Scrub: Valid. No Test Case exists. \r\n\r\nTested On: \r\nMac OSX Lion \r\nTiMob Version: 1.7.2 \r\nTiStud Version: 1.0.2 \r\n\r\nDevices used: \r\niPhone 4.3.4", "updateAuthor": { "name": "vsingh", "key": "vsingh", "displayName": "Vikramjeet Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-02T18:15:12.000+0000", "updated": "2011-08-02T18:15:12.000+0000" }, { "id": "214094", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "Issue still reproducible on the iOS simulator using TiSDK 2.2.0v20120810194112.\r\n\r\napp.js\r\n{code}\r\nvar win = Ti.UI.createWindow({backgroundColor: 'white'});\r\n\r\nvar webview = Ti.UI.createWebView({url:'test2.html'});\r\nwin.add(webview);\r\n\r\nwin.open();\r\n{code}\r\n\r\ntest2.html\r\n{code}\r\n\r\n \r\n \r\n \r\n \r\n

Test 2

\r\n Click to Test3\r\n \r\n\r\n{code}\r\n\r\ntest3.html\r\n{code}\r\n\r\n \r\n \r\n \r\n \r\n

Test 3

\r\n \r\n\r\n{code}", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-08-13T11:56:55.000+0000", "updated": "2012-08-13T11:56:55.000+0000" }, { "id": "422917", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I am unable to reproduce this issue with the following environment;\r\niPhone 7 (10.2)\r\nStudio 4.9.0.201705302345\r\nTi SDK 6.1.1.v20170623141152\r\nAppc NPM 4.2.9\r\nAppc CLI 6.2.1\r\nTi CLI 5.0.13\r\nAlloy 1.9.11\r\nArrow 2.0.0\r\nXcode 8.2 (8C38)\r\nNode v4.8.2\r\nJava 1.8.0_131", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-26T23:22:13.000+0000", "updated": "2017-06-26T23:22:13.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }