mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-26 23:23:33 +00:00
Bug 197623 prefetch links should not be shown in Site Navigation Bar
patch by stevechapel@earthlink.net r=dean_tessman sr=jst a=asa
This commit is contained in:
parent
183e1e0150
commit
b19bcb9639
@ -60,14 +60,15 @@ function(element)
|
||||
|
||||
if (linkElement.isIgnored()) return;
|
||||
|
||||
if (!this.hasItems) {
|
||||
this.hasItems = true;
|
||||
linkToolbarUI.activate();
|
||||
}
|
||||
|
||||
for (var i = 0; i < linkElement.relValues.length; i++) {
|
||||
var linkType = LinkToolbarHandler.getLinkType(linkElement.relValues[i]);
|
||||
this.getItemForLinkType(linkType).displayLink(linkElement);
|
||||
if (linkType) {
|
||||
if (!this.hasItems) {
|
||||
this.hasItems = true;
|
||||
linkToolbarUI.activate();
|
||||
}
|
||||
this.getItemForLinkType(linkType).displayLink(linkElement);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -108,6 +109,9 @@ function(relAttribute)
|
||||
case "toc":
|
||||
return "toc";
|
||||
|
||||
case "prefetch":
|
||||
return null;
|
||||
|
||||
default:
|
||||
return relAttribute.toLowerCase();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user