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

Test that network errors create resource timing entries #30968

Closed
Tracked by #38
noamr opened this issue Sep 26, 2021 · 1 comment
Closed
Tracked by #38

Test that network errors create resource timing entries #30968

noamr opened this issue Sep 26, 2021 · 1 comment

Comments

@noamr
Copy link
Contributor

noamr commented Sep 26, 2021

See behavior change/clarification in whatwg/fetch#1215

When a network error occurs during fetch, a resource timing entry should still be created, with only the start/end timing to avoid exposing potential cross-origin information.

There are many different scenarios for network errors, they should be sufficiently covered.

@noamr
Copy link
Contributor Author

noamr commented Sep 26, 2021

Tests for network errors for the fetch API:

  • CORS failure
  • CSP failure
  • about:*
  • blob:* non-GET or non-blob
  • Aborted blob request
  • Invalid data:* URL
  • file: URLs
  • unrecognized scheme
  • No follow redirects
  • Bad redirect location
  • More than 20 redirects
  • Redirect to non-HTTP
  • inflight is larger than 64KB
  • Aborted HTTP Request
  • only-if-cached when not in cache
  • Connection failure

Tests for network errors not applicable for the fetch API:

  • nosniff (script only)
  • wrong mime-type (script only)

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

No branches or pull requests

2 participants