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

WPT background fetch do not seem aligned with background fetch specification #169

Open
youennf opened this issue Feb 27, 2023 · 0 comments

Comments

@youennf
Copy link

youennf commented Feb 27, 2023

As per specification, https://wicg.github.io/background-fetch/#dom-backgroundfetchmanager-fetch does not reject if individual record fetch fail.
This seems to indicate that CSP, port checks and so on should not trigger rejection of https://wicg.github.io/background-fetch/#dom-backgroundfetchmanager-fetch, but would trigger rejection of individual https://wicg.github.io/background-fetch/#dom-backgroundfetchrecord-responseready.

This does not seem to align with current WPT tests, see for instance mixed-content-and-allowed-schemes.https.window.js, port-blocking.https.window.js or content-security-policy.https.window.js.

We should either update the spec or update the tests.
From a spec point of view, it seems easier to stick with calling fetch as is.
From a WebKit implementation point of view, it seems also easier to stick with the spec.

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

No branches or pull requests

1 participant