mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 691252 - Fix "reference to undefined property rels.feed" (r=felipe)
This commit is contained in:
parent
fa203e6441
commit
635004cc56
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user