diff --git a/mozilla/toolkit/components/feeds/src/FeedProcessor.js b/mozilla/toolkit/components/feeds/src/FeedProcessor.js index 3d36eb0bab8..8116cf1cfb1 100644 --- a/mozilla/toolkit/components/feeds/src/FeedProcessor.js +++ b/mozilla/toolkit/components/feeds/src/FeedProcessor.js @@ -481,7 +481,7 @@ Entry.prototype = { var isPermaLink = true; if (bagHasKey(guid, "isPermaLink")) - isPermaLink = new Boolean(guid.getProperty("isPermaLink")); + isPermaLink = guid.getProperty("isPermaLink").toLowerCase() != "false"; if (guid && isPermaLink) this.link = strToURI(guid.getProperty("guid")); diff --git a/mozilla/toolkit/components/feeds/test/xml/rss2/item_guid_isPermaLink_false.xml b/mozilla/toolkit/components/feeds/test/xml/rss2/item_guid_isPermaLink_false.xml new file mode 100644 index 00000000000..c2a1ad867db --- /dev/null +++ b/mozilla/toolkit/components/feeds/test/xml/rss2/item_guid_isPermaLink_false.xml @@ -0,0 +1,20 @@ + + + + + + + +jbb@dallas.example.com (Joe Bob Briggs) +test +http://www.example.org/ +bar + +I'm headed for France. I wasn't gonna go this year, but then last week <a href="http://www.imdb.com/title/tt0086525/">Valley Girl</a> came out and I said to myself, Joe Bob, you gotta get out of the country for a while. + + diff --git a/mozilla/toolkit/components/feeds/test/xml/rss2/item_guid_isPermaLink_false_uppercase.xml b/mozilla/toolkit/components/feeds/test/xml/rss2/item_guid_isPermaLink_false_uppercase.xml new file mode 100644 index 00000000000..9ff2505c485 --- /dev/null +++ b/mozilla/toolkit/components/feeds/test/xml/rss2/item_guid_isPermaLink_false_uppercase.xml @@ -0,0 +1,20 @@ + + + + + + + +jbb@dallas.example.com (Joe Bob Briggs) +test +http://www.example.org/ +bar + +I'm headed for France. I wasn't gonna go this year, but then last week <a href="http://www.imdb.com/title/tt0086525/">Valley Girl</a> came out and I said to myself, Joe Bob, you gotta get out of the country for a while. + + diff --git a/mozilla/toolkit/components/feeds/test/xml/rss2/item_guid_isPermaLink_true_uppercase.xml b/mozilla/toolkit/components/feeds/test/xml/rss2/item_guid_isPermaLink_true_uppercase.xml new file mode 100644 index 00000000000..bc4fdc0e943 --- /dev/null +++ b/mozilla/toolkit/components/feeds/test/xml/rss2/item_guid_isPermaLink_true_uppercase.xml @@ -0,0 +1,20 @@ + + + + + + + +jbb@dallas.example.com (Joe Bob Briggs) +test +http://www.example.org/ +bar + +I'm headed for France. I wasn't gonna go this year, but then last week <a href="http://www.imdb.com/title/tt0086525/">Valley Girl</a> came out and I said to myself, Joe Bob, you gotta get out of the country for a while. + + diff --git a/mozilla/toolkit/components/feeds/test/xml/rss2/item_guid_isPermaLink_unknown_value.xml b/mozilla/toolkit/components/feeds/test/xml/rss2/item_guid_isPermaLink_unknown_value.xml new file mode 100644 index 00000000000..4dce8c390fd --- /dev/null +++ b/mozilla/toolkit/components/feeds/test/xml/rss2/item_guid_isPermaLink_unknown_value.xml @@ -0,0 +1,20 @@ + + + + + + + +jbb@dallas.example.com (Joe Bob Briggs) +test +http://www.example.org/ +bar + +I'm headed for France. I wasn't gonna go this year, but then last week <a href="http://www.imdb.com/title/tt0086525/">Valley Girl</a> came out and I said to myself, Joe Bob, you gotta get out of the country for a while. + +