mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Stub out Trusted Types interfaces (#36355)
Some methods are implemented fully, while others are implemented partly. With these implementations, there are no observed crashes when running the trusted-types web-platform-tests. Most notably, the tests/wpt/tests/trusted-types/idlharness.window.js is now fully passing. Part of #36258 Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com>
This commit is contained in:
parent
3f24b44e15
commit
b87bf0b806
145 changed files with 3377 additions and 559 deletions
13
components/script_bindings/webidls/TrustedHTML.webidl
Normal file
13
components/script_bindings/webidls/TrustedHTML.webidl
Normal file
|
@ -0,0 +1,13 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
||||
/*
|
||||
* The origin of this IDL file is
|
||||
* https://www.w3.org/TR/trusted-types/#trusted-html
|
||||
*/
|
||||
|
||||
[Exposed=(Window,Worker), Pref="dom_trusted_types_enabled"]
|
||||
interface TrustedHTML {
|
||||
stringifier;
|
||||
DOMString toJSON();
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue