140 Commits

Author SHA1 Message Date
cbiesinger%web.de
fb58925c66 bug 336108 add OOM check. r+sr+a=bz
git-svn-id: svn://10.0.0.236/trunk@195767 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-01 18:37:08 +00:00
bzbarsky%mit.edu
2cab058f54 Don't go out to the helper app service if we're dealing with an error page.
Bug 312727, r=biesi, sr=darin


git-svn-id: svn://10.0.0.236/trunk@195577 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-27 18:00:36 +00:00
cbiesinger%web.de
a8bf94019e bug 321932 r=bz sr=darin
Better handle the case where channels don't implement isPending correctly


git-svn-id: svn://10.0.0.236/trunk@188388 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-28 14:06:31 +00:00
cbiesinger%web.de
ab0c43a10c 309525 add a method to nsIURILoader that accepts a (possibly already opened)
channel and returns a streamlistener for getting the data. Add a flag
DONT_RETARGET for ensuring that content will load in a specific docshell or not
at all.

Also, fix nsChromeProtocolHandler to correctly implement IsPending.

r=bz sr=darin


git-svn-id: svn://10.0.0.236/trunk@186205 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-17 18:26:25 +00:00
bzbarsky%mit.edu
945d5c061c When doing text/plain sniffing, don't let the special MIME types we use for the
purpose leak out of the URILoader/exthandler combination.  Bug 300027, r=biesi,
sr=darin, a=bsmedberg


git-svn-id: svn://10.0.0.236/trunk@176002 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-13 16:48:01 +00:00
darin%meer.net
cbaa8c91c2 fixes bug 276720 "HTTP 204/205 responses should not cause STATE_TRANSFERRING events to be synthesized" r=biesi sr=bz
git-svn-id: svn://10.0.0.236/trunk@169144 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-12 00:40:46 +00:00
bzbarsky%mit.edu
90a640bdff Make docshell inherit from docloader; clean up related code, move toward
eliminating the nsIWebShell, nsIWebShellContainer, nsIDocumentLoader
interfaces and clarifying the other docshell-related interfaces.
r=darin, biesi, sr=jst


git-svn-id: svn://10.0.0.236/trunk@166435 18797224-902f-48f8-a5cc-f745e15eee43
2004-12-08 17:32:06 +00:00
bzbarsky%mit.edu
7c38e63eb7 Only sniff text/plain types if the channel says it's still text/plain (this may
be changed after the header is parsed by other components, eg ones listening to
HTTP notifications).  Bug 273306, r=biesi, sr=darin


git-svn-id: svn://10.0.0.236/trunk@166365 18797224-902f-48f8-a5cc-f745e15eee43
2004-12-07 00:27:50 +00:00
bzbarsky%mit.edu
028cddf80a Treat an empty disposition string the same as it not being set. Bug 272541,
r=biesi, sr=darin


git-svn-id: svn://10.0.0.236/trunk@166242 18797224-902f-48f8-a5cc-f745e15eee43
2004-12-04 17:46:49 +00:00
jshin%mailaps.org
74f778e521 bug 267475 Clicking links to JPEG file with Chinese name download the file instead of displaying it in browser r=cbie, sr=bz
git-svn-id: svn://10.0.0.236/trunk@165080 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-07 02:22:55 +00:00
cbiesinger%web.de
cf0e63224c Bug 234257 nsIDocumentLoader/nsDocLoader misc cleanup
r=bz sr=darin


git-svn-id: svn://10.0.0.236/trunk@162891 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-28 20:48:58 +00:00
darin%meer.net
2355edaa02 landing additional patch for bug 257308 "Visual indicators of site security appear for the wrong site" r=biesi sr=bz
git-svn-id: svn://10.0.0.236/trunk@162510 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-17 20:33:25 +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
roc+%cs.cmu.edu
0b0fa89131 Bug 226439. Convert codebase to use AppendLiteral/AssignLiteral/LowerCaseEqualsLiteral. r+sr=darin
git-svn-id: svn://10.0.0.236/trunk@157992 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-17 00:13:25 +00:00
roc+%cs.cmu.edu
bdc7e5f59b Bug 226439. Convert Seamonkey to EqualsLiteral. rs=darin
git-svn-id: svn://10.0.0.236/trunk@156785 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-22 22:15:22 +00:00
gerv%gerv.net
8419e1650f Bug 236613: change to MPL/LGPL/GPL tri-license.
git-svn-id: svn://10.0.0.236/trunk@155030 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-17 16:52:41 +00:00
cbiesinger%web.de
34df912ac0 bug 239604. make uriloader more doxygen friendly, and remove unused "command"
parameter from nsIContentHandler::handleContent, and change the type of
aWindowContext to nsIInterfaceRequestor.
r=bzbarsky sr=darin


