{ "id": "62654", "key": "TIMOB-2022", "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": "12088", "description": "", "name": "Sprint 2011-48", "archived": true, "released": true, "releaseDate": "2011-12-05" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2011-12-04T13:11:29.000+0000", "created": "2011-04-15T03:08:20.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [], "versions": [ { "id": "12570", "name": "Release 1.7.5", "archived": true, "released": true, "releaseDate": "2011-11-02" } ], "issuelinks": [], "assignee": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-02T22:49:45.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}

The enclosed app.js, win.js, script.js, test.htm files\r\nillustrate a problem that only occurred in releases after Titanium\r\nSDK 1.3.2.

\r\n

If you create an app with these files, using SDK 1.3.2 and\r\niPhone SDK 4.1, it will work perfectly in the emulator and on an\r\nApple device.

\r\n

If you compile using any Titanium SDK after 1.3.2 (including\r\n1.4.1.1 and 1.4.2), the app will work perfectly in the emulator but\r\nwill fail on the device.

\r\n

The enclosed sample uses evalJS(), but also failed in earlier\r\nversions, in which test.htm's onload event was used instead.

{html}\r\n", "attachment": [ { "id": "24384", "filename": "testLinkCrash_2011-11-30-094234_qgaombp.crash", "author": { "name": "qgao", "key": "qgao", "displayName": "Qing Gao", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-30T09:48:49.000+0000", "size": 40137, "mimeType": "application/octet-stream" }, { "id": "18087", "filename": "webvieweventtest.zip", "author": { "name": "lee", "key": "lee", "displayName": "Lee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:08:21.000+0000", "size": 2043, "mimeType": "application/zip" } ], "flagged": false, "summary": "iOS: Webview Fire/Listen event problems that started after SDK 1.3.2", "creator": { "name": "lee", "key": "lee", "displayName": "Lee", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "lee", "key": "lee", "displayName": "Lee", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iOS5.0 Simulator, Xcode4.2", "comment": { "comments": [ { "id": "127279", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Tested 1.6.0GM, test in bugtests. It brought a tear to my\neye.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:08:21.000+0000", "updated": "2011-04-15T03:08:21.000+0000" }, { "id": "127280", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Hold our horses; it works OUTSIDE of bugtests... but not in\nit?!? Looks like we need some R&D.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:08:21.000+0000", "updated": "2011-04-15T03:08:21.000+0000" }, { "id": "133368", "author": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Post 1.7.0 investigation. Please regress.", "updateAuthor": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-05-10T15:55:51.000+0000", "updated": "2011-05-10T15:55:51.000+0000" }, { "id": "172348", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This occurs with SDK 1.8.0.1.v20111111081456, iPad 1 (iOS 4.3.5)", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-11T11:45:40.000+0000", "updated": "2011-11-11T11:45:40.000+0000" }, { "id": "174301", "author": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Please see a very simple example here: http://pastie.org/2905998\r\n\r\nIn the example app, enter a URL in the textarea and hit return. It will create and new webview/window and open in. When a URL is used that will throw an error (\"https://www.yahoo.org\" and \"http://www.yahoo.com,\" are examples), the app will crash under iOS5. Removing the error eventlistener prevents this effect.", "updateAuthor": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-30T09:25:00.000+0000", "updated": "2011-11-30T09:25:49.000+0000" }, { "id": "174779", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is not a bug. This occurs as result of how we bundle our app. If any js script file needs to be included in the file like in this instance where an html document is trying to access it's javascript file, please make sure to put it inside the Resources folder so that it doesn't get bundled into the app and only get copied over. \r\n\r\nSo the solution for this problem would be to place the script.js file inside Resources > iphone> and run the same app. Everything should work fine.\r\n\r\nNOTE:This happens only on device as, during sim runs, only soft links are generated and nothing happens to the actual file and during bundling the all the js files are changed over.", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-04T13:10:57.000+0000", "updated": "2011-12-04T13:10:57.000+0000" }, { "id": "408605", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-02T22:49:45.000+0000", "updated": "2017-03-02T22:49:45.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }