diff options
Diffstat (limited to 'dom/html/HTMLMediaElement.cpp')
-rw-r--r-- | dom/html/HTMLMediaElement.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/dom/html/HTMLMediaElement.cpp b/dom/html/HTMLMediaElement.cpp index b64761270..e81cd20bc 100644 --- a/dom/html/HTMLMediaElement.cpp +++ b/dom/html/HTMLMediaElement.cpp @@ -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) { |