LibWeb: Avoid updating muted state on muted content attribute changes

The `muted` content attribute should only affect the state of the
`muted` IDL property when the media element is first created. The
attribute should have no dynamic effect.
This commit is contained in:
Tim Ledbetter 2025-06-26 10:28:17 +01:00 committed by Shannon Booth
commit 8828e0d791
Notes: github-actions[bot] 2025-06-26 21:16:18 +00:00
4 changed files with 44 additions and 2 deletions

View file

@ -0,0 +1,5 @@
Initial muted state when muted content attribute is present: true
Changing the muted attribute after object creation changes the muted state: false
Re-inserting the video element into the document changes the muted state: false
Re-inserting non-default muted video element into the document changes the muted state: false
Muted state of a script-created video element after adding the muted content attribute false