WICG / WICG/webpackage

loading spec: Content sniffing prevention steps are missing in Parsing b3 algorithm

Open
#555 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
1.3k
Forks
125
PR merge metrics
No merged PRs in 30d

Description

#354 added two steps in the Parsing b2 CBOR headers algorithm:

  1. If responseHeaders does not contain Content-Type, return a failure.
  2. Set X-Content-Type-Options/nosniff in responseHeaders.

But it did not add them into the Parsing b3 CBOR headers algorithm.

Contributor guide

Open the contributing guide

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 comparing the linked Parsing b2 CBOR headers and Parsing b3 CBOR headers algorithms in loading.html. Confirm how b2 handles a missing Content-Type and sets X-Content-Type-Options/nosniff, then update the b3 specification so the missing steps are included. Done means the b3 algorithm documents both content-sniffing prevention steps.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.