{ "id": "99048", "key": "TIMOB-10488", "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": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-10-24T07:37:46.000+0000", "created": "2012-08-11T11:57:16.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "api", "community" ], "versions": [ { "id": "13572", "description": "Release 2.1.1", "name": "Release 2.1.1", "archived": true, "released": true, "releaseDate": "2012-07-31" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2016-11-17T00:11:36.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": "h3. Expected\r\n\r\nwebView returns `true` if loading, `false` if not.\r\n\r\n\r\nh3. Actual\r\n\r\nwebView always returns null\r\n\r\n\r\nh3. Testcase\r\n\r\nClick around on some links and see that it only reports `` in Studio.\r\n\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow();\r\nvar webView = Ti.UI.createWebView({\r\n\turl: 'http://appcelerator.com'\r\n});\r\n\r\nsetInterval(function() {\r\n\tTi.API.log( webView.loading );\r\n}, 500);\r\n\r\nwebView.addEventListener('beforeload', function() {\r\n\t\tTi.API.log( webView.loading );\r\n});\r\n\r\nwebView.addEventListener('load', function() {\r\n\t\tTi.API.log( webView.loading );\r\n});\r\n\r\nwin.add( webView );\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: webView.loading always returns null", "creator": { "name": "mofle", "key": "mofle", "displayName": "Sindre Sorhus", "active": true, "timeZone": "Europe/Oslo" }, "subtasks": [], "reporter": { "name": "mofle", "key": "mofle", "displayName": "Sindre Sorhus", "active": true, "timeZone": "Europe/Oslo" }, "environment": "Titanium Studio, build: 2.1.1.201207271312\r\nTitanium SDK 2.1.1GA\r\niOS Simulator 5.1", "closedSprints": [ { "id": 741, "state": "closed", "name": "2016 Sprint 22 SDK", "startDate": "2016-10-22T00:02:29.945Z", "endDate": "2016-11-05T00:02:00.000Z", "completeDate": "2016-11-07T04:38:58.335Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "240338", "author": { "name": "mofle", "key": "mofle", "displayName": "Sindre Sorhus", "active": true, "timeZone": "Europe/Oslo" }, "body": "bump", "updateAuthor": { "name": "mofle", "key": "mofle", "displayName": "Sindre Sorhus", "active": true, "timeZone": "Europe/Oslo" }, "created": "2013-03-01T09:41:31.000+0000", "updated": "2013-03-01T09:41:31.000+0000" }, { "id": "250292", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "issue reproduces\n\nTested with\nTitanium Studio, build: 3.0.1.201212181159\nTitanium SDK version: 3.1.0\niOS iPhone Simulator: iOS SDK version: 6.0", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-06T11:52:20.000+0000", "updated": "2013-05-06T11:52:20.000+0000" }, { "id": "399286", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/8523\r\nPR (unit-test): https://github.com/appcelerator/titanium-mobile-mocha-suite/pull/5\r\n\r\nThere was an unexposed and unused \"isLoading\" method in the view. I changed it to match the property and exposed it to the proxy.\r\n\r\nTest-case:\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow();\r\nvar webView = Ti.UI.createWebView({\r\n url: 'http://appcelerator.com'\r\n});\r\n\r\nTi.API.log(webView.loading); // false\r\n\r\nwebView.addEventListener('beforeload', function() {\r\n Ti.API.log(webView.loading); // false\r\n});\r\n\r\nwebView.addEventListener('load', function() {\r\n Ti.API.log(webView.loading); // true\r\n});\r\n\r\nwin.add(webView);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-10-18T19:50:14.000+0000", "updated": "2016-10-18T20:00:20.000+0000" }, { "id": "401310", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Using the following environment:\r\nNode Version: 4.5.0\r\nMac OS: 10.12.1\r\nAppc CLI: 6.0.0\r\nAppc CLI NPM: 4.2.8\r\nTitanium SDK version: 6.1.0.v20161116071014\r\nAppcelerator Studio, build: 4.8.0.201611121409\r\nXcode 8.1 GM\r\n\r\n I was able to reproduce the issue with SDK 6.0.0. I created an app using the demo code in the description, and saw that the log messages was showing \"null\" every 500ms. I tried this on both Simulator and Device. \r\n I then tried the code with SDK version 6.1.0.v20161116071014, and found that messages on the console were showing either 0 or 1 (as expected); no \"null\" outputs were seen. This was tried on Device iOS 10.1.1 and Simulator iOS 10.1.", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-11-17T00:11:13.000+0000", "updated": "2016-11-17T00:11:13.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }