{ "id": "97743", "key": "TIMOB-10069", "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": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2017-05-01T22:21:07.000+0000", "created": "2012-07-20T23:27:54.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "anvil", "core", "linvalid" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-05-22T22:14:31.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" }, { "id": "10207", "name": "Tooling" } ], "description": "Launching browser for mobile web on Jelly Bean can cause Anvil to freeze and browser tests to never run. One change that needs to be made is to no longer specify the activity via the \"-n\" argument and let the OS choose the activity to handle the intent since the name of the browser activity is different on 4.1.\r\n\r\nAnother problem is that even with the above change, there appears to be some kind of new timing issue on 4.1 that despite the intent being handled, the tests never run. Might be due to a state shift when resuming the browser from a previous run test but appears to be a timing issue in some form since the behavior is not consistent.\r\n", "attachment": [], "flagged": false, "summary": "Anvil: launching browser for mobile web on Jelly Bean can cause Anvil to freeze and browser tests to never run", "creator": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "environment": "Galaxy Nexus 4.1", "comment": { "comments": [ { "id": "208831", "author": { "name": "jenglish", "key": "jenglish", "displayName": "Jeff English", "active": true, "timeZone": "America/Chicago" }, "body": "Running the ti.cloud Anvil tests for MobileWeb on an Android 2.3.4 device, I discovered that the default browser does not properly support CORS requests. Thus, all of the tests are failing.\r\n\r\nI installed the Firefox browser, set it as the default browser, and re-ran the tests. Anvil was still invoking the built-in browser. I modified the mobileweb.js file to directly invoke the firefox browser and re-ran the tests. Anvil then invoked the Firefox browser to run the tests -- ALL of the tests PASSED using the Firefox browser on device. It also ran much faster.\r\n\r\nModifying Anvil to invoke the default browser would be one step toward enabling us to test different browsers on device. A further option would be to allow an option to select the browser for a configuration (either via a command line argument or tiapp.xml setting in the configuration folder).\r\n\r\nI removed the -n option in mobileweb.js to allow Anvil to invoke the default browser\r\n", "updateAuthor": { "name": "jenglish", "key": "jenglish", "displayName": "Jeff English", "active": true, "timeZone": "America/Chicago" }, "created": "2012-07-22T14:21:50.000+0000", "updated": "2012-07-22T14:21:50.000+0000" }, { "id": "213019", "author": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "body": "The -n option has been changed in the recent driver implementation. The firefox configuration should be done on device IMO via setting firefox as the default browser.", "updateAuthor": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "created": "2012-08-06T15:40:45.000+0000", "updated": "2012-08-06T15:40:45.000+0000" }, { "id": "418465", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as \"Won't Fix\" as Anvil is no longer supported.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-05-01T22:21:07.000+0000", "updated": "2017-05-01T22:21:07.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }