Commit Graph

955 Commits

Author SHA1 Message Date
dbaron%dbaron.org
c4bdc17ba3 Include nscore.h instead of nsCom.h. b=226555 r=dougt sr=darin a=asa
git-svn-id: svn://10.0.0.236/trunk@149839 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-29 18:56:10 +00:00
justdave%syndicomm.com
38fe8ad293 Bug 166369: Documents that require a helper app to view were not viewable if you chose your helper apps using an old CFM version of Mozilla. The old pathname format is now supported again (in addition to the new one).
r= mozeditor@floppymoose.com, sr= bz-vacation@mit.edu, a= asa@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@149604 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-21 06:45:25 +00:00
darin%meer.net
a34389b0de fixes bug 226071 "xremote: openURL doesn't work well when multiple apps with different capabilities are present" r=bz,blizzard sr=bryner a=asa
git-svn-id: svn://10.0.0.236/trunk@149593 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-21 00:09:50 +00:00
cbiesinger%web.de
a02662d04b 225995 crash in nsOSHelperAppService::GetValueString
(only occurs on win95/win98/winme)
fix this by not passing NULL to NS_LossyConvertUTF16toASCII

r=pike sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@149457 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-17 21:40:10 +00:00
cbiesinger%web.de
a0df39ada9 225972 GetMIMEInfoForExtensionFromDS returns success even if nothing was found
also fixes: GetMIMEInfoForExtensionFromExtras does not set a mime type on the mime info

r+sr=bzbarsky; this addresses the problem that the information in extras is never used


git-svn-id: svn://10.0.0.236/trunk@149456 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-17 21:31:11 +00:00
cbiesinger%web.de
8e398d1990 fixing mac bustage
git-svn-id: svn://10.0.0.236/trunk@149358 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-15 15:29:14 +00:00
cbiesinger%web.de
2513e3d54b 78919 part 2. always return a nsIMIMEInfo from the OS HelperAppServices, and don't
create MIMEInfos outside of them directly.
r=bzbarsky sr=darin


git-svn-id: svn://10.0.0.236/trunk@149357 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-15 15:01:39 +00:00
cbiesinger%web.de
c3d963390e found in 194439. use delete[] to free an array, not delete. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@149321 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-14 22:39:01 +00:00
cbiesinger%web.de
cd2d39ac40 fixing likely crasher in previous checkin, thanks to bz for noticing it
git-svn-id: svn://10.0.0.236/trunk@149318 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-14 21:27:41 +00:00
cbiesinger%web.de
309250facd 194439 nsOSHelperAppService on windows doesn't support non-ASCII default description.
fix this by using *W versions of registry functions when running on an nt-based windows.
r=ere sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@149314 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-14 20:48:52 +00:00
cbiesinger%web.de
f31b771e91 bug 223990. Should have a getPrimaryExtensionForType function
r=bzbarsky sr=darin
also changes nsIMIMEService functions to start with a lowercase letter (only affects JS Callers)


git-svn-id: svn://10.0.0.236/trunk@149270 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-13 23:00:55 +00:00
peter%propagandism.org
e6ae01a399 Fix for bug 224231 (Need AppendASCIItoUTF16). r=jst, sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@148687 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-01 10:57:41 +00:00
bzbarsky%mit.edu
2ef66c24d2 Extension comparisons should be case-insensitive. Bug 223055, r=biesi, sr=darin
git-svn-id: svn://10.0.0.236/trunk@148514 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-30 02:20:23 +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
bryner%brianryner.com
3396e1763c Only call gnome_program_init() if it hasn't already been called (bug 221012). r=blizzard, not part of the default build.
git-svn-id: svn://10.0.0.236/trunk@148429 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-27 10:08:10 +00:00
bzbarsky%mit.edu
2cab296f61 Fix bug 164816. Patch by biesi, r=bzbarsky, sr=darin
git-svn-id: svn://10.0.0.236/trunk@148262 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-22 06:46:52 +00:00
bzbarsky%mit.edu
9613fc72bd Report a useful error when encountering a CFM app path in a Mach-o build. Bug
166369, patch by biesi, r=bzbarsky, sr=sfaser.


git-svn-id: svn://10.0.0.236/trunk@148138 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-19 21:36:39 +00:00
bzbarsky%mit.edu
193af95510 Return a more useful error code. Partial fix for bug 222501, r=biesi, sr=darin
git-svn-id: svn://10.0.0.236/trunk@148051 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-16 23:53:45 +00:00
bryner%brianryner.com
94b598dcf7 Fix two problems with the GNOME helper app code:
- Bail out correctly if we failed to open a library
- Open the soname of the library (i.e. foo.so.0 instead of foo.so)

