web-platform-tests / web-platform-tests/rfcs

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

Open
#227 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
110
Forks
90
PR merge metrics
No merged PRs in 30d

Description

https://github.com/whatwg/fetch/pull/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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the Fetch pull request #1840 and the script-blocking testing explainer linked in the issue. Define the proposed WebDriver hooks for UA resource blocking and shims, then establish how tests would verify the resulting web-facing behavior. Done means the approach and required infrastructure are agreed upon.

Written by the indexing model from the issue text.

Assessment

Domain
testing, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.