{ "id": "171528", "key": "TIMOB-25975", "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": "2019-04-01T21:22:39.000+0000", "created": "2018-04-17T07:26:16.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "android", "native_issue", "webview" ], "versions": [ { "id": "19906", "description": "", "name": "Release 6.3.0", "archived": false, "released": true, "releaseDate": "2017-11-01" }, { "id": "19957", "description": "", "name": "Release 7.1.0", "archived": false, "released": true, "releaseDate": "2018-03-14" } ], "issuelinks": [], "assignee": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2019-04-01T21:23:02.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "Hi,\r\nI am trying to display the youtube video with embedded URL.\r\n\r\nHere I am trying to assign the embedded URL to URL property of Webview.\r\nThis is running fine on iOS but on Android, we are having some issues.\r\nPlease find the log we are getting while doing this.\r\n\r\n[INFO] : I/TiWebChromeClient.console: (main) [456,456] Error parsing header X-XSS-Protection: 1; mode=block; report=https://www.google.com/appserve/security-bugs/log/youtube: insecure reporting URL for secure page at character position 22. The default protections will be applied. (0:https://www.youtube.com/embed/xyz?list=xyz-l)\r\n\r\nCan you please try on your end and let me know if this is valid.", "attachment": [ { "id": "65061", "filename": "Bildschirmfoto 2018-04-18 um 12.37.34.png", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-04-18T10:40:08.000+0000", "size": 605175, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: Embedded youtube video is not playing due to Chrome bug", "creator": { "name": "shumne", "key": "shumne", "displayName": "shumne", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "shumne", "key": "shumne", "displayName": "shumne", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Ti SDK 6.3.0GA.\r\nCLI 6.3.0\r\nAppc Studio 5.0.0\r\n", "closedSprints": [ { "id": 1124, "state": "closed", "name": "2019 Sprint 8", "startDate": "2019-03-31T18:03:00.000Z", "endDate": "2019-04-12T18:03:00.000Z", "completeDate": "2019-04-12T19:04:50.175Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "436933", "author": { "name": "shumne", "key": "shumne", "displayName": "shumne", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi,\r\nPlease find the code snippet here.\r\nIndex.xml:\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nindex.js:\r\n$.index.open();\r\n\r\nLet me know if you need more details.", "updateAuthor": { "name": "shumne", "key": "shumne", "displayName": "shumne", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-04-17T08:05:13.000+0000", "updated": "2018-04-17T08:05:13.000+0000" }, { "id": "436935", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "It is a known bug for Chromium / Google Chrome, please read more [here|https://stackoverflow.com/a/48745051/5537752].", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-04-17T09:03:42.000+0000", "updated": "2018-04-17T09:03:42.000+0000" }, { "id": "436936", "author": { "name": "shumne", "key": "shumne", "displayName": "shumne", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Hans,\r\n\r\nI visited this page earlier. and I know this is a bug from chrome.\r\nBut when I tried the this embedded URL in the chrome browser it is working fine.\r\nSo not sure if this is somewhat related to Chrome or Titanium/alloy.\r\n\r\nIs there any workaround? it should work on Android because on iOS it is working fine!", "updateAuthor": { "name": "shumne", "key": "shumne", "displayName": "shumne", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-04-17T09:24:35.000+0000", "updated": "2018-04-17T09:29:23.000+0000" }, { "id": "436937", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "It is an issue we cannot influence, since we simply call the API's Android provides. Note: The Chrome API on Android (for external apps) is different to the Chrome you see on Android. And the fact that it works on iOS does not really help here either, since it's a completely different platform. Note that this issue also happens for other app frameworks, so the only thing I could think of right now is getting in touch with Google to fix it, same as you did here. [~jquick] additional thoughts?\r\n\r\n*EDIT*: It seems like Google fixed it 3 weeks ago in their nightly build, so it will likely be fixed in the Android SDK soon as well. Note: I even see the issue on Desktop chrome browsers.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-04-17T09:36:07.000+0000", "updated": "2018-04-17T09:40:26.000+0000" }, { "id": "436938", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Reopening to track the issue and provide possible workarounds.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-04-17T09:38:24.000+0000", "updated": "2018-04-17T09:38:24.000+0000" }, { "id": "436952", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Like Hans has stated, Google's Chrome browser app and the Android OS' native WebView are for the most part separate implementations. Bugs that happen in one and not the other are unfortunately common. It has nothing to do with Titanium.\r\n\r\nAs of Android 4.4, they do share the same rendering engine and JavaScript engine as documented by Google (link below). But this is simply for consistent rendering of web pages. They may not share the same code when it comes to HTTP requests and response handling. This is what you're running into. (Also I find that Google's WebView has more hardware acceleration bugs compared to the Chrome app as well.)\r\nhttps://developer.chrome.com/multidevice/webview/overview\r\n\r\nI believe the Google bug you're running into is this...\r\nhttps://bugs.chromium.org/p/chromium/issues/detail?id=807304\r\n\r\nSounds like a cross-domain issue. I remember iframe videos working fine for local HTML files. Perhaps as a work-around you can distribute your hosting page as an embedded HTML file with your app?\r\n_(I don't think there is anything we can do about this since it's a bug on Google's end. So, you'll have to find a work-around.)_", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-04-17T19:38:24.000+0000", "updated": "2018-04-17T19:38:24.000+0000" }, { "id": "436954", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Out of curiosity, does the following webpage's iframe YouTube video work for you? It does for me.\r\nhttps://www.w3schools.com/html/tryit.asp?filename=tryhtml_youtubeiframe_loop\r\n", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-04-17T19:58:40.000+0000", "updated": "2018-04-17T19:58:40.000+0000" }, { "id": "436966", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "The following workaround works for me:\r\n*embed.html*\r\n{code:html}\r\n\r\n\r\n \r\n \r\n \r\n \r\n