Closed
Bug 395533
Opened 17 years ago
Closed 17 years ago
[FIX]No feed preview for http://youtube.com/rss/global/top_favorites.rss
Categories
(Core :: Networking, defect)
Core
Networking
Tracking
()
VERIFIED
FIXED
mozilla1.9beta1
People
(Reporter: Gavin, Assigned: bzbarsky)
References
()
Details
(Keywords: regression)
Attachments
(2 files, 1 obsolete file)
1.64 KB,
patch
|
Biesinger
:
review+
Biesinger
:
superreview+
benjamin
:
approval1.9+
|
Details | Diff | Splinter Review |
2.91 KB,
patch
|
Details | Diff | Splinter Review |
A recent-ish 1.8 branch build displays a feed preview when visiting http://youtube.com/rss/global/top_favorites.rss . A current trunk build does not. Phil thought this might have been a dupe of bug 364677, but that's a regression in 2.0.0.1 as far as I can tell, while this doesn't seem to have regressed on the branch at all, and the feed does appear to have a <link> in the <channel>.
Reporter | ||
Comment 1•17 years ago
|
||
Regression range:
http://bonsai.mozilla.org/cvsquery.cgi?module=PhoenixTinderbox&branch=HEAD&branchtype=match&date=explicit&mindate=2007-08-20+18%3A00&maxdate=2007-08-21+06%3A00
It's not bug 385178 (tested by local backout), so I suspect bug 389677 (the feed is served as text/plain). My local backout of that patch is giving me trouble, though, I'll confirm in a bit.
Comment 2•17 years ago
|
||
Yeah, bug 389677, thus the puzzling way that my copy of the feed at http://dev.philringnalda.com/youtuberss/top_favorites.txt does get preview: it's gzipped, and http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/netwerk/streamconv/converters/nsUnknownDecoder.cpp&rev=1.70&mark=699-700#699 bails on Content-Encoding
Blocks: 389677
Assignee | ||
Updated•17 years ago
|
Component: RSS Discovery and Preview → Networking
Product: Firefox → Core
QA Contact: rss.preview → networking
Target Milestone: --- → mozilla1.9 M9
Assignee | ||
Updated•17 years ago
|
Assignee: nobody → bzbarsky
Summary: No feed preview for http://youtube.com/rss/global/top_favorites.rss → [FIX]No feed preview for http://youtube.com/rss/global/top_favorites.rss
Assignee | ||
Comment 3•17 years ago
|
||
Attachment #280708 -
Flags: superreview?(cbiesinger)
Attachment #280708 -
Flags: review?(cbiesinger)
Comment 5•17 years ago
|
||
Hrm, I think it would be better to throw an error instead, as documented in nsIContentSniffer.idl.
Assignee | ||
Comment 6•17 years ago
|
||
Hmm... Good point.
Assignee | ||
Comment 7•17 years ago
|
||
Attachment #280708 -
Attachment is obsolete: true
Attachment #280948 -
Flags: superreview?(cbiesinger)
Attachment #280948 -
Flags: review?(cbiesinger)
Attachment #280708 -
Flags: superreview?(cbiesinger)
Attachment #280708 -
Flags: review?(cbiesinger)
Updated•17 years ago
|
Attachment #280948 -
Flags: superreview?(cbiesinger)
Attachment #280948 -
Flags: superreview+
Attachment #280948 -
Flags: review?(cbiesinger)
Attachment #280948 -
Flags: review+
Assignee | ||
Comment 8•17 years ago
|
||
Comment on attachment 280948 [details] [diff] [review]
With that change
Requesting 1.9 approval for simple regression fix
Attachment #280948 -
Flags: approval1.9?
Updated•17 years ago
|
Attachment #280948 -
Flags: approval1.9? → approval1.9+
Assignee | ||
Comment 9•17 years ago
|
||
Checked in. I'm not sure how to test it. Does feed preview give a different DOM somehow? That is, could a mochitest that loads such a URI in a subframe reliably detect that a feed has been sniffed?
Or is this just unit-testable somehow?
Status: NEW → RESOLVED
Closed: 17 years ago
Flags: in-testsuite?
Resolution: --- → FIXED
Comment 10•17 years ago
|
||
documentElement.id == "feedHandler" seems like the easiest test for feed preview, offhand.
Assignee | ||
Comment 11•17 years ago
|
||
Is there an obvious DOM that I can try serving as text/plain that would get sniffed as a feed?
Comment 12•17 years ago
|
||
I was going to attach this, but the minimal feed is actually pretty minimal:
<rss version="2.0">
<channel>
<link>http://example.org/</link>
<title>t</title>
</channel>
</rss>
(It could be slightly more minimal, with <title/>, but I think that's maybe a bug.) Load it in an iframe, if the iframe's documentElement is an html with id == "feedHandler" then you pass - it displays as plain text in my build from this morning, and gets feed preview in my build from tonight.
Assignee | ||
Comment 13•17 years ago
|
||
Comment 15•17 years ago
|
||
Is it just me? This bug is giving me a failure when I run it locally. I built a copy of FF, checked out 20071202_202630_PST, with mozconfig:
mk_add_options MOZ_CO_PROJECT=browser
ac_add_options --enable-debug
ac_add_options --enable-application=browser
ac_add_options --enable-test
ac_add_options --enable-gtktest
ac_add_options --enable-mochitest
ac_add_options --enable-libIDLtest
ac_add_options --enable-glibtest
I am on Mac OS X 10.4.10 with a fairly standard tool set.
I launched with "perl ./runtests.pl --autorun".
I see this in the web page when I click on the test:
not ok - Text didn't get sniffed as a feed? got "", expected "feedHandler"
and this in the stdout:
--WEBSHELL 0x157e5e80 == 6
++DOMWINDOW == 40
++WEBSHELL 0x2f750b60 == 7
++DOMWINDOW == 41
[loaded plugin /Library/Internet Plug-Ins/QuickTime Plugin.plugin]
++DOMWINDOW == 42
###!!! ASSERTION: cannot call on a dirty frame not currently being reflowed: '!NS_SUBTREE_DIRTY(this) || (GetStateBits() & NS_FRAME_IN_REFLOW)', file nsFrame.cpp, line 556
###!!! ASSERTION: cannot call on a dirty frame not currently being reflowed: '!NS_SUBTREE_DIRTY(this) || (GetStateBits() & NS_FRAME_IN_REFLOW)', file nsFrame.cpp, line 556
###!!! ASSERTION: cannot call on a dirty frame not currently being reflowed: '!NS_SUBTREE_DIRTY(this) || (GetStateBits() & NS_FRAME_IN_REFLOW)', file nsFrame.cpp, line 556
###!!! ASSERTION: cannot call on a dirty frame not currently being reflowed: '!NS_SUBTREE_DIRTY(this) || (GetStateBits() & NS_FRAME_IN_REFLOW)', file nsFrame.cpp, line 556
###!!! ASSERTION: cannot call on a dirty frame not currently being reflowed: '!NS_SUBTREE_DIRTY(this) || (GetStateBits() & NS_FRAME_IN_REFLOW)', file nsFrame.cpp, line 556
###!!! ASSERTION: cannot call on a dirty frame not currently being reflowed: '!NS_SUBTREE_DIRTY(this) || (GetStateBits() & NS_FRAME_IN_REFLOW)', file nsFrame.cpp, line 556
--DOMWINDOW == 41
--DOMWINDOW == 40
--DOMWINDOW == 39
--DOMWINDOW == 38
--DOMWINDOW == 37
--DOMWINDOW == 36
Only one other test is failing. In case it is related, it is:
/tests/content/html/document/test/test_bug391777.html
Comment 16•17 years ago
|
||
The test was also failing for me a couple weeks back, Fedora 8. I did a little debugging but didn't get far enough to figure out the problem, and I haven't had time to investigate since then.
Comment 17•17 years ago
|
||
Verified in Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9b3pre) Gecko/2007122704 Minefield/3.0b3pre.
Status: RESOLVED → VERIFIED
Comment 18•17 years ago
|
||
For some reason the test fails on my 32 bit Fedora 7, but not on 64 bit Fedora 4 machine.
Comment 19•17 years ago
|
||
er, 64 bit Fedora 7
Assignee | ||
Comment 20•17 years ago
|
||
Do you see the failure on the site too? Or just the test? Does the test obviously fail if you load it standalone? Want to give debugging it a stab?
Assignee | ||
Comment 21•16 years ago
|
||
Note that we just undid this patch by restricting the types feed sniffing will sniff.
You need to log in
before you can comment on or make changes to this bug.
Description
•