Skip to content

feat: add multi-policy AND query APIs#21

Open
kingthorin wants to merge 2 commits into
HtmlUnit:mainfrom
kingthorin:intersect
Open

feat: add multi-policy AND query APIs#21
kingthorin wants to merge 2 commits into
HtmlUnit:mainfrom
kingthorin:intersect

Conversation

@kingthorin

@kingthorin kingthorin commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Browsers allow a resource only if every CSP allows it. Query that via PolicyList / PolicyListInOrigin instead of merging to one string.

Draft for now, will rebase once the meta PR is merged.

Browsers allow a resource only if every CSP allows it. Query that
via PolicyList / PolicyListInOrigin instead of merging to one string.

Signed-off-by: kingthorin <kingthorin@users.noreply.github.com>
@kingthorin
kingthorin marked this pull request as ready for review July 24, 2026 00:09
Keep Policy/PolicyList query surfaces in sync via one interface and
one origin wrapper so new allows* methods are not copy-pasted four ways.
@rbri

rbri commented Jul 24, 2026

Copy link
Copy Markdown
Member

@kingthorin thanks, will have a look soon

@kingthorin

Copy link
Copy Markdown
Contributor Author

The LoC count might make it seem daunting but a lot of it is documentation and tests. It has been reviewed by more than one LLM.

Happy to adjust/tweak as you see fit.

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.

2 participants