From 621e8aa61f3c5610a8e44bb1a5ef850dc90aaeb5 Mon Sep 17 00:00:00 2001 From: "vladimir%pobox.com" Date: Wed, 27 Jul 2005 15:25:35 +0000 Subject: [PATCH] b=300933, handle empty/missing 'rel' for atom 1.0 feeds, r+a=shaver --- browser/components/bookmarks/src/nsBookmarksFeedHandler.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/browser/components/bookmarks/src/nsBookmarksFeedHandler.cpp b/browser/components/bookmarks/src/nsBookmarksFeedHandler.cpp index 592c2844c9a0..b8286455320b 100644 --- a/browser/components/bookmarks/src/nsBookmarksFeedHandler.cpp +++ b/browser/components/bookmarks/src/nsBookmarksFeedHandler.cpp @@ -697,7 +697,9 @@ nsFeedLoadListener::TryParseAsSimpleRSS () nsAutoString rel; linkElem->GetAttribute(NS_LITERAL_STRING("rel"), rel); - if (rel.Equals(NS_LITERAL_STRING("alternate"))) { + if (rel.Equals(NS_LITERAL_STRING("alternate")) || + rel.IsEmpty()) + { rv = linkElem->GetAttribute(NS_LITERAL_STRING("href"), linkStr); if (NS_FAILED(rv)) break; // out of while(childNode) loop }