Bug 1364505 - Add a rule to favor plugin fallback content when no srcURI has been specified. r=qDot

MozReview-Commit-ID: 18VcbxHmi0c
This commit is contained in:
Felipe Gomes 2017-05-16 22:56:22 -03:00
Родитель dce52337e9
Коммит c18d8c931c
1 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -3433,6 +3433,14 @@ nsObjectLoadingContent::HasGoodFallback() {
}
}
// RULE "nosrc":
// Use fallback content if the object has not specified an URI.
if (rulesList[i].EqualsLiteral("nosrc")) {
if (!mOriginalURI) {
return true;
}
}
// RULE "adobelink":
// Don't use fallback content when it has a link to adobe's website.
if (rulesList[i].EqualsLiteral("adobelink")) {