Closed Bug 247981 Opened 21 years ago Closed 21 years ago

necko depends on libpr0n

Categories

(Core :: Networking, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.8alpha3

People

(Reporter: Biesinger, Assigned: Biesinger)

Details

Attachments

(1 file, 2 obsolete files)

so... long ago (2002-03-23 05:21 bug 104906), I made nsUnknownDecoder depend on imagelib. this means necko depends on libpr0n -> gfx -> layout. so a standalone necko build requires building layout. that's not optimal.
Attached patch patch (obsolete) — Splinter Review
like this, maybe... creates a new nsIContentSniffer interface which lives in necko, and which is implemented by libpr0n (imgLoader)
Comment on attachment 151382 [details] [diff] [review] patch what do you think?
Attachment #151382 - Flags: superreview?(darin)
Attachment #151382 - Flags: review?(pavlov)
Comment on attachment 151382 [details] [diff] [review] patch I'll make this enumerate a category instead...
Attachment #151382 - Attachment is obsolete: true
Attachment #151382 - Flags: superreview?(darin)
Attachment #151382 - Flags: review?(pavlov)
Attached patch patch v2 (obsolete) — Splinter Review
with special thanks to nsICategoryManager and our enumerator interfaces.
Attachment #151764 - Flags: review?(pavlov)
Comment on attachment 151764 [details] [diff] [review] patch v2 >Index: netwerk/build/Makefile.in >Index: netwerk/protocol/http/src/nsHttpDigestAuth.cpp >Index: netwerk/protocol/http/src/nsHttpDigestAuth.h changes in these files seem like they belong in a different bug. >Index: netwerk/base/public/nsIContentSniffer.idl >+interface nsIContentSniffer : nsISupports { opening bracket on a new line for necko? >Index: netwerk/streamconv/converters/nsUnknownDecoder.cpp > PRBool nsUnknownDecoder::SniffForImageMimeType(nsIRequest* aRequest) ... >+ catMan->EnumerateCategory("content-sniffers", getter_AddRefs(sniffers)); i guess there's no point in specifying that we want content sniffers for image types. should SniffForImageMimeType be named differently? >+ nsXPIDLCString contractid; >+ nsresult rv = sniffer_id->ToString(getter_Copies(contractid)); nit: call GetData instead so you can take advantage of string sharing. sr=darin
Attachment #151764 - Flags: superreview+
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.8alpha2
Target Milestone: mozilla1.8alpha2 → mozilla1.8beta
Attachment #151764 - Flags: review?(pavlov) → review+
Attached patch final patchSplinter Review
- using TryContentSniffers as the new name for SniffImageType - uses content-sniffing-services as the category name, to make it clear that they are used as services, not via CreateInstance
Attachment #151764 - Attachment is obsolete: true
checked in
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Does this allow extensions to add arbitrary content sniffing capabilities? That doesn't seem like the best of ideas...
(In reply to comment #8) > Does this allow extensions to add arbitrary content sniffing capabilities? That > doesn't seem like the best of ideas... No, just in the case where mozilla does not have a content type available (FTP, HTTP with no content-type header sent, local files with unknown/no extension)
Target Milestone: mozilla1.8beta → mozilla1.8alpha3
Requesting aviary1.0, would like to move this over so that I can use the sniffer to figure out whether favicon data is a real image or not. Will fix some of the issues of junk data getting sent and stored incorrectly. (sniffer fix is a byproduct of this patch)
Flags: blocking-aviary1.0?
Comment on attachment 153690 [details] [diff] [review] final patch In on aviary, requesting approval-1.7.3 to keep gecko in sync.
Attachment #153690 - Flags: approval1.7.3?
Flags: blocking-aviary1.0?
Comment on attachment 153690 [details] [diff] [review] final patch a=mkaply for 1.7.3
Attachment #153690 - Flags: approval1.7.3? → approval1.7.3+
Comment on attachment 153690 [details] [diff] [review] final patch I changed my mind. This changes an interface and gives us no bang for the buck.
Attachment #153690 - Flags: approval1.7.x+ → approval1.7.x-
Ok; Will back this out of the 1.7 branch asap.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: