Bug 1583052 - Fix a check which really wants composed doc semantics, not uncomposed. r=smaug

I don't know why it'd want uncomposed doc semantics.

Differential Revision: https://phabricator.services.mozilla.com/D46775
This commit is contained in:
Emilio Cobos Álvarez
2019-09-23 13:14:51 +00:00
parent 5d0eb782c1
commit 1660c7ba3a

View File

@@ -4265,9 +4265,7 @@ nsresult HTMLMediaElement::BindToTree(BindContext& aContext, nsINode& aParent) {
// Construct Shadow Root so web content can be hidden in the DOM.
AttachAndSetUAShadowRoot();
NotifyUAWidgetSetupOrChange();
}
if (IsInUncomposedDoc()) {
// The preload action depends on the value of the autoplay attribute.
// It's value may have changed, so update it.
UpdatePreloadAction();