Bug 769117 - Rewrite youtube flash embed tags to possibly use HTML5; r=bz r=hsivonen

This commit is contained in:
Kyle Machulis
2016-01-06 00:01:59 -08:00
parent de52eaad5e
commit 0210c68c52
4 changed files with 80 additions and 18 deletions

View File

@@ -345,6 +345,11 @@ HTMLSharedObjectElement::GetCapabilities() const
if (mNodeInfo->Equals(nsGkAtoms::embed)) {
capabilities |= eSupportSVG | eSupportImages;
}
// If this is a rewritten youtube flash embed, add documents to capabilities
// so that we can render HTML5 if possible.
if (mRewrittenYoutubeEmbed) {
capabilities |= eSupportDocuments;
}
return capabilities;
}