Skip to content

Commit

Permalink
Remove SanitizerAPIv0 flag.
Browse files Browse the repository at this point in the history
Sanitizer API "v0" has been default enabled for a while. This
removes the corresponding feature flag.

Bug: 1326827, 1401818
Change-Id: Id98450a74551ad1614e71fba1c77f8e762f8918d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4184577
Reviewed-by: Yifan Luo <lyf@chromium.org>
Commit-Queue: Daniel Vogelheim <vogelheim@chromium.org>
Reviewed-by: Kent Tamura <tkent@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1097445}
  • Loading branch information
otherdaniel authored and Chromium LUCI CQ committed Jan 26, 2023
1 parent 060e558 commit 21f141f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 19 deletions.
12 changes: 5 additions & 7 deletions third_party/blink/renderer/modules/sanitizer_api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,13 @@ go to https://bugs.chromium.org and use the

## Staged / Incremental Rollout

The Sanitizer API is scheduled to be launched in stages. The API availability
An initial version of the Sanitizer API is enabled by default. Additional
features are scheduled to be launched in stages. The API availability
can be controlled via flags:

* `--enable-blink-features=SanitizerAPIv0`: This includes the basic Sanitizer
API with configuration and the `Element.setHTML` method, but not the
`.sanitizeFor` or `.sanitize` methods. This flag is on by default.
* `--enable-blink-features=SanitizerAPI`: This includes `SanitizerAPv0`
plus the sanitization methods of the `Sanitizer` object, as specified
as of 04/2022. These APIs are likely to change.
* `--enable-blink-features=SanitizerAPI`: This includes the sanitization
methods of the `Sanitizer` object, as specified as of 04/2022.
These APIs are likely to change.

The general `--enable-experimental-web-platform-features` flag implies the full
`--enable-blink-features=SanitizerAPI` feature set.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,11 @@

// https://github.com/WICG/sanitizer-api

[
RuntimeEnabled=SanitizerAPIv0
] dictionary ElementSetHTMLOptions {
dictionary ElementSetHTMLOptions {
Sanitizer sanitizer;
};

[
RuntimeEnabled=SanitizerAPIv0,
SecureContext,
ImplementedAs=ElementSanitizer
] partial interface Element {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ typedef (DocumentFragment or Document) SanitizerInput;

[
Exposed=Window,
SecureContext,
RuntimeEnabled=SanitizerAPIv0
SecureContext
] interface Sanitizer {
[MeasureAs=SanitizerAPICreated, CallWith=ExecutionContext, RaisesException] constructor(optional SanitizerConfig config = {});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2438,12 +2438,6 @@
status: "experimental",
base_feature: "SanitizerAPI",
},
{
name: "SanitizerAPIv0",
status: "stable",
implied_by: ["SanitizerAPI"],
base_feature: "SanitizerAPIv0",
},
{
// https://wicg.github.io/webcomponents/proposals/Scoped-Custom-Element-Registries
name: "ScopedCustomElementRegistry",
Expand Down

0 comments on commit 21f141f

Please sign in to comment.