-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Editorial: fix usage of processResponseConsumeBody #8412
Editorial: fix usage of processResponseConsumeBody #8412
Conversation
97445cf
to
07fb2c0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you as always!
I added a commit to also fix the signature for synchronous fetching, by removing synchronous fetching (since it's not supported anymore) and pausing while waiting for the result of a normal fetch. Since there is now a single type of fetch, I reverted part of #8328: there is now again a single "perform the fetch" hook type, which accepts a callback that takes response and bytes. This is exactly how it works for the default fetch. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only a few minor nits. Thanks so much, again!! Ping the thread when service workers and manifest are ready to go. (Or if you decide you'd rather let the maintainers of those specs update themselves, which is totally valid; you've done so much already.)
Done! I also updated w3c/ServiceWorker#1658, since I already had that PR open, and I would appreciate also a review on that side even if you are not the maintainer of that spec (but the changes are very similar to the changes in this PR). |
This commit implements the HTML changes done in whatwg/html#8412: "processing a manifest" takes a response whose body has been already consumed, so it needs to take the body bytes as a separate parameter.
This commit implements the HTML changes done in whatwg/html#8412: "processing a manifest" takes a response whose body has been already consumed, so it needs to take the body bytes as a separate parameter. Co-authored-by: Marcos Cáceres <[email protected]>
Ref #7996.
I didn't updatesynchronous perform the fetch
steps, because I couldn't find what's the signature of Fetch when using it synchronously.TODO:
bodyBytes
instead of trying to readresponse
's body. chore: update "processing a manifest"'s signature w3c/manifest#1058/infrastructure.html ( diff )
/links.html ( diff )
/semantics.html ( diff )
/webappapis.html ( diff )
/workers.html ( diff )
/worklets.html ( diff )