Closed Bug 333751 Opened 17 years ago Closed 17 years ago

Land Initial Content Sniffer/Stream Converter for in-page Feed Preview

Categories

(Firefox Graveyard :: RSS Discovery and Preview, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 2 alpha2

People

(Reporter: bugs, Assigned: bugs)

References

Details

(Keywords: fixed1.8.1)

Attachments

(12 files, 6 obsolete files)

97.46 KB, patch
brettw
: review+
Details | Diff | Splinter Review
3.28 KB, patch
benjamin
: review+
Details | Diff | Splinter Review
64.37 KB, patch
Details | Diff | Splinter Review
10.92 KB, patch
Details | Diff | Splinter Review
8.93 KB, patch
Details | Diff | Splinter Review
17.10 KB, patch
brettw
: review+
Details | Diff | Splinter Review
6.04 KB, patch
Details | Diff | Splinter Review
5.03 KB, patch
Details | Diff | Splinter Review
1.90 KB, patch
Details | Diff | Splinter Review
3.95 KB, patch
Details | Diff | Splinter Review
3.27 KB, patch
Details | Diff | Splinter Review
7.29 KB, patch
darin.moz
: review+
Details | Diff | Splinter Review
Need to land patch for in-page feed preview using content sniffing/stream converter so that incremental code review can commence. Will be disabled by default, enable-able using --enable-feeds. We need to get testing on this for PLT regressions.
>+  if (FindInReadable(NS_LITERAL_CSTRING("xmlns=\"http://www.w3.org/2005/atom\""), start_iter, end_iter)) {

If you want to test actually finding any Atom 1.0, I think that needs to either be CaseInsensitiveFindInReadable or /Atom.
>--- configure.in	11 Apr 2006 18:59:11 -0000	1.1651
>+++ configure.in	12 Apr 2006 18:52:14 -0000
>@@ -5729,16 +5730,27 @@ MOZ_ARG_ENABLE_BOOL(places,
>     MOZ_PLACES= )
> if test -n "$MOZ_PLACES"; then
>     AC_DEFINE(MOZ_PLACES)
>     MOZ_MORK=
>     MOZ_MORKREADER=1
> fi
> 
> dnl ========================================================
>+dnl = Enable feeds (new feed handling/processing)
>+dnl ========================================================
>+MOZ_ARG_ENABLE_BOOL(feeds,
>+[  --enable-feeds        Enable in-page feed handling and processing

This sohould be
[  --enable-feeds        Enable in-page feed handling and processing],
No longer blocks: 324588
Attached patch more complete patch (obsolete) — Splinter Review
Adds support for:

- feed: protocol
- window.goats.registerContentHandler/registerProtocolHandler (to be moved and more completely implemented later)
- web feed handlers (magic!)
- gzip decoding for the content sniffer

Much remains before any of this can be turned on, but closer to checkin.
Attachment #218192 - Attachment is obsolete: true
Attached patch patch (obsolete) — Splinter Review
Includes support for:

- client readers
Attachment #219092 - Attachment is obsolete: true
Attached patch patch (obsolete) — Splinter Review
more work on the web handler registry
Attachment #219170 - Attachment is obsolete: true
Attachment #219662 - Attachment is obsolete: true
I tried applying the latest patch, but it seems to be missing the file WebContentConverter.js. Is it necessary, or can it be removed from the Makefile?
Attached patch patch, with WCCR this time (obsolete) — Splinter Review
Attachment #219665 - Attachment is obsolete: true
Attachment #219822 - Attachment is obsolete: true
Attachment #219836 - Flags: review?(brettw)
Why the extra sniff for the RDF namespace URI? What would have "<rdf:RDF" and the RSS 1.0 namespace URI, but not the RDF namespace URI?
Comment on attachment 219836 [details] [diff] [review]
gigantor patch for checkin

It seems weird to me to pass URIs as AStrings. Usually I think we do it with UTF8 or nsIURI.

(We discussed changing the pref names in person.)
Attachment #219836 - Flags: review?(brettw) → review+
Comment on attachment 219898 [details] [diff] [review]
configure changes only

Please add "(Firefox)" to the configure help text, so it's clear this is a firefox-only configure option.
Attachment #219898 - Flags: review?(benjamin) → review+
Is the check-in of the empty (and unused, AFAICT) feedhandler.properties on 
purpose?
This does a bunch of opportunistic browser integration:

- makes the feed icon in the url bar show the preview page instead of "Add Live Bookmark" + updates tooltip text etc to not mention Live Bookmarks rather just say "Subscribe"...
- adds "Choose Feed Reader..." button to the general page of preferences (tbd: better location)
- do not register window.goats as a property on web page window objects, instead just seed the web content type handler registry with some demo links for a2 in firefox.js

brett: review this and my next patch will be to fix the pref names, promise!
Attachment #220575 - Flags: review?(brettw)
Attachment #220575 - Flags: review?(brettw) → review+
moves browser.contentType.types.type0 etc to:

browser.contentType.types.0.type
browser.contentType.types.0.uri
browser.contentType.types.0.title
ensure we include the correct image
Attachment #220837 - Flags: review?(darin)
Attachment #220837 - Flags: review+
Attachment #220837 - Flags: approval-branch-1.8.1+
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20060504 BonEcho/2.0a1 ID:2006050419

Bug on Subscription Options Window
screen shot : http://img157.imageshack.us/img157/8027/asa7eu.jpg
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a1) Gecko/20060504 Minefield/3.0a1 ID:2006050417 [cairo]

acc Tinderbox->Turned ON on trunk
but it does not work at all.
"This XML file does not appear to have any style information associated with it. The document tree is shown below." message for every feed I tried
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060504 Minefield/3.0a1 ID:2006050417 [cairo]

new profile and no extension/theme (all default).

Bug on Subscription Options Window
screen shot : http://img85.imageshack.us/img85/4180/rss8kf.jpg
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20060505 BonEcho/2.0a1 ID:2006050504

JS console error, if click/select "Use a Web Site"

screen shot : http://img317.imageshack.us/img317/1488/uws0lz.jpg
Depends on: 336755
So this is spamming my terminal with things like:

  *** WCCR.init: There are 4 handlers registered in preferences.

at startup in an opt build.  Could we please make debug output #ifdef DEBUG or something?
*** Bug 294715 has been marked as a duplicate of this bug. ***
These commits caused a regression under BeOS.  "General" Preferences pane no longer functions.  Bug 342639 opened for BeOS bug.
Blocks: 342639
No longer blocks: 342639
Depends on: 342639
don't see why this is open. marking fixed
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Keywords: fixed1.8.1
Product: Firefox → Firefox Graveyard
You need to log in before you can comment on or make changes to this bug.