Bug 168865
| Summary: | [Fetch API] Support keepalive flag and enforce limit on inflight keepalive bytes | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Ilya Grigorik <igrigorik> |
| Component: | WebCore Misc. | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED CONFIGURATION CHANGED | ||
| Severity: | Normal | CC: | annevk, dpaddock, philip, wangxgwxg, zcorpan |
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Ilya Grigorik
https://github.com/whatwg/fetch/pull/419
> 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 set by
> sendBeacon.
Expected results:
Webkit should support the keepalive flag & enforce the inflight byte limit.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Thomas Wang
Is this already implemented? WPT are passing on Safari
- https://wpt.fyi/results/fetch/api/basic/keepalive.html
- https://wpt.fyi/results/fetch/api/request/request-keepalive-quota.html%3Finclude%3Dslow-3
Anne van Kesteren
Yeah, there's an implementation of keepalive in WebKit.