Bug 221217, r=blizzard, sr=darin.


git-svn-id: svn://10.0.0.236/trunk@147996 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-15 20:24:45 +00:00
bryner%brianryner.com
f041721141 Assuming bz didn't mean to completely disable GNOME helper apps...
git-svn-id: svn://10.0.0.236/trunk@147889 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-12 09:19:15 +00:00
bzbarsky%mit.edu
c5b3991b08 Make sure we look at ~/.mailcap before going out to the GNOME settings. Bug
221042, r=biesi, sr=bryner


git-svn-id: svn://10.0.0.236/trunk@147844 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-10 16:18:16 +00:00
cbiesinger%web.de
4ea53d0464 bug 220832. Make sure that we don't use the extension from the URL when the server sent a Content-Disposition header with a filename.
r=bzbarsky sr=darin


git-svn-id: svn://10.0.0.236/trunk@147834 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-10 13:43:15 +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
bzbarsky%mit.edu
329de01679 Gunzip things with content-encoding:gzip whose file extension is .zip when
saving or running helpers.  The idea here is to decompress unless the encoding
and extension match up.  If they do, then don't decompress.  Bug 152275,
r=biesi, sr=darin


git-svn-id: svn://10.0.0.236/trunk@147782 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-09 02:10:25 +00:00
bryner%brianryner.com
c615683575 Add PNG to hardcoded extensions / mime type list (bug 221243). r=bzbarsky, sr=tor.
git-svn-id: svn://10.0.0.236/trunk@147631 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-06 18:48:17 +00:00
cbiesinger%web.de
5c72bf9e86 fix typo in comment. r+sr=bz
git-svn-id: svn://10.0.0.236/trunk@147562 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-04 18:14:51 +00:00
cbiesinger%web.de
6a94dcbc5c 220463 use more error codes in nsExternalAppHandler::SendStatusChange
r=bzbarsky sr=darin

We now show a useful dialog for NS_ERROR_OUT_OF_MEMORY, and we treat
NS_ERROR_FILE_UNRECOGNIZED_PATH like FILE_NOT_FOUND.


git-svn-id: svn://10.0.0.236/trunk@147538 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-03 20:56:52 +00:00
cbiesinger%web.de
98027ffa7f Bug 220477 convert nsIURILoader comments to doxygen-style comments.
also fixes documentation of parameters of loadURI
r=bzbarsky sr=darin


git-svn-id: svn://10.0.0.236/trunk@147537 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-03 20:54:01 +00:00
bryner%brianryner.com
086d512e9a Use GNOME application associations for GTK2 builds (bug 128668). r=bzbarsky, sr=blizzard.
git-svn-id: svn://10.0.0.236/trunk@147448 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-29 22:04:05 +00:00
jst%mozilla.jstenback.com
ef67a47aab Fixing bug 215981. DeCOMtaminating nsIContent and nsIDocument some, and also some minor changes to other related interfaces. r=caillon@aillon.org, sr=peterv@propagandism.org.
git-svn-id: svn://10.0.0.236/trunk@147354 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-27 04:18:26 +00:00
cbiesinger%web.de
3e69b6224e Bug 220363 use doxygen-style comments in nsExternalHelperAppService.h
this is mostly converting //-style comments to /**-style ones and using @param

r=bzbarsky sr=darin


git-svn-id: svn://10.0.0.236/trunk@147345 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-26 19:49:23 +00:00
cbiesinger%web.de
b9f3f42d1a bug 218817. replace GetDownloadInfo with attributes on nsIExternalHelperAppService -
this means 2 new attributes:
readonly attribute nsIFile targetFile;
readonly attribute PRTime timeDownloadStarted;
(no caller of GetDownloadInfo needed all three pieces of information that it provided)

r=bzbarsky sr=darin


git-svn-id: svn://10.0.0.236/trunk@147292 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-25 13:07:24 +00:00
cbiesinger%web.de
b83ae34050 Bug 220198
helperappservice qi's to httpchannel when it wants encodedchannel
r=bzbarsky sr=darin


git-svn-id: svn://10.0.0.236/trunk@147291 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-25 12:51:45 +00:00
cbiesinger%web.de
b24a1bc3c6 220111 nsIDownload should document that Init must be called
r=bzbarsky sr=darin


