{"action":"created","issue":{"url":"https://api.github.com/repos/web-platform-tests/wpt/issues/7933","repository_url":"https://api.github.com/repos/web-platform-tests/wpt","labels_url":"https://api.github.com/repos/web-platform-tests/wpt/issues/7933/labels{/name}","comments_url":"https://api.github.com/repos/web-platform-tests/wpt/issues/7933/comments","events_url":"https://api.github.com/repos/web-platform-tests/wpt/issues/7933/events","html_url":"https://github.com/web-platform-tests/wpt/issues/7933","id":267288140,"node_id":"MDU6SXNzdWUyNjcyODgxNDA=","number":7933,"title":"XHR open-during-abort-processing.htm test is incorrect per the current spec-text.","user":{"login":"wisniewskit","id":419743,"node_id":"MDQ6VXNlcjQxOTc0Mw==","avatar_url":"https://avatars1.githubusercontent.com/u/419743?v=4","gravatar_id":"","url":"https://api.github.com/users/wisniewskit","html_url":"https://github.com/wisniewskit","followers_url":"https://api.github.com/users/wisniewskit/followers","following_url":"https://api.github.com/users/wisniewskit/following{/other_user}","gists_url":"https://api.github.com/users/wisniewskit/gists{/gist_id}","starred_url":"https://api.github.com/users/wisniewskit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wisniewskit/subscriptions","organizations_url":"https://api.github.com/users/wisniewskit/orgs","repos_url":"https://api.github.com/users/wisniewskit/repos","events_url":"https://api.github.com/users/wisniewskit/events{/privacy}","received_events_url":"https://api.github.com/users/wisniewskit/received_events","type":"User","site_admin":false},"labels":[{"id":44516028,"node_id":"MDU6TGFiZWw0NDUxNjAyOA==","url":"https://api.github.com/repos/web-platform-tests/wpt/labels/xhr","name":"xhr","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-10-20T19:56:43Z","updated_at":"2018-09-17T08:53:50Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"In its `onloadstart` handler, the test calls `abort`. This triggers abort step 2, running the `request error steps`. Step 5 of those steps fires a `readystatechange`, which triggers the test's `readystatechange` handler, which calls `open` and `send`. By the time that's done and the `request error steps` resume at step 6, the `upload complete` flag will have been reset to false, and step 6 will not be able to fire `upload.abort` or `upload.loadend` as the test expects.\r\n\r\nGiven that Chrome is the only engine currently passing the test, I feel the test is in error. But if we would like to change the spec to match that behavior, we will need to store the state of the `upload complete` and `upload listener` flags used in `request error steps` 6 before firing the `readystatechange`, in case they are changed by that `readystatechange` (as is happening in this test).\r\n\r\nIn addition, the test is also expecting too few events, as there will be a second `upload.onloadend` for the second `open`-and-`send`, because there is still an upload-related event handler attached to the object (for the check in `send()` step 5). The test should either remove that listener before doing the second `send`, or expect the second event, or the spec needs to change `send()` step 5 to also take into account whether there is a body actually being sent (which seems the most reasonable change to me, but I don't know if that would cause interop issues)."},"comment":{"url":"https://api.github.com/repos/web-platform-tests/wpt/issues/comments/421932976","html_url":"https://github.com/web-platform-tests/wpt/issues/7933#issuecomment-421932976","issue_url":"https://api.github.com/repos/web-platform-tests/wpt/issues/7933","id":421932976,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMTkzMjk3Ng==","user":{"login":"annevk","id":1544111,"node_id":"MDQ6VXNlcjE1NDQxMTE=","avatar_url":"https://avatars0.githubusercontent.com/u/1544111?v=4","gravatar_id":"","url":"https://api.github.com/users/annevk","html_url":"https://github.com/annevk","followers_url":"https://api.github.com/users/annevk/followers","following_url":"https://api.github.com/users/annevk/following{/other_user}","gists_url":"https://api.github.com/users/annevk/gists{/gist_id}","starred_url":"https://api.github.com/users/annevk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/annevk/subscriptions","organizations_url":"https://api.github.com/users/annevk/orgs","repos_url":"https://api.github.com/users/annevk/repos","events_url":"https://api.github.com/users/annevk/events{/privacy}","received_events_url":"https://api.github.com/users/annevk/received_events","type":"User","site_admin":false},"created_at":"2018-09-17T08:53:50Z","updated_at":"2018-09-17T08:53:50Z","author_association":"MEMBER","body":"FWIW, I think I'd prefer to keep the specification as-is, as changing it is always rather involved, and file bugs against Chrome and Edge."}}
{"actor":{"display_login":"annevk"}}