Skip to content

Match feature names case-sensitively - #596

Open
marcoscaceres wants to merge 2 commits into
mainfrom
feature-names-case-sensitive
Open

marcoscaceres wants to merge 2 commits into
mainfrom
feature-names-case-sensitive

Conversation

@marcoscaceres

@marcoscaceres marcoscaceres commented Oct 6, 2026 •

Copy link
Copy Markdown
Member

Spell out that a feature name must exactly match a feature's token, in both the header and the allow attribute steps. WebKit and Chromium already match case-sensitively; Gecko matches case-insensitively.

Tests: web-platform-tests/wpt#63316


Preview | Diff

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

๐ŸŸข Approval recommended

The specification changes consistently implement the described case-sensitive matching behavior.

Review effort: Balanced
Findings: None

What changed in this PR

Clarifies that permissions-policy feature names match feature tokens case-sensitively.

Changes:

  • Uses exact string matching for HTTP header feature names.
  • Applies the same matching rule to iframe allow attributes.
File Description
index.bs Specifies exact feature-token matching in both parsing algorithms.

๐Ÿ’ก Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@arichiv

arichiv commented Oct 26, 2026

Copy link
Copy Markdown
Member

Can the two pairs of lines be re-written to have fewer duplicated words? I feel like it could be one line that says set if exists, otherwise continue, or the second line can omit some of the duplicated checks.

@arichiv arichiv self-assigned this Oct 26, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants