From 22d6d87ab2525da9578ad54702ab60bcec5d3a39 Mon Sep 17 00:00:00 2001 From: Francois Daoust Date: Wed, 7 Jul 2021 10:36:40 +0200 Subject: [PATCH] Add patch for Sanitizer API See https://github.com/WICG/sanitizer-api/issues/107 --- ed/idlpatches/sanitizer-api.idl.patch | 28 +++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 ed/idlpatches/sanitizer-api.idl.patch diff --git a/ed/idlpatches/sanitizer-api.idl.patch b/ed/idlpatches/sanitizer-api.idl.patch new file mode 100644 index 000000000000..2b1c1c15785c --- /dev/null +++ b/ed/idlpatches/sanitizer-api.idl.patch @@ -0,0 +1,28 @@ +From ef9a45200d4ece1a7f8a29e855755742ed051d58 Mon Sep 17 00:00:00 2001 +From: Francois Daoust +Date: Wed, 7 Jul 2021 10:33:58 +0200 +Subject: [PATCH] Rollback switch to attribute for config + +https://github.com/WICG/sanitizer-api/issues/107 +--- + ed/idl/sanitizer-api.idl | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/ed/idl/sanitizer-api.idl b/ed/idl/sanitizer-api.idl +index cd6387517..75a7a6a28 100644 +--- a/ed/idl/sanitizer-api.idl ++++ b/ed/idl/sanitizer-api.idl +@@ -12,8 +12,8 @@ + DocumentFragment sanitize(SanitizerInput input); + DOMString sanitizeToString(SanitizerInput input); + +- readonly attribute SanitizerConfig config; +- static readonly attribute SanitizerConfig defaultConfig; ++ SanitizerConfig config(); ++ static SanitizerConfig defaultConfig(); + }; + + typedef (DOMString or DocumentFragment or Document) SanitizerInput; +-- +2.31.1.windows.1 +