172 Commits

Author SHA1 Message Date
mscott%netscape.com
afee16d009 Bug #80866 --> new helper app dialog design. Also fixes 87888
r=hewitt
sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@98130 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-28 02:18:54 +00:00
jaggernaut%netscape.com
179eedd115 Bug 78458: ``Remove our broken text/rtf support'', patch by Boris Zbarsky <bzbarsky@mit.edu>, r=harishd, sr=jst
git-svn-id: svn://10.0.0.236/trunk@97928 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-26 05:22:23 +00:00
ducarroz%netscape.com
77c1dd4551 Fix for bug 84065. Add an AppleFileDecoder into the stream converters and modify save/save all attachment in order to be able to select the decoder when dealing with an apple double attachment. R=mscott, SR=sspitzer, A=asa@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@97886 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-25 22:11:43 +00:00
dougt%netscape.com
5c5c39e4be Landing url parsing branch. 73845. r=alecf@netscape.com, sr=darin@netscape.com, a=blizzard@rednat.com.
This fixes many crashes caused by illegal uses of the nsStdURL.
This also allows a plugable protocol to provide their own url parser.


git-svn-id: svn://10.0.0.236/trunk@97696 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-21 22:02:47 +00:00
syd%netscape.com
a28485a2bd Fix for 80171 -- browser not recognizing xpi -- patch from bill law, r=me, sr=mscott,
a=blizzard


git-svn-id: svn://10.0.0.236/trunk@97268 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-16 01:10:22 +00:00
sgehani%netscape.com
49e70d2f2a Ability to force always asking before opening a helper app.
b  = 84241
r  = vishy
sr = mscott
a  = asa


git-svn-id: svn://10.0.0.236/trunk@96520 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-06 08:17:39 +00:00
ducarroz%netscape.com
8b9597f0b8 Fix for bug 84054. Appledouble files weren't correctly detected and AppleSingle weren't correctly generated if they don't have a datafork. R=varada, SR=bienvenu, A=chofmann
git-svn-id: svn://10.0.0.236/trunk@96408 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-05 04:53:34 +00:00
rpotts%netscape.com
c115fad344 bug #65777 (r=valeski, sr=mscott) - Window targeting fixes...
git-svn-id: svn://10.0.0.236/trunk@94846 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-14 03:43:54 +00:00
darin%netscape.com
81e317535f Http branch landing: changes to other files (bug 76866) r=gagan,sr=dougt,a=chofmann
git-svn-id: svn://10.0.0.236/trunk@94682 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-11 21:05:08 +00:00
law%netscape.com
0e03bf0a13 Backing out this fix; it causes us to crash and burn if we encounter a url with .xul extension but content-type text/xul instead of application/vnd.mozilla.xul+xml; will fix that tomorrow
git-svn-id: svn://10.0.0.236/trunk@93924 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-04 10:26:56 +00:00
law%netscape.com
d2028b1bc7 c/true/PR_TRUE/ to fix ports bustage
git-svn-id: svn://10.0.0.236/trunk@93883 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-04 02:45:37 +00:00
law%netscape.com
edd6b3b03b Bug 52454; fix lots of external app service bugs and enable new helper app dlg; r=pchen@netscape.com, sr=mscott@netscape.com
git-svn-id: svn://10.0.0.236/trunk@93843 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-03 21:24:36 +00:00
heikki%netscape.com
466eb9093d Bugs 65848 and 75031, support for application/xml and application/xhtml+xml mime types. This also fixes almost all of content to use NS_LITERAL_STRING instead of NS_ConvertASCIItoUCS2. r=harishd, valeski (mime types), sr=vidur.
git-svn-id: svn://10.0.0.236/trunk@93171 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-26 19:33:12 +00:00
mscott%netscape.com
032cc5948d Bug #74783 --> don't read the mac file creator and type values from our hard coded table of content types. Always use the values from internet config.
r=sspitzer
sr=sfraser


git-svn-id: svn://10.0.0.236/trunk@92142 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-13 00:44:55 +00:00
darin%netscape.com
9d03c579d0 Necko API changes, bug 74221. r=valeski, sr=rpotts.
git-svn-id: svn://10.0.0.236/trunk@91842 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-10 06:01:08 +00:00
mkaply%us.ibm.com
04d9798734 #73620
r=jband, sr=brendan
Fix some places where we used casts instead of CALLBACKs


git-svn-id: svn://10.0.0.236/trunk@90568 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 22:59:33 +00:00
timeless%mac.com
534247895d fix Bug 70989 Clean up lots of "shadows" and other common warnings
r=peterv, jst, ducarroz, edburns. sr=jst, shaver


git-svn-id: svn://10.0.0.236/trunk@89986 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 05:32:22 +00:00
colin%theblakes.com
b1aa5a00b4 Remove the O_TRUNC when we open a newly created file (its not needed and
produces undesirable side effects on OpenVMS).
b=68255 r=sspitzer sr=mscott a=leaf


git-svn-id: svn://10.0.0.236/trunk@89587 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 02:57:47 +00:00
dougt%netscape.com
21f01836f0 Minor build changes per API review. Now nsIFileURL and nsIFileChannel have their own IDL file which means that if you were using either of these two interfaces, you need to include a new include file. r=valeski@netscape.com
git-svn-id: svn://10.0.0.236/trunk@89380 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 22:41:28 +00:00
disttsc%bart.nl
abd8de21e5 Change implicit conversion from
|NS_ConvertUTF8toUCS2|
|NS_ConvertASCIItoUCS2|
|NS_ConvertUCS2toUTF8|
|ns[C]LiteralString|
|ns[C]PromiseFlatString|

to explicit |get()|.

Add |get()| to |nsString|, remove implicit conversion operators where possible, add NS_WARNING where not (yet!).

Bug=53057, r=alecf, sr=scc


git-svn-id: svn://10.0.0.236/trunk@88947 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 08:05:05 +00:00
darin%netscape.com
6c5b4ad937 Fixes bug 66181. Content-Disposition with attachment=filename did not accept
a quoted-string as the filename.  r=gagan, sr=mscott.


git-svn-id: svn://10.0.0.236/trunk@88455 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-03 02:20:28 +00:00
disttsc%bart.nl
d30c2be76b Preparation of removing nsCString::GetBuffer. Landing everything but the actual commenting out of nsCString::GetBuffer. bug=64016, r=timeless, sr=scc
git-svn-id: svn://10.0.0.236/trunk@88396 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-02 09:26:57 +00:00
dougt%netscape.com
175245e2de Relanding Necko Changes.
Revising nsIChannel to allow for overlapped i/o. This consists of three parts:

1. Factoring nsIChannel into a protocol specific part, the nsIChannel, and a socket specific, the nsITransport.
2. Derive the nsIChannel from a nsIRequest.
2. Changes the notification system from necko and the URILoader to pass the nsIRequest interface instead of nsIChannel interface.

This goal stems from wanting to be able to have active AsyncRead and AsyncWrite operations on nsSocketTransport.
This is desired because it would greatly simplify the task of maintaining persistent/reusable socket connections
for FTP, HTTP, and Imap (and potentially other protocols). The problem with the existing nsIChannel interface is
that it does not allow one to selectively suspend just one of the read or write operations while keeping the other active.

r=darin@netscape.com
sr=rpotts@netscape.com


git-svn-id: svn://10.0.0.236/trunk@87587 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-21 20:38:08 +00:00
disttsc%bart.nl
03f69c5003 Back out dougt's channel changes
git-svn-id: svn://10.0.0.236/trunk@86793 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-12 03:14:23 +00:00
dougt%netscape.com
7af79c83df Revising nsIChannel to allow for overlapped i/o. This consists of three parts:
1. Factoring nsIChannel into a protocol specific part, the nsIChannel, and a socket specific, the nsITransport.
2. Derive the nsIChannel from a nsIRequest.
2. Changes the notification system from necko and the URILoader to pass the nsIRequest interface instead of nsIChannel interface.

This goal stems from wanting to be able to have active AsyncRead and AsyncWrite operations on nsSocketTransport.
This is desired because it would greatly simplify the task of maintaining persistent/reusable socket connections
for FTP, HTTP, and Imap (and potentially other protocols).  The problem with the existing nsIChannel interface is
that it does not allow one to selectively suspend just one of the read or write operations while keeping the other active.

The full details of the change on written up in the netlib newsgroup.

r=darin@netscape.com
sr=rpotts@netscape.com


git-svn-id: svn://10.0.0.236/trunk@86717 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-10 00:16:26 +00:00
ducarroz%netscape.com
73decc4752 Part of fix for bug 45225. I forget to rename the class nsAppleFileDecoder before the initial checkin. SR=mscott
git-svn-id: svn://10.0.0.236/trunk@86504 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-07 06:44:07 +00:00
ducarroz%netscape.com
2f051af7be Part of fix for bug 45225. Need to move part of appledouble decoder to uriLoader. SR=mscott
git-svn-id: svn://10.0.0.236/trunk@86468 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-07 04:10:41 +00:00
mscott%netscape.com
336f3c5ff8 Bug #67598 --> remove CanHandleContent and DoContent
as this code has been reconsolidated in the base class for
all to use. For everyone, if the mime type is unknown or octet,
then try to guess a content type by file extension in doContent.
Also, if we can't find a mime type, create a new one for all platforms
so we don't need to bring up the ucth dialog.

sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@86441 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-07 02:43:18 +00:00
mscott%netscape.com
b07bb4b4ae Back out changes I added for implementing a launch and reveal method on nsIExternalProtocolService.
I've decided to move that functionality over to nsILocaFile where it makes more sense.


git-svn-id: svn://10.0.0.236/trunk@85680 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-29 21:35:12 +00:00
mscott%netscape.com
9c1ecef472 Bug #66323 --> always show the progress dialog even if
we are already done with the download. Break apart
SaveTodisk and LaunchWithTempFile into to separate
methods. never try to really open or save to disk
until we are sure we've brought up the progress window.

Bug #61947 --> pass in the initial time when we started the download via getDownloadInfo so
the progress dialog can use this information.

sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@85481 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-25 06:48:16 +00:00
mscott%netscape.com
adb8c92516 Bug #60069 --> checking this patch in for Sergey Lunegov (lsv@sparc.spb.su)
make sure the mime action is initialized with the right action.
sr=mscott


git-svn-id: svn://10.0.0.236/trunk@82862 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-22 19:48:49 +00:00
mscott%netscape.com
09dfe3c0bc Bug #58774 --> salt the temp file name we generate when downloading external content
r=sspitzer,
sr=alecf


git-svn-id: svn://10.0.0.236/trunk@82196 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-02 01:27:12 +00:00
mscott%netscape.com
1ac1af786f Bug #56938 --> get the document channel from the docloader
and force any Refresh urls back through the original window
context that initiated the helper app download. This solves
the problem where the user clicks on a link to download
content (either to disk or to a helper app) and that document
contains both a redirect for the actual content and a REFRESH
header which is used to point at a page the content provider
wants to see after the download is complete.

sr=rpotts, r=sspizter


git-svn-id: svn://10.0.0.236/trunk@82140 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-01 08:06:19 +00:00
warren%netscape.com
a8b9664a8c Bug 47207. Backing out logging/PRINTF changes until we can fix stopwatch.h, introduce double parens, etc.
git-svn-id: svn://10.0.0.236/trunk@81967 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-28 22:17:53 +00:00
warren%netscape.com
b725c37ce9 Removed extra 0 arg
git-svn-id: svn://10.0.0.236/trunk@81893 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-27 23:21:30 +00:00
warren%netscape.com
c6b67eceeb Bug 47207. Changing printf to PRINTF to use new logging facility. r=valeski,sr=waterson
git-svn-id: svn://10.0.0.236/trunk@81885 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-27 22:43:51 +00:00
mscott%netscape.com
f5242e2306 Bug #57207 --> When we bring up the progress dialog, if we've already received a on stop request,
then go ahead and make the progress dialog go away again. r=sspitzer, sr=alecf


git-svn-id: svn://10.0.0.236/trunk@81687 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-24 22:18:56 +00:00
mscott%netscape.com
fbc2cd3592 Bug #35956, 57619 --> be sure to disable auto conversion if we are handling the content
via an external app. sr=rpotts, r=gagan


git-svn-id: svn://10.0.0.236/trunk@81594 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-23 04:31:07 +00:00
mscott%netscape.com
c9c05d6665 Bug #55628 --> MoveTo won't delete the file if it already exists. When moving the temp
file to the user specified location, delete the specified location if it currently exists.
r=sspitzer, sr=alecf


git-svn-id: svn://10.0.0.236/trunk@80825 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-10 05:20:09 +00:00
mscott%netscape.com
48b31abe99 Bug #54009 --> fix crash when literal is null. This can happen because of
some bad debugging code that was left in mimetypes.rdf for pdf back in beta2
for now, return an error. This will make use ignore this entry in the data source
when performing mime lookups....which is good 'cause that will have a side
effect of making application/pdf content work again.
r=sspitzer, a=alecf


git-svn-id: svn://10.0.0.236/trunk@80540 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-06 00:58:05 +00:00
mscott%netscape.com
4f76352803 Bug #51018, 44176, 47203 implement load group retargeting and stand alone progress window
after we show the helper app dialog. So progress and load information is
now retargeted to a stand alone window instead of re-using the underlying
 browser / mail window...In order to do this, the external app handler needed to implement nsIURIContentListener.
sr=r=rpotts


git-svn-id: svn://10.0.0.236/trunk@80335 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 06:54:47 +00:00
mkaply%us.ibm.com
ab7a303509 OS/2 VACPP Tinderbox bustage
Need cast for VisualAge. Don't ask me why.


git-svn-id: svn://10.0.0.236/trunk@79341 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-15 14:46:01 +00:00
mscott%netscape.com
d3463a1323 Bug #43556 --> forgot to migrate over the default VMS file extensions from the old mime service
r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@79289 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-15 06:28:44 +00:00
mscott%netscape.com
44d722d48e Bug #43556 --> implement nsIMIMEService
honor the http content disposition header if present.
r=valeski


git-svn-id: svn://10.0.0.236/trunk@79263 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-15 06:07:58 +00:00
rayw%netscape.com
d9228441a4 Bug 37275, Changing value of all progids, and changing everywhere a progid
is mentioned to mention a contractid, including in identifiers.

r=warren


git-svn-id: svn://10.0.0.236/trunk@79036 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-13 23:57:52 +00:00
scc%mozilla.org
58e643e4d9 if you want a character pointer, you're going to have to |.get()| it
git-svn-id: svn://10.0.0.236/trunk@78996 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-13 07:55:09 +00:00
mscott%netscape.com
25f11245c2 Bug #43556 --> Implement nsIMIMEService. For now, forward the calls to the old implementation in necko.
r=valeski


git-svn-id: svn://10.0.0.236/trunk@78448 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-08 00:12:51 +00:00
mscott%netscape.com
404a183b0b Bug #47799 --> push prompt for file name over to ucth handler code so we don't bring
UI up from the uriloader. This allows us to properly use a string bundle
 for text in the dialog. this is prep work for the real fix for this bug.
r=law


git-svn-id: svn://10.0.0.236/trunk@78296 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-06 22:21:06 +00:00
pchen%netscape.com
0e31d57fc2 bug #43585, r=sfraser, set mac file type and creator in SetupTempFile() and also use new NS_MAC_DEFAULT_DOWNLOAD_DIR as opposed to desktop dir
git-svn-id: svn://10.0.0.236/trunk@78272 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-06 21:12:11 +00:00
mscott%netscape.com
da5d6f3b6a conrad's directory service change broke helper app support 'cause we don't find the mimetypes.rdf file anymore.
minor tweak to fix that
r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@77855 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-01 05:58:42 +00:00