Closed
Bug 484379
Opened 16 years ago
Closed 12 years ago
Not detecting feed when type has leading and/or trailing whitespace
Categories
(SeaMonkey :: Feed Discovery and Preview, defect)
SeaMonkey
Feed Discovery and Preview
Tracking
(seamonkey2.6 wontfix, seamonkey2.7- wontfix, seamonkey2.8 wontfix, seamonkey2.9 wontfix, seamonkey2.15 fixed, seamonkey2.16 fixed, seamonkey2.17 fixed)
People
(Reporter: kairo, Assigned: ewong)
References
()
Details
Attachments
(2 files, 1 obsolete file)
2.34 KB,
patch
|
ewong
:
review+
Callek
:
approval-comm-aurora+
Callek
:
approval-comm-beta+
|
Details | Diff | Splinter Review |
1.29 KB,
patch
|
ewong
:
review+
philip.chee
:
approval-comm-aurora+
philip.chee
:
approval-comm-beta+
|
Details | Diff | Splinter Review |
feed_discovery.html ported from Firefox in bug 484187 uncovered that the following test case doesn't work correctly in SeaMonkey right now and is therefore marked todo() for now:
<!-- type can have leading and trailing whitespace -->
<link rel="alternate" type=" application/atom+xml " title="todo11" href="/11.atom" />
Comment 1•13 years ago
|
||
Hum, time to complete this, I think ;-<
I'm not familiar with this code, but I tried to have a look, fwiw:
http://mxr.mozilla.org/comm-central/ident?i=isValidFeed
*utilityOverlay.js: isValidFeed() regex (and code) are identical.
*feeds.js: initFeedTab() regex (and code) are different...
*...
status-seamonkey2.6:
--- → wontfix
status-seamonkey2.7:
--- → affected
status-seamonkey2.8:
--- → affected
tracking-seamonkey2.7:
--- → ?
Component: UI Design → Feed Discovery and Preview
QA Contact: ui-design → feed.handling
Comment 2•13 years ago
|
||
suite/browser/tabbrowser.xml also only does an exact match.
Comment 3•13 years ago
|
||
(In reply to neil@parkwaycc.co.uk from comment #2)
> suite/browser/tabbrowser.xml also only does an exact match.
http://mxr.mozilla.org/comm-central/ident?i=onLinkAdded
*has "same" regex as SM initFeedTab()...
*FF calls isValidFeed() instead...
Should SM do that too?
Comment 4•13 years ago
|
||
Sorry, but I don't want tabbrowser.xml depending on utilityOverlay.js
Updated•13 years ago
|
Keywords: helpwanted
Updated•13 years ago
|
Assignee | ||
Comment 6•12 years ago
|
||
Comment 7•12 years ago
|
||
Comment on attachment 685054 [details] [diff] [review]
Include whitespace in test. (v1)
>+ /^(\s*)application\/(?:atom|rss)\+xml(\s*)$/i.test(type));
You don't need the ()s around \s*. r=me with that fixed.
isValidFeed actually accepts slightly more, it looks like this:
^\s*application\/(?:atom|rss)\+xml\s*(?:;.*)?$
Attachment #685054 -
Flags: review?(neil) → review+
Assignee | ||
Comment 8•12 years ago
|
||
Attachment #685054 -
Attachment is obsolete: true
Attachment #685070 -
Flags: review+
Assignee | ||
Comment 9•12 years ago
|
||
Pushed to comm-central:
http://hg.mozilla.org/comm-central/rev/a74f2bbce842
Comment 10•12 years ago
|
||
Comment on attachment 685070 [details] [diff] [review]
Include whitespace in test. (v2)
[Triage Comment]
Attachment #685070 -
Flags: approval-comm-beta+
Attachment #685070 -
Flags: approval-comm-aurora+
Assignee | ||
Comment 11•12 years ago
|
||
Pushed to Comm-aurora:
http://hg.mozilla.org/releases/comm-aurora/rev/11e470198aae
Comment 12•12 years ago
|
||
Can we remove the other todo checks in feed_discovery.html and test_feed_discovery.html now that we don't have any more todo tests here?
Flags: needinfo?
Comment 13•12 years ago
|
||
(In reply to Edmund Wong (:ewong) from comment #9)
> Pushed to comm-central:
> http://hg.mozilla.org/comm-central/rev/a74f2bbce842
- <link rel="alternate" type=" application/atom+xml " title="todo11" href="/11.atom" />
+ <link rel="alternate" type=" application/atom+xml " title="10" href="/11.atom" />
Should be 'title="11"'?
Flags: needinfo?
Comment 14•12 years ago
|
||
> Should be 'title="11"'?
Yes you're right :P
Comment 16•12 years ago
|
||
Comment on attachment 685127 [details] [diff] [review]
Test fix for patch. (v1)
[Triage Comment]
Attachment #685127 -
Flags: approval-comm-beta+
Attachment #685127 -
Flags: approval-comm-aurora+
Assignee | ||
Comment 17•12 years ago
|
||
Pushed to comm-central:
http://hg.mozilla.org/comm-central/rev/159102806630
Assignee | ||
Comment 18•12 years ago
|
||
Pushed to comm-aurora:
http://hg.mozilla.org/releases/comm-aurora/rev/eb871ba08465
Assignee | ||
Comment 19•12 years ago
|
||
Pushed to comm-beta:
http://hg.mozilla.org/releases/comm-beta/rev/5d098b1861bf
Assignee | ||
Updated•12 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•12 years ago
|
status-seamonkey2.15:
--- → fixed
status-seamonkey2.16:
--- → fixed
status-seamonkey2.17:
--- → fixed
Target Milestone: --- → seamonkey2.17
Assignee | ||
Updated•12 years ago
|
Assignee | ||
Updated•12 years ago
|
Keywords: helpwanted
You need to log in
before you can comment on or make changes to this bug.
Description
•