mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-21 09:49:14 +00:00
fixes bug 173278 "Should not prefetch <link rel="alternate">" r=gordon sr=alecf
This commit is contained in:
parent
277f54ac74
commit
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()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user