mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-30 11:07:29 +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);
|
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 &&
|
if (mDecoder && mAllowSuspendAfterFirstFrame && mPaused &&
|
||||||
!HasAttr(kNameSpaceID_None, nsGkAtoms::autoplay) &&
|
!HasAttr(kNameSpaceID_None, nsGkAtoms::autoplay) &&
|
||||||
mPreloadAction == HTMLMediaElement::PRELOAD_METADATA) {
|
mPreloadAction == HTMLMediaElement::PRELOAD_METADATA) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue