mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Implement inner slot for cryptographic nonce (#36965)
Also update the `html/dom/reflection-metadata.html` test to handle the case where `nonce` does not reflect back to the attribute after an IDL change. Part of https://github.com/servo/servo/issues/4577 Fixes https://github.com/web-platform-tests/wpt/issues/43286 Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com>
This commit is contained in:
parent
3aff272e14
commit
a24fce3ae7
14 changed files with 132 additions and 98 deletions
|
@ -781,7 +781,7 @@ impl HTMLScriptElement {
|
|||
};
|
||||
|
||||
// Step 24. Let cryptographic nonce be el's [[CryptographicNonce]] internal slot's value.
|
||||
let cryptographic_nonce = self.upcast::<HTMLElement>().Nonce().into();
|
||||
let cryptographic_nonce = self.upcast::<Element>().nonce_value();
|
||||
|
||||
// Step 25. If el has an integrity attribute, then let integrity metadata be that attribute's value.
|
||||
// Otherwise, let integrity metadata be the empty string.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue