Skip to content

Consider ways in which we could test user agent's resource blocking behaviors. #227

@mikewest

Description

@mikewest

whatwg/fetch#1840 aims to explain user agent interventions that block requests for certain resource types and/or replace potentially harmful responses with something benign. While the exact set of resources against which user agents intervene is not (and likely cannot be) standardized, https://explainers-by-googlers.github.io/script-blocking/#testing suggests one approach to testing which might allow vendors to verify that their interventions are consistently positioned within Fetch, but that infrastructure hasn't yet been built or agreed-upon. In short: we could define web driver hooks to allow specific domains or resources to be blocked by the UA's infrastructure, which should give us the ability to verify the web-facing behavior.

Shims/replacements could likewise be tested if similar hooks were created.

WDYT?

cc @annevk @MayyaSunil

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions