Closed
Bug 413915
Opened 17 years ago
Closed 16 years ago
isValidFeed modifies its first parameter
Categories
(Firefox Graveyard :: RSS Discovery and Preview, defect)
Firefox Graveyard
RSS Discovery and Preview
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 3.1b1
People
(Reporter: neil, Assigned: neil)
References
Details
Attachments
(2 files)
3.81 KB,
patch
|
sayrer
:
review+
|
Details | Diff | Splinter Review |
4.10 KB,
patch
|
sayrer
:
review+
|
Details | Diff | Splinter Review |
...which IMHO is messy. Talking to sayrer on IRC the acceptable solution seems to have been that isValidFeed should return the assumed feed type (which defaults to application/rss+xml in the case of a <link rel="feed"> with no type) if the feed is valid, although only page info uses the specific value. This also fixes a nit in the page info code in that it won't process <link rel="feed" type="application/atom+xml; charset=UTF-8"> correctly because the existing code doesn't canonicalise the feed type if the rel is already feed.
Assignee | ||
Comment 1•17 years ago
|
||
Unfortunately I don't actually build Firefox, so this patch has been written by code inspection. Feel free to nominate someone who builds Firefox to test it.
Comment 2•17 years ago
|
||
This looks ok, but a unit test is required. If you can't build this, we'll need to find someone else to write it.
Comment 3•17 years ago
|
||
Bug 413891 looks like it has adequate test coverage. Can we dupe and merge the patches?
Comment 4•17 years ago
|
||
The test in bug 413891 is just a copy of a test already in the tree, with added links to test expanding discovery to even more things that other browsers don't discover, no? Seems like if that test is adequate, then this is already tested.
Comment 5•17 years ago
|
||
Neil's patch does pass the existing autodiscovery tests, but that's rather roundabout testing of it, so here's a testcase with a pancake on its head.
Attachment #300607 -
Flags: review?(sayrer)
Updated•16 years ago
|
Attachment #299039 -
Flags: review?(sayrer) → review+
Updated•16 years ago
|
Attachment #300607 -
Flags: review?(sayrer) → review+
Comment 6•16 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/c989ea4a7119 http://hg.mozilla.org/mozilla-central/rev/41790e7f7ae2
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → Firefox 3.1b1
Version: unspecified → Trunk
Updated•5 years ago
|
Product: Firefox → Firefox Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•