Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't fire "progress" event for sync XHR #208

Merged
merged 1 commit into from May 8, 2018

Conversation

ricea
Copy link
Contributor

@ricea ricea commented May 8, 2018

Only fire a "progress" event during "handle response end-of-body" for
asynchronous XHR. This matches existing browser behaviour.

Test at web-platform-tests/wpt#10887.

Closes #207.


Preview | Diff

Only fire a "progress" event during "handle response end-of-body" for
asynchronous XHR. This matches existing browser behaviour.

Test at web-platform-tests/wpt#10887.

Closes whatwg#207.
@annevk
Copy link
Member

annevk commented May 8, 2018

Apart from Firefox, right?

@ricea
Copy link
Contributor Author

ricea commented May 8, 2018

Firefox seems to be consistently passing the test I wrote, so its compatible, I guess?

When I tested it before I was using the developer console, which can have odd side effects.

Edit: The test was wrong. Having updated the test, Firefox consistently passes on the main thread and fails in a worker. I didn't test workers earlier, so I can imagine some other browsers might have the same issue.

@annevk
Copy link
Member

annevk commented May 8, 2018

annevk pushed a commit to web-platform-tests/wpt that referenced this pull request May 8, 2018
@annevk annevk merged commit 62b1bf8 into whatwg:master May 8, 2018
@annevk
Copy link
Member

annevk commented May 8, 2018

Thanks!

moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request May 16, 2018
…vent, a=testonly

Automatic update from web-platform-testsXHR: sync XMLHttpRequest does not fire an event named progress

For whatwg/xhr#208.
--

wpt-commits: 10f586a6d2f606b86310ba05da18ed13a78c67f4
wpt-pr: 10887
mcmanus pushed a commit to mcmanus/gecko that referenced this pull request May 17, 2018
…vent, a=testonly

Automatic update from web-platform-testsXHR: sync XMLHttpRequest does not fire an event named progress

For whatwg/xhr#208.
--

wpt-commits: 10f586a6d2f606b86310ba05da18ed13a78c67f4
wpt-pr: 10887
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Oct 3, 2019
…vent, a=testonly

Automatic update from web-platform-testsXHR: sync XMLHttpRequest does not fire an event named progress

For whatwg/xhr#208.
--

wpt-commits: 10f586a6d2f606b86310ba05da18ed13a78c67f4
wpt-pr: 10887

UltraBlame original commit: 816d4ef0a3dea89726812659ab06b401a4d7f94e
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Oct 3, 2019
…vent, a=testonly

Automatic update from web-platform-testsXHR: sync XMLHttpRequest does not fire an event named progress

For whatwg/xhr#208.
--

wpt-commits: 10f586a6d2f606b86310ba05da18ed13a78c67f4
wpt-pr: 10887

UltraBlame original commit: 816d4ef0a3dea89726812659ab06b401a4d7f94e
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Oct 3, 2019
…vent, a=testonly

Automatic update from web-platform-testsXHR: sync XMLHttpRequest does not fire an event named progress

For whatwg/xhr#208.
--

wpt-commits: 10f586a6d2f606b86310ba05da18ed13a78c67f4
wpt-pr: 10887

UltraBlame original commit: 816d4ef0a3dea89726812659ab06b401a4d7f94e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants