The Sanitizer API (https://chromestatus.com/feature/5786893650231296) aims to build an easy-to-use, always secure, browser-maintained HTML sanitizer into the platform. It is a cross-browser standardization effort starting in Q2/2020. We shipped an initial version of the Sanitizer API in M105, based on the then-current specification draft. However, the discussion has meanwhile moved on and the proposed API shape has changed substantially. In order to prevent the current API from becoming entrenched we would like to remove the current implementation. We expect to re-implement the Sanitizer API when the proposed specification stabilizes again.
Since the final version of the standard will look different from our initial implementation, the goal is to prevent an API from becoming entrenched. According to use counters, the Sanitizer API is currently used on 0.000000492 % of page visits.
Sanitizer API is currently used on 0.000000492% of page visits. Since presently no other browser supports this API (in any release version) we expect the compatibility impact to be negligible.
Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?
None
Shipping on desktop | 118 |
Shipping on Android | 118 |
Shipping on WebView | 118 |
Hi,
let me give my 2 cents as someone from Firefox who works closely with Daniel on this. We have received valuable feedback that led to spec changes where exposed functionality, API shape as well as security guarantees are changing. Part of this feedback came a bit later than initially hoped due to parallel developments with declarative shadow DOM and we wanted to make sure that shadow roots are parsed and sanitized correctly. But we have also agreed on different functions as part of this evolution.
I do not think that this situation could be handled with compatibility fixes and I would personally prefer that Blink unships the previous implementation before pages or frameworks start relying on this too much.
Thanks,
Freddy
Am 07.08.23 um 20:13 schrieb Alex Russell:
--
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/5eacc772-6d70-41b0-9ab4-0262c42a9c50n%40chromium.org.
Hey Daniel,Hrm, this isn't how things are supposed to work.The API OWNERS set a high bar to ship exactly to prevent this sort of bikeshedding after shipping. Is it possible to make compatible additions instead?
--
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/CALG6KPN-OU7ZxZ-Zu2D0Ni3RDwpDSGmvZyaUt-JQxkUAsO1hTA%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
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/9541b09f-1873-4f84-a5dd-ce284a2ebdean%40chromium.org.
I think it's fine to consider removing the current API given usage is extremely low, and if there is a more plausible path to interoperability via a new version.Is there consensus on a new API shape yet, or is that an open discussion?
Adding in Jack as the author of the mentioned article at https://web.dev/sanitizer/. It might be worthwhile to add a big red warning aside.On Tue, Aug 15, 2023, 23:37 Luke <lukewa...@gmail.com> wrote:Just to chime in here. If there's a chance this API is going to be removed or even heavily changed its potentially worth making an effort to take down any documentation regarding it to try to prevent any chance of its usage going up. For example the mdn page on it seems an easy one to remove. Likewise the web.dev article. This may not be as important if the usage is far below any thresholds.
--
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/CALG6KPMrdkH5Br_useiWyt3b8gXVWkzYi9tdL2DSJ9MTwefTjA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAOMQ%2Bw_bxEMv20aYBqJoquxdty_2_-6EnszXipt1CP6MN7LqWQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAL5BFfVNC%2BqEMqMQ1UofPsN23_34y9kEc8MoZtJXLG_rQib%3D3g%40mail.gmail.com.
Hey all,Note: If future versions of this API re-use the Element.prototype.setHTML method in new ways, there may be potential for breakage. Transcend ships a popular client-side firewall tool called airgap.js that regulates (wraps) setHTML. We don't plan to unship this integration soon and even if we did, our customers choose when to upgrade their airgap.js SDK version. We regulate setHTML as it is a unique network sink by itself, and thus is in need of our network regulation controls.