Bug 1237963 - Add documents to embed element capabilities; r=bz

This commit is contained in:
Kyle Machulis 2016-01-13 20:42:25 -08:00
parent 6a3473e8a8
commit 8cb11383e5

View File

@ -343,12 +343,7 @@ HTMLSharedObjectElement::GetCapabilities() const
{
uint32_t capabilities = eSupportPlugins | eAllowPluginSkipChannel;
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;
capabilities |= eSupportSVG | eSupportImages | eSupportDocuments;
}
return capabilities;