fixes bug 173278 "Should not prefetch <link rel="alternate">" r=gordon sr=alecf
git-svn-id: svn://10.0.0.236/trunk@131458 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user