{ "id": "174124", "key": "TIMOB-27396", "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": "20832", "name": "Release 8.3.0", "archived": false, "released": true, "releaseDate": "2019-11-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-10-25T15:43:59.000+0000", "created": "2019-09-12T12:56:29.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "WKWebView", "engSchedule", "ios", "parity" ], "versions": [ { "id": "19882", "name": "Release 8.0.0", "archived": false, "released": true, "releaseDate": "2019-03-14" }, { "id": "20827", "name": "Release 8.2.0", "archived": false, "released": true, "releaseDate": "2019-09-19" } ], "issuelinks": [], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2019-10-25T15:43:59.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": "Ticket created on behalf of Giorgio Mandolini \r\n\r\nWith the code below behavior is not the same on iOS as it is on Android.\r\n\r\n{code}\r\n$.webview.setHtml('', {\r\n baseURL: 'https://www.google.com/'\r\n});\r\n{code}\r\n\r\nThe alert(window.location) outputs {{https://www.google.com/}} on Android, while on iOS the output is {{file:///https://www.google.com/}}\r\n\r\nI found this strange behaviour because I'm trying to insert 3rd party embeds, often without success because they internally use relative protocol URLs that are eventually resolved as file:// instead of https://.\r\n\r\nThis was expected on 7.X, because of the absence of baseURL param, but on 8.X I was expected that baseURL would reflect on window.location (like it happens on Android).\r\n\r\nPR: https://github.com/appcelerator/titanium_mobile/pull/11213\r\n", "attachment": [], "flagged": false, "summary": "iOS WKWebView: fix inverted condition on baseURL construction", "creator": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "environment": "iOS with SDK 8.0.0.GA and higher", "comment": { "comments": [ { "id": "451882", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/11213", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-10-07T22:00:06.000+0000", "updated": "2019-10-07T22:00:06.000+0000" }, { "id": "452036", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed. Waiting on Jenkins build", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-10-14T18:29:04.000+0000", "updated": "2019-10-14T18:29:04.000+0000" }, { "id": "452170", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "merged to master", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2019-10-21T19:28:25.000+0000", "updated": "2019-10-21T19:28:25.000+0000" }, { "id": "452266", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket, fix verified in SDK version 8.3.0.v20191023125529.\r\n\r\nTest and other information can be found at:\r\nhttps://github.com/appcelerator/titanium_mobile/pull/11213", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-10-25T15:43:51.000+0000", "updated": "2019-10-25T15:43:51.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }