Bug 1486220 - Revert document.createXULElement change from Bug 1485426 in videocontrols.xml;r=me

Since videocontrols run in content, this is generally a content privileged HTML
document which doesn't have access to that API. And besides, we actually want
this to be an <html:button>.
This commit is contained in:
Brian Grinstead 2018-08-26 06:26:35 -07:00
parent e1a0b51543
commit e864b4f797

View file

@ -1618,7 +1618,7 @@
const label = tt.label || "";
const ttText = document.createTextNode(label);
const ttBtn = document.createXULElement("button");
const ttBtn = document.createElement("button");
ttBtn.classList.add("textTrackItem");
ttBtn.setAttribute("index", tt.index);