Closed
Bug 247981
Opened 21 years ago
Closed 21 years ago
necko depends on libpr0n
Categories
(Core :: Networking, defect)
Core
Networking
Tracking
()
RESOLVED
FIXED
mozilla1.8alpha3
People
(Reporter: Biesinger, Assigned: Biesinger)
Details
Attachments
(1 file, 2 obsolete files)
18.64 KB,
patch
|
bugs
:
approval-aviary+
mkaply
:
approval1.7.5-
|
Details | Diff | Splinter Review |
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.
Assignee | ||
Comment 1•21 years ago
|
||
like this, maybe...
creates a new nsIContentSniffer interface which lives in necko, and which is
implemented by libpr0n (imgLoader)
Assignee | ||
Comment 2•21 years ago
|
||
Comment on attachment 151382 [details] [diff] [review]
patch
what do you think?
Attachment #151382 -
Flags: superreview?(darin)
Attachment #151382 -
Flags: review?(pavlov)
Assignee | ||
Comment 3•21 years ago
|
||
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)
Assignee | ||
Comment 4•21 years ago
|
||
with special thanks to nsICategoryManager and our enumerator interfaces.
Assignee | ||
Updated•21 years ago
|
Attachment #151764 -
Flags: review?(pavlov)
Comment 5•21 years ago
|
||
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+
Assignee | ||
Updated•21 years ago
|
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.8alpha2
Assignee | ||
Updated•21 years ago
|
Target Milestone: mozilla1.8alpha2 → mozilla1.8beta
Updated•21 years ago
|
Attachment #151764 -
Flags: review?(pavlov) → review+
Assignee | ||
Comment 6•21 years ago
|
||
- 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
Assignee | ||
Comment 7•21 years ago
|
||
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...
Assignee | ||
Comment 9•21 years ago
|
||
(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)
Assignee | ||
Updated•21 years ago
|
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 11•21 years ago
|
||
Attachment #153690 -
Flags: approval-aviary+
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?
Updated•21 years ago
|
Flags: blocking-aviary1.0?
Comment 13•21 years ago
|
||
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 14•21 years ago
|
||
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.
Description
•