Bug 1507895 - Part I, Remove the videocontrols binding r=smaug

This patch removes the XBL videocontrols binding and make <video>
to always use the UA Widget to generate controls.

DevTools tests that look for NAC is switched to use <input type=file>.

Differential Revision: https://phabricator.services.mozilla.com/D17571
This commit is contained in:
Timothy Guan-tin Chien
2019-01-25 13:12:26 +00:00
parent 96e2e3d513
commit 08bfd1c4d4
38 changed files with 45 additions and 4041 deletions

View File

@@ -3979,8 +3979,7 @@ nsresult HTMLMediaElement::AfterSetAttr(int32_t aNameSpaceID, nsAtom* aName,
if (mDecoder) {
mDecoder->SetLooping(!!aValue);
}
} else if (nsContentUtils::IsUAWidgetEnabled() &&
aName == nsGkAtoms::controls && IsInComposedDoc()) {
} else if (aName == nsGkAtoms::controls && IsInComposedDoc()) {
NotifyUAWidgetSetupOrChange();
}
}
@@ -4018,7 +4017,7 @@ nsresult HTMLMediaElement::BindToTree(Document* aDocument, nsIContent* aParent,
nsresult rv =
nsGenericHTMLElement::BindToTree(aDocument, aParent, aBindingParent);
if (nsContentUtils::IsUAWidgetEnabled() && IsInComposedDoc()) {
if (IsInComposedDoc()) {
// Construct Shadow Root so web content can be hidden in the DOM.
AttachAndSetUAShadowRoot();
#ifdef ANDROID
@@ -4252,7 +4251,7 @@ void HTMLMediaElement::UnbindFromTree(bool aDeep, bool aNullParent) {
mUnboundFromTree = true;
mVisibilityState = Visibility::UNTRACKED;
if (nsContentUtils::IsUAWidgetEnabled() && IsInComposedDoc()) {
if (IsInComposedDoc()) {
NotifyUAWidgetTeardown();
}