зеркало из https://github.com/mozilla/gecko-dev.git
fixes bug 173278 "Should not prefetch <link rel="alternate">" r=gordon sr=alecf
This commit is contained in:
Родитель
277f54ac74
Коммит
4f540c03c1
|
@ -4986,7 +4986,7 @@ HTMLContentSink::ProcessLINKTag(const nsIParserNode& aNode)
|
|||
nsStringArray linkTypes;
|
||||
nsStyleLinkElement::ParseLinkTypes(relVal, linkTypes);
|
||||
if (linkTypes.IndexOf(NS_LITERAL_STRING("next")) != -1 ||
|
||||
linkTypes.IndexOf(NS_LITERAL_STRING("prefetch")) != 1) {
|
||||
linkTypes.IndexOf(NS_LITERAL_STRING("prefetch")) != -1) {
|
||||
nsAutoString hrefVal;
|
||||
element->GetAttr(kNameSpaceID_None, nsHTMLAtoms::href, hrefVal);
|
||||
if (!hrefVal.IsEmpty()) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче