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

Fetch KeepAlive Quota Tests #4878

Merged
merged 1 commit into from
Feb 25, 2017
Merged

Fetch KeepAlive Quota Tests #4878

merged 1 commit into from
Feb 25, 2017

Conversation

Brandr0id
Copy link
Member

Initial add of quota tests for keepalive fetch requests.

Initial add of quota tests for keepalive fetch requests.
@wpt-pr-bot
Copy link
Collaborator

Notifying @jdm and @youennf. (Learn how reviewing works.)

@ghost
Copy link

ghost commented Feb 16, 2017

Chrome (unstable channel)

Testing web-platform-tests at revision 9e878bd
Using browser at version 58.0.3004.3 dev
Starting 10 test iterations
All results were stable

All results

1 test ran
/fetch/api/request/request-keepalive-quota.html
Subtest Results
OK
A Keep-Alive fetch() with a body over the Quota Limit should reject. FAIL
A Keep-Alive fetch() should not be allowed if the Quota is used up. FAIL
A Keep-Alive fetch() should return only it's allocated Quota upon promise resolution. PASS
A Keep-Alive fetch() with a body at the Quota Limit should succeed. PASS
A Keep-Alive fetch() should return it's allocated Quota upon promise resolution. PASS
A Keep-Alive fetch() with a small body should succeed. PASS

@ghost
Copy link

ghost commented Feb 16, 2017

Firefox (nightly channel)

Testing web-platform-tests at revision 9e878bd
Using browser at version BuildID 20170123125947; SourceStamp 36486fdc3813ef7943ae5b07b4128866d1938a6c
Starting 10 test iterations
All results were stable

All results

1 test ran
/fetch/api/request/request-keepalive-quota.html
Subtest Results
OK
A Keep-Alive fetch() with a body over the Quota Limit should reject. FAIL
A Keep-Alive fetch() should not be allowed if the Quota is used up. FAIL
A Keep-Alive fetch() should return only it's allocated Quota upon promise resolution. PASS
A Keep-Alive fetch() with a body at the Quota Limit should succeed. PASS
A Keep-Alive fetch() should return it's allocated Quota upon promise resolution. PASS
A Keep-Alive fetch() with a small body should succeed. PASS

@annevk
Copy link
Member

annevk commented Feb 16, 2017

Thanks, I already reviewed these in #4788 and they still look good. I'd like to land them together with whatwg/fetch#419 which still needs a bit of rebasing work.

@annevk annevk merged commit 4d1e656 into web-platform-tests:master Feb 25, 2017
annevk pushed a commit to whatwg/fetch that referenced this pull request Feb 25, 2017
Requests with keepalive flag set are allowed to outlive the environment settings object. We want to make sure that such requests do not negatively impact the user experience when a page is unloaded, etc.

This limits the amount of (body) bytes that can be inflight at any point when the request has the keepalive flag set; this flag is also set by sendBeacon().

Background: w3c/beacon#39.

Tests: web-platform-tests/wpt#4878.
@annevk
Copy link
Member

annevk commented Feb 25, 2017

Thanks again for writing these!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants