{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular.js/issues/14219","repository_url":"https://api.github.com/repos/angular/angular.js","labels_url":"https://api.github.com/repos/angular/angular.js/issues/14219/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular.js/issues/14219/comments","events_url":"https://api.github.com/repos/angular/angular.js/issues/14219/events","html_url":"https://github.com/angular/angular.js/issues/14219","id":140214068,"number":14219,"title":"browser refresh triggers xhr onabort causing template load failure","user":{"login":"banderberg","id":237191,"avatar_url":"https://avatars.githubusercontent.com/u/237191?v=3","gravatar_id":"","url":"https://api.github.com/users/banderberg","html_url":"https://github.com/banderberg","followers_url":"https://api.github.com/users/banderberg/followers","following_url":"https://api.github.com/users/banderberg/following{/other_user}","gists_url":"https://api.github.com/users/banderberg/gists{/gist_id}","starred_url":"https://api.github.com/users/banderberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/banderberg/subscriptions","organizations_url":"https://api.github.com/users/banderberg/orgs","repos_url":"https://api.github.com/users/banderberg/repos","events_url":"https://api.github.com/users/banderberg/events{/privacy}","received_events_url":"https://api.github.com/users/banderberg/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular/angular.js/labels/component:%20$http","name":"component: $http","color":"d7e102"},{"url":"https://api.github.com/repos/angular/angular.js/labels/component:%20misc%20core","name":"component: misc core","color":"fef2c0"},{"url":"https://api.github.com/repos/angular/angular.js/labels/needs:%20browser%20fix","name":"needs: browser fix","color":"fad8c7"},{"url":"https://api.github.com/repos/angular/angular.js/labels/resolution:%20won't%20fix","name":"resolution: won't fix","color":"0052cc"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/angular/angular.js/milestones/35","html_url":"https://github.com/angular/angular.js/milestones/Purgatory","labels_url":"https://api.github.com/repos/angular/angular.js/milestones/35/labels","id":526241,"number":35,"title":"Purgatory","description":"This milestone is for issues and PRs that weren't accepted yet and we are waiting for more info from the submitter.\r\n\r\nFor issues this typically means that we weren't able to reproduce the issue or we haven't decided yet if a feature request is a good idea at all.\r\n\r\nFor PRs this means that the PR still needs a lot of work and we might not even be interested in merging it because it looks like a non-core feature. We are still waiting for more discussion within the team or more info from the contributor before making the final decision.","creator":{"login":"IgorMinar","id":216296,"avatar_url":"https://avatars.githubusercontent.com/u/216296?v=3","gravatar_id":"","url":"https://api.github.com/users/IgorMinar","html_url":"https://github.com/IgorMinar","followers_url":"https://api.github.com/users/IgorMinar/followers","following_url":"https://api.github.com/users/IgorMinar/following{/other_user}","gists_url":"https://api.github.com/users/IgorMinar/gists{/gist_id}","starred_url":"https://api.github.com/users/IgorMinar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IgorMinar/subscriptions","organizations_url":"https://api.github.com/users/IgorMinar/orgs","repos_url":"https://api.github.com/users/IgorMinar/repos","events_url":"https://api.github.com/users/IgorMinar/events{/privacy}","received_events_url":"https://api.github.com/users/IgorMinar/received_events","type":"User","site_admin":false},"open_issues":33,"closed_issues":872,"state":"open","created_at":"2014-01-04T01:20:50Z","updated_at":"2016-10-05T07:48:51Z","due_on":null,"closed_at":null},"comments":20,"created_at":"2016-03-11T15:33:47Z","updated_at":"2016-10-05T07:48:51Z","closed_at":"2016-10-05T07:48:51Z","body":"I think this is a bug.  I can reproduce it in Chrome and Firefox but not IE.\r\n\r\n\r\nWhen refreshing the browser while angular is in the middle of loading templates, xhr object raises abort event, resulting in the following error:\r\n\r\n`Error: [$compile:tpload] Failed to load template: view2/view2.html (HTTP status: -1 )\r\nhttp://errors.angularjs.org/1.4.9/$compile/tpload?p0=view2%2Fview2.html&p1=-1&p2=\r\n    at angular.js:68\r\n    at handleError (angular.js:17959)\r\n    at processQueue (angular.js:14997)\r\n    at angular.js:15013\r\n    at Scope.$eval (angular.js:16257)\r\n    at Scope.$digest (angular.js:16075)\r\n    at Scope.$apply (angular.js:16365)\r\n    at done (angular.js:10791)\r\n    at completeRequest (angular.js:10995)\r\n    at XMLHttpRequest.requestError (angular.js:10944)`\r\n\r\n\r\nReproducing this is pretty easy.\r\n\r\n1) Install the angular-seed from github\r\n2) Host the angular-seed website - I've used IIS and Nodejs and reproduced this with both\r\n3) Browse the website in Chrome (49.0.2623.87 m)\r\n4) Open Chrome dev tools and view console tab\r\n5) Refresh the website and while it's loading hit refresh again - this may take several tries, it is very much related to timing.  Too early or too late won't work - you have to refresh at the right time during the template loading - I've gotten it down to where I can get it to happen just about every time I try.\r\n6) Watch for the error above.\r\n\r\n\r\nExpected behavior is that no matter how often I refresh or when, the website should load properly with no tpload errors.\r\n\r\n\r\nPlease try to reproduce this and give me your thoughts, it's driving me crazy.  I thought about recording a little screen capture video showing me reproducing it.. if that would be helpful let me know.\r\n\r\n-Barry"},"comment":{"url":"https://api.github.com/repos/angular/angular.js/issues/comments/251605766","html_url":"https://github.com/angular/angular.js/issues/14219#issuecomment-251605766","issue_url":"https://api.github.com/repos/angular/angular.js/issues/14219","id":251605766,"user":{"login":"gkalpak","id":8604205,"avatar_url":"https://avatars.githubusercontent.com/u/8604205?v=3","gravatar_id":"","url":"https://api.github.com/users/gkalpak","html_url":"https://github.com/gkalpak","followers_url":"https://api.github.com/users/gkalpak/followers","following_url":"https://api.github.com/users/gkalpak/following{/other_user}","gists_url":"https://api.github.com/users/gkalpak/gists{/gist_id}","starred_url":"https://api.github.com/users/gkalpak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gkalpak/subscriptions","organizations_url":"https://api.github.com/users/gkalpak/orgs","repos_url":"https://api.github.com/users/gkalpak/repos","events_url":"https://api.github.com/users/gkalpak/events{/privacy}","received_events_url":"https://api.github.com/users/gkalpak/received_events","type":"User","site_admin":false},"created_at":"2016-10-05T07:48:51Z","updated_at":"2016-10-05T07:48:51Z","body":"It seems we are all on the same page :+1:\r\n\r\nWe also discussed this internally and we agree this is not something that should be \"fixed\" in Angular.\r\n<sub>(If the current behavior is deemed undesirable, it is something to be addressed on the browser-level.)</sub>"}}
{"actor":{"display_login":"gkalpak"}}