git-svn-id: svn://10.0.0.236/trunk@147254 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-24 20:24:19 +00:00
cbiesinger%web.de
ee01e72967 143570 r=bzbarsky sr=darin
Allow assigning helper apps to mailnews attachments by extension.

do this by only getting the query off the uri for HTTP/HTTPS urls - mailnews
uris always have a query string, and if there is a query string the file
extension is ignored because a CGI script is assumed, which has no useful
extension.


git-svn-id: svn://10.0.0.236/trunk@147253 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-24 20:21:09 +00:00
cbiesinger%web.de
5e15ee3d1e 219681 r=bzbarsky sr=darin
log save/launch errors to nspr log
This converts a printf inside #ifdef DEBUG_law to use nspr logging (module HelperAppService)


git-svn-id: svn://10.0.0.236/trunk@147185 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-23 19:27:07 +00:00
cbiesinger%web.de
1733bac311 219608 r=bzbarsky sr=darin compile warning in helperappservice (size/unsigned mismatch)
git-svn-id: svn://10.0.0.236/trunk@147184 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-23 19:24:26 +00:00
cls%seawood.org
5bef9a23ea Fix misc build issues for mingw gcc 3.3.1:
* Link non-component libs using -Wl,-enable-runtime-psuedo-relocs to workaround auto-import issues
* the last element of an enum cannot end with a comma
* PRUint16 is not interchangable with PRUnichar nor WCHAR
* cannot take the address of or call ::main() from another c++ function
* Functions declared within |class foo {};| block do not need extra |foo::| qualification
* GCC no longer implements <varargs.h>. Use <stdarg.h> instead
Bug #217009 sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@147027 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-18 17:22:33 +00:00
cbiesinger%web.de
fdc85e5866 Bug 33282
enable external scheme handlers (like aim: and telnet:) in Linux

This allows setting external protocol handlers via a preference setting:
network.protocol-handler.app.<scheme>
This is supposed to be a string value.
Mozilla will first try to interpret this as an absolute path, then as a filename
relative to $MOZILLA_FIVE_HOME, then as a file in $PATH.
If an application is found in one of these places, it will be called and passed
the complete url as first (and only) argument.

r=jesup/bz sr=bz/darin


git-svn-id: svn://10.0.0.236/trunk@146986 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-17 12:47:56 +00:00
cbiesinger%web.de
9076f9517e Bug 218820
remove useless nsIExternalHelperAppService::canHandleContent
mozilla never calls this function; and it always returns PR_FALSE
r=bz sr=darin


git-svn-id: svn://10.0.0.236/trunk@146985 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-17 12:31:39 +00:00
bryner%brianryner.com
602241b8ce Remove files that were taken out of the build months ago as part of bug 194240.
git-svn-id: svn://10.0.0.236/trunk@146873 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-14 21:04:15 +00:00
cbiesinger%web.de
c9b9614c10 per clarification via email from bz (reviewer of previous checkin to this file, for Bug 216417), using .xht, not .xhtm in the defaultMimeEntries array (matches the XHTML entry in the extraMimeEntries array)
git-svn-id: svn://10.0.0.236/trunk@146866 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-14 15:54:57 +00:00
cbiesinger%web.de
5498e0e4ae Bug 216417
about: page has major errors
r+sr=bz
fix this by mapping all .xhtm and .xhtml files to application/xhtml+xml, not overridable by user or os


git-svn-id: svn://10.0.0.236/trunk@146861 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-14 11:41:22 +00:00
cbiesinger%web.de
650c8b6437 Bug 120045
Multi-character character constants in nsExternalHelperAppService.cpp
r=bz sr=darin


git-svn-id: svn://10.0.0.236/trunk@146798 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-11 20:44:25 +00:00
cbiesinger%web.de
e900e1a2ee fix off-by-one error
git-svn-id: svn://10.0.0.236/trunk@146771 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-11 16:14:58 +00:00
cbiesinger%web.de
368d58d7ed Bug 65827
File extension (.php) determined from Content-Type header (or url extension) overrides filename in Content-Disposition header.
r=bz sr=darin


git-svn-id: svn://10.0.0.236/trunk@146755 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-11 13:27:06 +00:00
cbiesinger%web.de
9f0147b039 Bug 217509
wrong app description shown in helper app dialog
r=bz sr=darin


git-svn-id: svn://10.0.0.236/trunk@146749 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-11 12:13:06 +00:00
timeless%mozdev.org
8ec6121537 Bug 217089 Compiler warnings
patch by mbockelkamp@web.de r=timeless sr=darin


git-svn-id: svn://10.0.0.236/trunk@146726 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-11 03:18:46 +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