Remove the dom_trusted_types_enabled preference (#39281)

Everything related to Trusted Types has been implemented. Failing WPT
tests are related to other features such as SVG scripts.

Fixes #36258

Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com>
This commit is contained in:
Tim van der Lippe 2025-09-13 11:57:15 +02:00 committed by GitHub
parent 5beb16d671
commit 2f252c9b78
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 5 additions and 9 deletions

View file

@ -6,7 +6,7 @@
* https://www.w3.org/TR/trusted-types/#trusted-html
*/
[Exposed=(Window,Worker), Pref="dom_trusted_types_enabled"]
[Exposed=(Window,Worker)]
interface TrustedHTML {
stringifier;
DOMString toJSON();

View file

@ -6,7 +6,7 @@
* https://www.w3.org/TR/trusted-types/#trusted-script
*/
[Exposed=(Window,Worker), Pref="dom_trusted_types_enabled"]
[Exposed=(Window,Worker)]
interface TrustedScript {
stringifier;
DOMString toJSON();

View file

@ -6,7 +6,7 @@
* https://www.w3.org/TR/trusted-types/#trused-script-url
*/
[Exposed=(Window,Worker), Pref="dom_trusted_types_enabled"]
[Exposed=(Window,Worker)]
interface TrustedScriptURL {
stringifier;
DOMString toJSON();

View file

@ -6,7 +6,7 @@
* https://www.w3.org/TR/trusted-types/#trusted-type-policy
*/
[Exposed=(Window,Worker), Pref="dom_trusted_types_enabled"]
[Exposed=(Window,Worker)]
interface TrustedTypePolicy {
readonly attribute DOMString name;
[Throws] TrustedHTML createHTML(DOMString input, any... arguments);

View file

@ -6,7 +6,7 @@
* https://www.w3.org/TR/trusted-types/#trusted-type-policy-factory
*/
[Exposed=(Window,Worker), Pref="dom_trusted_types_enabled"]
[Exposed=(Window,Worker)]
interface TrustedTypePolicyFactory {
[Throws]
TrustedTypePolicy createPolicy(

View file

@ -46,7 +46,6 @@ partial interface mixin WindowOrWorkerGlobalScope {
// https://www.w3.org/TR/trusted-types/#extensions-to-the-windoworworkerglobalscope-interface
partial interface mixin WindowOrWorkerGlobalScope {
[Pref="dom_trusted_types_enabled"]
readonly attribute TrustedTypePolicyFactory trustedTypes;
};