mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-17 14:31:53 +00:00
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:
parent
ed6f2f9b81
commit
8828e0d791
Notes:
github-actions[bot]
2025-06-26 21:16:18 +00:00
Author: https://github.com/tcl3
Commit: 8828e0d791
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5223
Reviewed-by: https://github.com/shannonbooth ✅
4 changed files with 44 additions and 2 deletions
|
@ -107,8 +107,6 @@ void HTMLMediaElement::attribute_changed(FlyString const& name, Optional<String>
|
|||
load_element().release_value_but_fixme_should_propagate_errors();
|
||||
} else if (name == HTML::AttributeNames::crossorigin) {
|
||||
m_crossorigin = cors_setting_attribute_from_keyword(value);
|
||||
} else if (name == HTML::AttributeNames::muted) {
|
||||
set_muted(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue