Граф коммитов

55 Коммитов

Автор SHA1 Сообщение Дата
colin%theblakes.com 9d7ac4a3c6 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
2001-03-14 02:57:47 +00:00
dougt%netscape.com c74c36c85e 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 2001-03-12 22:41:28 +00:00
disttsc%bart.nl 8b43034cef 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
2001-03-08 08:05:05 +00:00
darin%netscape.com 4f9a9b0114 Fixes bug 66181. Content-Disposition with attachment=filename did not accept
a quoted-string as the filename.  r=gagan, sr=mscott.
2001-03-03 02:20:28 +00:00
disttsc%bart.nl 277181c660 Preparation of removing nsCString::GetBuffer. Landing everything but the actual commenting out of nsCString::GetBuffer. bug=64016, r=timeless, sr=scc 2001-03-02 09:26:57 +00:00
dougt%netscape.com 128f95aa9b 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
2001-02-21 20:38:08 +00:00
disttsc%bart.nl 3d2d80d536 Back out dougt's channel changes 2001-02-12 03:14:23 +00:00
dougt%netscape.com 1b9ca82439 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
2001-02-10 00:16:26 +00:00
ducarroz%netscape.com ee26174ac1 Part of fix for bug 45225. I forget to rename the class nsAppleFileDecoder before the initial checkin. SR=mscott 2001-02-07 06:44:07 +00:00
ducarroz%netscape.com 7369375bea Part of fix for bug 45225. Need to move part of appledouble decoder to uriLoader. SR=mscott 2001-02-07 04:10:41 +00:00
mscott%netscape.com 4db17fe50b 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
2001-02-07 02:43:18 +00:00
mscott%netscape.com d0c9883513 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.
2001-01-29 21:35:12 +00:00
mscott%netscape.com 3f7ff536cc 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
2001-01-25 06:48:16 +00:00
mscott%netscape.com 51c10d8d69 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
2000-11-22 19:48:49 +00:00
mscott%netscape.com fb0491626c Bug #58774 --> salt the temp file name we generate when downloading external content
r=sspitzer,
sr=alecf
2000-11-02 01:27:12 +00:00
mscott%netscape.com b9944d7bfa 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
2000-11-01 08:06:19 +00:00
warren%netscape.com cd56c0575b Bug 47207. Backing out logging/PRINTF changes until we can fix stopwatch.h, introduce double parens, etc. 2000-10-28 22:17:53 +00:00
warren%netscape.com 0735771512 Removed extra 0 arg 2000-10-27 23:21:30 +00:00
warren%netscape.com 9a6d92a433 Bug 47207. Changing printf to PRINTF to use new logging facility. r=valeski,sr=waterson 2000-10-27 22:43:51 +00:00
mscott%netscape.com 3ca41ad1ea 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
2000-10-24 22:18:56 +00:00
mscott%netscape.com 11a336fc1d Bug #35956, 57619 --> be sure to disable auto conversion if we are handling the content
via an external app. sr=rpotts, r=gagan
2000-10-23 04:31:07 +00:00
mscott%netscape.com b25492aeb0 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
2000-10-10 05:20:09 +00:00
mscott%netscape.com 4cfd9661eb 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
2000-10-06 00:58:05 +00:00
mscott%netscape.com c054dd3653 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
2000-10-04 06:54:47 +00:00
mkaply%us.ibm.com 52e0a821d5 OS/2 VACPP Tinderbox bustage
Need cast for VisualAge. Don't ask me why.
2000-09-15 14:46:01 +00:00
mscott%netscape.com 45dbf92d78 Bug #43556 --> forgot to migrate over the default VMS file extensions from the old mime service
r=sspitzer
2000-09-15 06:28:44 +00:00
mscott%netscape.com ab07ff0c7c Bug #43556 --> implement nsIMIMEService
honor the http content disposition header if present.
r=valeski
2000-09-15 06:07:58 +00:00
rayw%netscape.com 0257791053 Bug 37275, Changing value of all progids, and changing everywhere a progid
is mentioned to mention a contractid, including in identifiers.

r=warren
2000-09-13 23:57:52 +00:00
scc%mozilla.org 9685340714 if you want a character pointer, you're going to have to |.get()| it 2000-09-13 07:55:09 +00:00
mscott%netscape.com fe1d0067c7 Bug #43556 --> Implement nsIMIMEService. For now, forward the calls to the old implementation in necko.
r=valeski
2000-09-08 00:12:51 +00:00
mscott%netscape.com 30037f6c30 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
2000-09-06 22:21:06 +00:00
pchen%netscape.com 77595f3418 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 2000-09-06 21:12:11 +00:00
mscott%netscape.com f1aa9956b6 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
2000-09-01 05:58:42 +00:00
ccarlen%netscape.com 3b47353cfe Convert use of nsIFileLocator to nsIDirectoryService r=mscott 2000-08-22 00:53:37 +00:00
conrad%ingress.com d9e8edcf29 Changed from using strings for nsIDirectoryService props to using macro names defined in nsDirectoryServiceDefs.h r=valeski 2000-08-11 20:31:57 +00:00
mscott%netscape.com 25e12ec3c0 Bug #48078, 48081 --> bring up save to disk dialog right away from the helper app dialog instead of
waiting till the download is finished.
properly implement Cancel so we stop the download and clean up the temp file.
r=alecf
2000-08-10 01:49:06 +00:00
mscott%netscape.com 8ac4deb3f4 Bug #43583 --> bring up the save as dialog from the backend instead of from the front end.
r=alecf
2000-07-13 06:26:25 +00:00
mscott%netscape.com cbdeb0905f Bug #43583 --> throw the switch for the helper app dialog. Start invoking the helper app dialog and bring it
up whenever the user trys to launch a helper app. This was submitted by bill law. r=mscott

also, use the file name in the url as the basis for the temporary file name.
r=alecf
2000-07-12 06:09:02 +00:00
mscott%netscape.com a044cab1f4 Bug #43583 --> Add a separate boolean for asking the user before handling content using an external application.
r=alecf
2000-07-11 23:15:49 +00:00
mscott%netscape.com 66907fe1dd Bug #43583 --> pass the window context into the helper app launcher which will in turn be used by
the helper app dialog to get at a dom window.
r=alecf
2000-07-10 21:21:10 +00:00
mscott%netscape.com 2f46a371e9 Bug #44082 --> fail if we couldn't find mimeTypes.rdf during the data source init phase.
patch from jst
r=mscott
2000-07-07 21:44:11 +00:00
mscott%netscape.com 6ad688ca00 Bug #43583 --> re-organizing how we launch helper apps to work with the helper app dialog.
Add nsIExternalAppLauncher interface which is used by the helper app dialog.
r=alecf
2000-07-07 01:48:05 +00:00
dougt%netscape.com e5e3eab6ce Adjusting user of makeUnique. a=brendan@mozilla.org 2000-06-24 01:55:40 +00:00
mscott%netscape.com ad5c60eb5b Bug #38374 --> make sure the temp file we are saving the file to is unqiue by calling make unique.
This call will be replaced by createUnique once that gets checked in. I also need to fix the temp file
name I use as well.
r=sspitzer
2000-06-23 06:42:14 +00:00
sspitzer%netscape.com 8df8079fbe get launching of external apps working on the mac. also, on the mac only, dump the temp file to the desktop. r=mscott #38374. 2000-06-23 04:43:13 +00:00
sspitzer%netscape.com c6b5309946 work for bug #38374 helperApps.rdf is now mimeTypes.rdf. use the file locator to get the mimeTypes file. fix the unix implementation of nsOSHelperAppService.cpp to go to the base class to determine what application to launch. r=mscott 2000-06-22 22:17:25 +00:00
mscott%netscape.com 04601881dd not part of the build!!! fixes to get this buildling on the mac 2000-06-22 06:04:23 +00:00
mscott%netscape.com 2668452986 Bug #38374 --> more updates for external helper application support. (NOT PART OF THE BUILD)
code review will come when this is done and gets turned on.

Landing of the RDF data source which keeps track of all the user specified mime type information.
Landing implementation of user over ride information when determining what helper app to run. now we'll
check the information stored in the data source first. If we don't ahve any over-ride information, then
fall back to the OS defaults.
2000-06-21 08:29:13 +00:00
mscott%netscape.com c08b6233e7 Bug #30157 --> add the ability to launch urls using OS default protocol handlers. (NOT PART OF THE BUILD)
code review will come when this is done and gets turned on.

add nsIExternalProtocolService support to the base class.
2000-06-18 22:07:54 +00:00
mscott%netscape.com b1e8d04afd Bug #38374 --> more updates for external helper application support. (NOT PART OF THE BUILD)
code review will come when this is done and gets turned on.

Pass in the file extension (determined by the content type) that we want to use when generating the name
of the temp file for saving the data for the helper application.
2000-06-18 01:13:04 +00:00