Skip to content

"should X be blocked" is a bad pattern #1714

Open
@annevk

Description

@annevk

What is the issue with the Fetch Standard?

  1. These are not should requirements. They are musts.
  2. They return non-Infra values.
  3. The usage of headings and question marks seems to lead to some bugs, such as not being able to navigate to the caller of https://fetch.spec.whatwg.org/#should-response-to-request-be-blocked-due-to-mime-type?

Ideally we'd change Fetch, CSP, and Mixed Content around the same time so we can have this continue to be somewhat consistent.

Maybe something like:

To determine if a response response to a request request is blocked due to its MIME type:

  1. ...
  2. Return true.

@antosart @carlosjoan91 thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions