Bug 691252 - Fix "reference to undefined property rels.feed" (r=felipe)

This commit is contained in:
Bill McCloskey 2013-09-30 12:24:44 -07:00
parent fa203e6441
commit 635004cc56
2 changed files with 2 additions and 2 deletions

View File

@ -2912,7 +2912,7 @@ const DOMLinkHandler = {
if (!rels.feed && rels.alternate && rels.stylesheet)
break;
if (isValidFeed(link, link.ownerDocument.nodePrincipal, rels.feed)) {
if (isValidFeed(link, link.ownerDocument.nodePrincipal, "feed" in rels)) {
FeedHandler.addFeed(link, link.ownerDocument);
feedAdded = true;
}

View File

@ -29,7 +29,7 @@ function initFeedTab()
}
if (rels.feed || (link.type && rels.alternate && !rels.stylesheet)) {
var type = isValidFeed(link, gDocument.nodePrincipal, rels.feed);
var type = isValidFeed(link, gDocument.nodePrincipal, "feed" in rels);
if (type) {
type = feedTypes[type] || feedTypes["application/rss+xml"];
addRow(link.title, type, link.href);