mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-31 03:51:38 +09:00
Workaround for cloned videos not retaining their muted state.
This commit is contained in:
parent
ad659f4f28
commit
0a03067ee3
1 changed files with 5 additions and 0 deletions
|
|
@ -4550,6 +4550,11 @@ void HTMLMediaElement::FirstFrameLoaded()
|
|||
|
||||
ChangeDelayLoadStatus(false);
|
||||
|
||||
// FIXME: This is a workaround for DoneCreatingElement() not being called
|
||||
// at the appropriate time when cloning elements, to preserve the "muted"
|
||||
// status. See bug 1424871.
|
||||
if (HasAttr(kNameSpaceID_None, nsGkAtoms::muted)) SetMuted(true);
|
||||
|
||||
if (mDecoder && mAllowSuspendAfterFirstFrame && mPaused &&
|
||||
!HasAttr(kNameSpaceID_None, nsGkAtoms::autoplay) &&
|
||||
mPreloadAction == HTMLMediaElement::PRELOAD_METADATA) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue