The setHTMLUnsafe and parseHTMLUnsafe methods allow Declarative ShadowDOM to be used from javascript. In the future, they may also get new parameters for sanitization.
None
This API will likely be used in tandem with Declarative ShadowDOM. The default usage of this API will not make it hard for chrome to maintain good performance.
It will not be challenging for developers to use this feature immediately.
There are no security risks. This API just does declarative ShadowDOM. There is an "unsafe" in the name because there are future plans to add sanitization options. https://github.com/WICG/sanitizer-api/issues/185 https://github.com/whatwg/html/issues/8627 https://github.com/whatwg/html/issues/8759
Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?
None
This API does not need any special DevTools features. You can call the method from the console panel.
DevTrial on desktop | 120 |
DevTrial on Android | 120 |
Open questions about a feature may be a source of future web compat or interop issues. Please list open issues (e.g. links to known github issues in the project for the feature specification) whose resolution may introduce web compat/interop risk (e.g., changing to naming or structure of the API in a non-backward-compatible way).
NoneSome additional notes:- This API is tested in the declarative ShadowDOM tests in interop2024, and it is counting against us to not have it enabled by default.- The future sanitization options will be added as an optional second parameter to both methods, so there will not be any compat issues with shipping now.On Wed, Feb 14, 2024 at 1:11 PM Joey Arhar <jar...@chromium.org> wrote:
Specification
https://html.spec.whatwg.org/C/#unsafe-html-parsing-methodshttps://github.com/whatwg/html/pull/9538Summary
The setHTMLUnsafe and parseHTMLUnsafe methods allow Declarative ShadowDOM to be used from javascript. In the future, they may also get new parameters for sanitization.
Blink component
Blink>HTMLTAG review
NoneTAG review status
Not applicable
Risks
Interoperability and Compatibility
None
Gecko: No signal (https://bugzilla.mozilla.org/show_bug.cgi?id=1850675) https://github.com/whatwg/html/pull/9538#issuecomment-1728947778
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAK6btwJiEbhk_YGbVhuUg0emSJTfT%3D20_1bTDMFJxcH5i9tbMQ%40mail.gmail.com.
I just had some clarifying questionsOn Wed, Feb 14, 2024 at 1:13 PM Joey Arhar <jar...@chromium.org> wrote:Some additional notes:- This API is tested in the declarative ShadowDOM tests in interop2024, and it is counting against us to not have it enabled by default.- The future sanitization options will be added as an optional second parameter to both methods, so there will not be any compat issues with shipping now.On Wed, Feb 14, 2024 at 1:11 PM Joey Arhar <jar...@chromium.org> wrote:Is this the relevant explainer (referenced from the PR below): https://github.com/WICG/sanitizer-api/blob/main/explainer.mdSpecification
https://html.spec.whatwg.org/C/#unsafe-html-parsing-methodshttps://github.com/whatwg/html/pull/9538Summary
The setHTMLUnsafe and parseHTMLUnsafe methods allow Declarative ShadowDOM to be used from javascript. In the future, they may also get new parameters for sanitization.
Blink component
Blink>HTMLTAG review
NoneTAG review status
Not applicableThere seems to be consensus within browser vendors that this is a good idea, but I'm just wondering why you decided against filing TAG here?
Risks
Interoperability and Compatibility
None
Gecko: No signal (https://bugzilla.mozilla.org/show_bug.cgi?id=1850675) https://github.com/whatwg/html/pull/9538#issuecomment-1728947778This seems positive, right?
WebKit: Positive (https://bugs.webkit.org/show_bug.cgi?id=261143)I'm not sure how to read this properly, but is this a positive signal or "shipped/shipping" signal?
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CADsXd2MH_fZddPf6c_QwhEP5JU767nEy1ck338Cx_HYFsytO4w%40mail.gmail.com.
Risks
Interoperability and Compatibility
None
Gecko: No signal (https://bugzilla.mozilla.org/show_bug.cgi?id=1850675) https://github.com/whatwg/html/pull/9538#issuecomment-1728947778This seems positive, right?WebKit: Positive (https://bugs.webkit.org/show_bug.cgi?id=261143)I'm not sure how to read this properly, but is this a positive signal or "shipped/shipping" signal?Both of these look like "Shipped/Shipping", per https://bit.ly/blink-signals. That status is a little odd, because it doesn't look like they've actually made it to a stable release, but if I'm reading the bug trackers right they're both merged, so they're past "In Development".
LGTM1
/Daniel
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAK6btwJ3Sp6ShrbdFHiO50Pz7_D9QsY%3DQJDbN2v5efVfcFzrqg%40mail.gmail.com.
This doesn't show up in the shipping status in chromestatus so it's not on our radar. My LGTM1 still stands, but it can easily be forgotten, and we might miss some important review step, if it's not there.
/Daniel
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAK6btwJ3Sp6ShrbdFHiO50Pz7_D9QsY%3DQJDbN2v5efVfcFzrqg%40mail.gmail.com.
Never mind. My mail was backed up and I hadn't seen that it was already approved, thus no longer on the list. All is well, and my LGTM1 is actually a bonus LGTM4
/Daniel
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/547c1236-486b-4f91-91dd-705d4037c146%40gmail.com.