git-svn-id: svn://10.0.0.236/trunk@154988 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-16 21:06:07 +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
d2ffb7c95e Temporarily disable type-guessing for content-encoded text/plain content. Bug
233047, r=biesi, sr=darin, a=chofmann


git-svn-id: svn://10.0.0.236/trunk@153966 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-15 02:00:15 +00:00
jst%mozilla.jstenback.com
6629ad58f7 Fixing bug 232503. Start using Empty[C]String() to save a bit on code-size. r+sr=peterv@propagandism.org
git-svn-id: svn://10.0.0.236/trunk@152045 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-29 22:04:45 +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
cbiesinger%web.de
4d13cc97b4 bug 229785 also allow "Content-Disposition: name=foo" headers, in addition to filename=foo
r=bzbarsky sr=darin


git-svn-id: svn://10.0.0.236/trunk@150988 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-07 20:23:46 +00:00
bzbarsky%mit.edu
a152f4eba8 Add NSPR logging to content dispatch (not forced on in release builds; the
module is "URILoader").  Bug 223694, r=biesi, sr=darin


git-svn-id: svn://10.0.0.236/trunk@148500 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-30 02:03:41 +00:00
bzbarsky%mit.edu
a527291238 Forgot to make these changes per biesi's review. Bug 171025.
git-svn-id: svn://10.0.0.236/trunk@147787 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-09 06:28:49 +00:00
bzbarsky%mit.edu
0e716d3a6c Move all URI dispatch code into nsDocumentOpenInfo. This lets us try other
content listeners if the first one we find fails, as well as letting us
gracefully handle failures to get content converters.  Bug 171025, r=biesi,
sr=darin


git-svn-id: svn://10.0.0.236/trunk@147784 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-09 04:00:01 +00:00
bryner%brianryner.com
ef58713352 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@146625 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-08 00:18:24 +00:00
cbiesinger%web.de
958e77488b 188058 r=bzbarsky sr=darin When saving a .zip file "as...," Moz appends a .x after the .zip extension.
git-svn-id: svn://10.0.0.236/trunk@144345 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-01 14:16:06 +00:00
jshin%mailaps.org
d31acaf3a2 bug 209513 : be generous to broken servers emiitng 'filename=...' without
specifying the dispositin type spec in Content-Disposition header.
(r/sr=bzbarsky)


git-svn-id: svn://10.0.0.236/trunk@143850 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-18 09:07:58 +00:00
jshin%mailaps.org
281909a0e0 wrapping up bug 162765 : r=cbiesinger, sr=bz : Make the disposition method
comparison use EqualsIgnoreCase without the 2nd argument (length) when
parsing Content-Disposition header in http


git-svn-id: svn://10.0.0.236/trunk@143689 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-13 21:46:07 +00:00
jshin%mailaps.org
ffbdd48af4 bug 167265 : add to necko Content-Disposition header handling per RFC 2231 (with
fallbacks to RFC 2047 and raw 8bit chars in |aOriginCharset| ) necessary for
i18nized filename support (when downloading files via http) :
r=cbiesinger, sr=alecf


git-svn-id: svn://10.0.0.236/trunk@143647 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-12 21:57:49 +00:00
bzbarsky%mit.edu
b8e8019889 Clean up nsURILoader.cpp some. Better comments, more understandable code in
nsDocumentOpenInfo::DispatchContent, less confusing use of RetargetOutput
(which is now ConvertData).  Bug 201618, r=darin, sr=sspitzer.


git-svn-id: svn://10.0.0.236/trunk@141054 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-12 03:36:53 +00:00
bzbarsky%mit.edu
1ffea9f4ef Removing unused openURIVia function. Bug 200223, r+sr=sspitzer.
git-svn-id: svn://10.0.0.236/trunk@140769 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-06 20:33:38 +00:00
suresh%netscape.com
d6dfe866a8 bug 49172 - Browser fails to respond correctly to a 205 (reset) status. r-dougt, sr-darin.
git-svn-id: svn://10.0.0.236/trunk@139802 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-19 23:55:12 +00:00
dbaron%dbaron.org
6ed727cbe8 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@136028 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-08 23:19:20 +00:00
bzbarsky%mit.edu
d795c711b3 more nsCOMArray goodness -- uriloader, this time. Bug 183656, r=timeless,
sr=rpotts


git-svn-id: svn://10.0.0.236/trunk@135081 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-11 00:15:19 +00:00
timeless%mozdev.org
f03fa70722 Bug 183623 malformed for loop results in infinite loop in [@ nsURILoader::DispatchContent]
r=bz sr=darin a=asa


git-svn-id: svn://10.0.0.236/trunk@134854 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-05 21:44:28 +00:00
bzbarsky%mit.edu
a90238e37d Any disposition that's not "inline" should be treated as "attachment".
Bug 172003, r=bbaetz, sr=rpotts


git-svn-id: svn://10.0.0.236/trunk@133765 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-13 21:17:40 +00:00
scc%mozilla.org
a911ffae5e bug #167722, patch by Donnie Cranford, r=gisburn, sr=scc; ports bustage,
must include "nsReadableUtils.h"


git-svn-id: svn://10.0.0.236/trunk@130563 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-27 01:30:04 +00:00
rpotts%netscape.com
3a57250c07 bug #169583 (r=jst, sr=darin) URILoader should allow nsIContentHandler::DoContent() to fail...
git-svn-id: svn://10.0.0.236/trunk@130365 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-24 19:53:43 +00:00
bzbarsky%mit.edu
ccde92f9ab Honor content-disposition: attachment even when it's set on content we
can handle internally. Bug 98360, r=law,rpotts, sr=darin. Correct
whitespace this time.


git-svn-id: svn://10.0.0.236/trunk@128739 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-03 22:00:22 +00:00
bzbarsky%mit.edu
dd584a1b1c doh. Wrong patch version (-w). backing it out and fixing the whitespace...
git-svn-id: svn://10.0.0.236/trunk@128732 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-03 21:47:44 +00:00
bzbarsky%mit.edu
d6efaf6bdf Honor content-disposition: attachment even when it's set on content we
can handle internally.  Bug 98360, r=law,rpotts, sr=darin


git-svn-id: svn://10.0.0.236/trunk@128731 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-03 21:46:25 +00:00
dougt%netscape.com
d6cc711878 Fixes mozilla/strings requiring unfrozen nsCRT class. patch by scc, r=dougt, sr=jag, b=136756
git-svn-id: svn://10.0.0.236/trunk@121534 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-15 18:55:21 +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
811129713e Make it possible to save parts of multipart streams. Bug 117958, patch
by rpotts@netscape.com, r=bzbarsky, sr=darin, a=asa


git-svn-id: svn://10.0.0.236/trunk@116078 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-07 20:57:55 +00:00
rpotts%netscape.com
d3d1f630c6 Backing out the patch for bug #120113. To clear smoketest blocker...
git-svn-id: svn://10.0.0.236/trunk@112348 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 19:01:43 +00:00
rpotts%netscape.com
03c727b10a bugscape #11602. Embedding clients were unable to render data if no content-type was available... This is a temporary patch that will be replaced with a correct fix soon...
git-svn-id: svn://10.0.0.236/trunk@112150 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 02:41:05 +00:00
kaie%netscape.com
79b0d6b360 b=109777 Make sure certificate downloading works immediately
r=javi sr=mscott


git-svn-id: svn://10.0.0.236/trunk@109281 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 00:07:13 +00:00
rpotts%netscape.com
168c3705c6 bug #106558 (r=darin) again! make sure that all initial stream errors prevent the creation of a content viewer!
git-svn-id: svn://10.0.0.236/trunk@107950 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-13 07:47:22 +00:00
blizzard%redhat.com
e31fa995ed back out rpotts' checkin for bug #106558 since it caused blocker bug #108869. r=mscott
git-svn-id: svn://10.0.0.236/trunk@107614 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 19:56:27 +00:00