Skip to content

Conversation

@chromium-wpt-export-bot
Copy link
Collaborator

This CL shifts the ductwork between //content and //services/network
to pass allowlist patterns as strings that are converted into
SimpleUrlPatternMatcher objects when injected into a given network
context for enforcement via NetworkContext::RevokeNetworkForNonces.
This allows us to support substantially more robust matching syntax, and
gets fairly close to the breadth of what URL Pattern promises.

In the future, we'll have to consider the fact that this implementation
via SimpleUrlPatternMatcher does not support regex. That might be a
problem as we move past the prototype phase, but it might also be a
reasonable tradeoff to make (and one in-line with shared dictionaries
and service worker routing). A question for later...

Bug: 447954811
Change-Id: Ibcc076ffb4c50a8d9b3c1a11fa08374abe83e844
Reviewed-on: https://chromium-review.googlesource.com/7122019
WPT-Export-Revision: 249a8c179ce1694c302bcd4f3d31f6964461a879

This CL shifts the ductwork between //content and //services/network
to pass allowlist patterns as strings that are converted into
`SimpleUrlPatternMatcher` objects when injected into a given network
context for enforcement via `NetworkContext::RevokeNetworkForNonces`.
This allows us to support substantially more robust matching syntax, and
gets fairly close to the breadth of what URL Pattern promises.

In the future, we'll have to consider the fact that this implementation
via `SimpleUrlPatternMatcher` does not support regex. That might be a
problem as we move past the prototype phase, but it might also be a
reasonable tradeoff to make (and one in-line with shared dictionaries
and service worker routing). A question for later...

Bug: 447954811
Change-Id: Ibcc076ffb4c50a8d9b3c1a11fa08374abe83e844
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants