72 Commits

Author SHA1 Message Date
bzbarsky%mit.edu
bd3f032f5d Sniff "text/plain; charset=UTF8" for possibly being binary. Bug 394647, r+sr=biesi
git-svn-id: svn://10.0.0.236/trunk@240332 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-03 18:37:54 +00:00
bzbarsky%mit.edu
e2660da1a9 When sniffing text/plain and we decide it's really text/plain, just claim the sniffer didn't find a type, so that other sniffers get a crack at it. Bug 395533, r+sr=biesi, a=bsmedberg
git-svn-id: svn://10.0.0.236/trunk@236101 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-17 15:53:57 +00:00
bzbarsky%mit.edu
c747f19f60 Make <object> do the same text/plain sniffing that <iframe> does, and use the
content type hint if the type comes back as application/octet-stream or
sniffed-binary.  Bug 389677, r+sr=biesi, a=sicking


git-svn-id: svn://10.0.0.236/trunk@232437 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-21 03:26:13 +00:00
jwalden%mit.edu
dda6ff3c99 Bug 348748 - Replace all instances of NS_STATIC_CAST and friends with C++ casts (and simultaneously bitrot nearly every patch in existence). r=bsmedberg on the script that did this. Tune in next time for Macro Wars: Episode II: Attack on the LL_* Macros.
git-svn-id: svn://10.0.0.236/trunk@229504 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-08 07:08:56 +00:00
darin%meer.net
c2ccb7362f fixes bug 342581 "Crash on installing extension [@nsXPInstallManager::OnDataAvailable]" r=biesi sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@206306 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-01 17:17:32 +00:00
neil%parkwaycc.co.uk
b0aaf52946 Fixing VC6 debug build bustage b=328038 r=biesi sr=darin
git-svn-id: svn://10.0.0.236/trunk@190820 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-22 12:57:23 +00:00
cbiesinger%web.de
86be7ed52e bug 325177 r=darin sr=bz
- add a "request" parameter to nsIContentSniffer
- make the unknowndecoder implement nsIContentSniffer
- make nsBaseChannel do type detection via nsIContentSniffer rather than a
  stream converter


git-svn-id: svn://10.0.0.236/trunk@190362 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-17 16:54:27 +00:00
cbiesinger%web.de
1f85025d5b 290371
- check the return value of FireListenerNotifications so that ODA does not get
  called if OnStartRequest or a previous ODA returned failure
- make sure to always call OnStartRequest
r=darin sr=bz a=asa


git-svn-id: svn://10.0.0.236/trunk@172550 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-21 18:21:48 +00:00
dbaron%dbaron.org
2b0e25d7a2 Fix common misspelling of delimiter and delimited (de-limit-er, not deli-meter). b=106386 r=timeless
git-svn-id: svn://10.0.0.236/trunk@168825 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-05 00:49:25 +00:00
cbiesinger%web.de
93911f8605 Bug 247981 necko depends on libpr0n
r=pavlov sr=darin


git-svn-id: svn://10.0.0.236/trunk@159487 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-19 18:53:02 +00:00
cbiesinger%web.de
5999fe7ca6 bug 248810 nsIStreamConverter[Service] uses wide strings for mime types
r+sr=darin


git-svn-id: svn://10.0.0.236/trunk@158580 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-29 16:45:07 +00:00
gerv%gerv.net
586f796c2a Bug 236613: change to MPL/LGPL/GPL tri-license.
git-svn-id: svn://10.0.0.236/trunk@155091 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-18 22:01:16 +00:00
cbiesinger%web.de
39f2b721ec Bug 235502 nsIMIMEService, nsIMIMEInfo should use nsACString/nsAString instead of string/wstring
r=bzbarsky sr=darin


git-svn-id: svn://10.0.0.236/trunk@154941 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-15 20:56:37 +00:00
bzbarsky%mit.edu
22647bb6d9 Bug 238706 -- the guess-from-ext should never be exposed to the outside world.
r=biesi, sr=darin, a=chofmann


git-svn-id: svn://10.0.0.236/trunk@154394 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-30 23:52:00 +00:00
bzbarsky%mit.edu
900c6b8462 Work around misconfiguration in default Apache installs that makes it claim all
sorts of stuff as text/plain.  Bug 220807, r=biesi, sr=darin


git-svn-id: svn://10.0.0.236/trunk@151013 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-08 03:56:02 +00:00
bzbarsky%mit.edu
d8c2b8e063 Fix silly operator precedence error. Bug 226230, r=biesi, sr=darin, a=brendan
git-svn-id: svn://10.0.0.236/trunk@149583 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-20 17:31:15 +00:00
bzbarsky%mit.edu
205a8aa5f3 Decide it's application/octet-stream if it contains any ASCII control chars,
not just if it contains a null byte.  Bug 126782, r+sr=darin


git-svn-id: svn://10.0.0.236/trunk@149497 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-18 15:10:56 +00:00
bzbarsky%mit.edu
01e4c21953 Detect <iframe> as HTML. Bug 224932, r+sr=darin
git-svn-id: svn://10.0.0.236/trunk@149273 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-13 23:22:49 +00:00
bzbarsky%mit.edu
ec866c4e4e Fix possible access to unitialized memory. Bug 221189, r=biesi, sr=darin
git-svn-id: svn://10.0.0.236/trunk@147569 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-04 20:27:32 +00:00
bryner%brianryner.com
109d623425 Fix build on gcc 3.4 by removing extra semicolons (bug 218551). r/sr=dbaron, a=brendan.
git-svn-id: svn://10.0.0.236/trunk@146624 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-07 23:12:15 +00:00
bzbarsky%mit.edu
63338619cd Try to reduce codesize a tad. Bug 213825, r=biesi, sr=jag
git-svn-id: svn://10.0.0.236/trunk@145402 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-30 23:16:29 +00:00
bzbarsky%mit.edu
ff298f600d Make more tags trigger detection of the file as HTML. Bug 213825, r=biesi, sr=darin
git-svn-id: svn://10.0.0.236/trunk@145385 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-30 17:58:56 +00:00
bzbarsky%mit.edu
426ad31224 Detect stuff that starts with "<head" as HTML. Bug 213416, r=biesi, sr=darin
git-svn-id: svn://10.0.0.236/trunk@145068 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-22 17:06:46 +00:00
darin%netscape.com
2d7cb25892 fixes bug 212598 "netwerk/ should not use nsIPref" r=dougt,caillon sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@144851 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-14 21:36:24 +00:00
bzbarsky%mit.edu
5bc7be0507 prettify HTML-detection a bit; make it a little less likely to detect HTML.
Bug 144672, r=bbaetz, sr=darin


git-svn-id: svn://10.0.0.236/trunk@140721 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-04 22:46:50 +00:00
darin%netscape.com
7e326ab1c2 fixes bug 200365 "trunk topcrash [@ nsUnknownDecoder::SniffForImageMimeType]"
r=dougt sr=bz


git-svn-id: svn://10.0.0.236/trunk@140651 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-03 19:36:27 +00:00
bzbarsky%mit.edu
60594a7bbe Fix solaris and BSD/OS build bustage
git-svn-id: svn://10.0.0.236/trunk@136201 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-11 21:25:57 +00:00
bzbarsky%mit.edu
a1ffd3dd93 Add sniffing of XML files. Reorganize the sniffing code to make plugging in
new sniffers simpler.  Bug 186884, r=bbaetz, sr=darin


git-svn-id: svn://10.0.0.236/trunk@136199 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-11 19:34:13 +00:00
dbaron%dbaron.org
855a1b80fa Bug 178643: Remove uses of NS_INIT_ISUPPORTS, since it is no longer needed. r=timeless sr=jag
git-svn-id: svn://10.0.0.236/trunk@136019 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-08 22:35:09 +00:00
bzbarsky%mit.edu
8fd8d79350 Prioritize data-sniffing over extension-sniffing for ftp and http. Bug
177026, r=rpotts, sr=darin


git-svn-id: svn://10.0.0.236/trunk@133205 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-06 22:29:17 +00:00
bzbarsky%mit.edu
de517e6915 Allow view-source to handle arbitrary content (as text-plain, in the
worst case).  Bug 77337, r=jst, sr=darin


git-svn-id: svn://10.0.0.236/trunk@128740 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-03 22:10:08 +00:00
bzbarsky%mit.edu
7a3a458150 make view-source work on sites sending no content-type header. Bug
86835, r=bbaetz, sr=rpotts


git-svn-id: svn://10.0.0.236/trunk@121544 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-15 20:09:07 +00:00
bzbarsky%mit.edu
644aba347a Detect raw <META> tags as HTML. Bug 143611, r=timeless, sr=darin.
git-svn-id: svn://10.0.0.236/trunk@121510 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-15 02:14:26 +00:00
cbiesinger%web.de
cf03b9b3e2 bug 104906 r=pavlov sr=tor a=asa
imgRequest::SniffMimeType and nsUnknownDecoder::SniffForImageMimeType should be one function


git-svn-id: svn://10.0.0.236/trunk@117305 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-23 13:21:33 +00:00
darin%netscape.com
8defbf5d26 b=128508 "freeze nsIChannel nsIRequest" r=gagan, sr=rpotts, a=asa
git-svn-id: svn://10.0.0.236/trunk@117002 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-20 22:50:33 +00:00
bzbarsky%mit.edu
f68919f405 Relanding the Compare --> Equals conversion. a=mcafee
git-svn-id: svn://10.0.0.236/trunk@114163 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-10 15:49:46 +00:00
bzbarsky%mit.edu
ffecf7f104 Testing performance impact of backout of what's left of the patch from
bug 115289.  See bug 123947 for details. a=mcafee


git-svn-id: svn://10.0.0.236/trunk@114152 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-09 20:46:05 +00:00
bzbarsky%mit.edu
2fd80b82c9 Convert Compare() to Equals() where possible now that we can do
case-insensitive Equals().  Bug 115289, r=alecf, sr=jag


git-svn-id: svn://10.0.0.236/trunk@113665 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 02:03:07 +00:00
bzbarsky%mit.edu
e72122a020 Make the unknown decoder pick up <table> and <div>. Bug 83480, r=rpotts,
sr=darin


git-svn-id: svn://10.0.0.236/trunk@113526 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 16:10:04 +00:00
cathleen%netscape.com
3ae7a2346b eliminate nsCRT::memcmp and all callers to use memcmp instead, bug 118135 r=dp sr=brendan
git-svn-id: svn://10.0.0.236/trunk@113144 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 21:30:32 +00:00
brade%netscape.com
c059175b3b remove unused static KStreamConverterServiceCID saving 16 bytes (bug 117927; rs=darin)
git-svn-id: svn://10.0.0.236/trunk@111675 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-09 14:36:22 +00:00
tor%cs.brown.edu
07b40ad301 Bug 66976 - turn on libpr0n MNG decoder. r=pavlov, sr=brendan.
Mac build patch by conrad, r=pinkerton, sr=sfraser


git-svn-id: svn://10.0.0.236/trunk@110639 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-17 22:07:03 +00:00
jaggernaut%netscape.com
436d43f211 Bug 104158: Use NS_LITERAL_STRING instead of XXXWithConversion("..."). r=bryner, rs=alecf
git-svn-id: svn://10.0.0.236/trunk@110579 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-16 11:58:03 +00:00
bzbarsky%mit.edu
c876bd8d34 For files starting with "#!" check whether the buffer contains any nulls
before deciding whether they are plain text.  Bug 110767, r=bbaetz, sr=rpotts


git-svn-id: svn://10.0.0.236/trunk@109023 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 21:20:25 +00:00
bzbarsky%mit.edu
1fb836ea17 Add detection of PDF and PostScript to the unknown content decoder.
Bugs 110662 and 110663, r=bbaetz, sr=rpotts


git-svn-id: svn://10.0.0.236/trunk@108486 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-19 20:25:53 +00:00
hyatt%netscape.com
5cc58cb983 Fixing 18502, I misapplied the patch and checked in duplicate lines of code. Backing out.
git-svn-id: svn://10.0.0.236/trunk@107252 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 12:00:32 +00:00
hyatt%netscape.com
f908dd5b01 Fix for 18502, Christian Biesinger's BMP decoder and my ICO decoder. r/sr=pavlov,jband
git-svn-id: svn://10.0.0.236/trunk@107234 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 07:10:51 +00:00
jaggernaut%netscape.com
5e2a1a7476 Bug 53057: Fixing up users of implicit |CharT*| conversion operators for nsCString to use |.get()| instead, rr=dbaron, rs=scc
git-svn-id: svn://10.0.0.236/trunk@106206 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-24 23:47:43 +00:00
gerv%gerv.net
13afb6d0f9 Relicensing Round 1, Take 2. Most C-like NPL files -> NPL/GPL/LGPL. Bug 98089.
git-svn-id: svn://10.0.0.236/trunk@104119 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-28 20:14:13 +00:00
darin%netscape.com
c46e6c43d1 Fixes bug 92438 "http 0.9 rendered as content-type: text/plain with Java applets"
patch=cahagn_o@epita.fr, r=bbaetz, sr=darin


git-svn-id: svn://10.0.0.236/trunk@100168 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-02 00:54:30 +00:00