944 Commits

Author SHA1 Message Date
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
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
brendan%mozilla.org
95220b5330 Add shared DHashTableOps for [const] char *key use-cases, clean up dhash API abusages (214839, r=dougt, sr=dbaron).
git-svn-id: svn://10.0.0.236/trunk@145624 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-05 20:09:21 +00:00
ben%bengoodger.com
88a60274a5 The Mother Of All Download Landings, Phase I
http://bugzilla.mozilla.org/show_bug.cgi?id=214259
Firebird Download System Upgrades.

exthandler/nsExternalHelperAppService.cpp
- update EHAS to use updated version of PromptForSaveToFile
- make the EHAS not set the MIME Info object's alwaysAskBeforeHandling flag
  to false to make the UCT dialog's show behaviour consistent

bug 214985, r=  sr=hyatt


git-svn-id: svn://10.0.0.236/trunk@145551 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-04 22:31:14 +00:00
ben%bengoodger.com
171bd80e1a The Mother Of All Download Landings, Phase I
http://bugzilla.mozilla.org/show_bug.cgi?id=214259
Firebird Download System Upgrades.

browser/activex/src/control/HelperAppDlg.cpp
browser/cocoa/src/CHBrowserService.mm
browser/photon/src/nsUnknownContentTypeHanlder.cpp
browser/powerplant/source/UDownload.cpp
components/ui/helperAppDlg/nsHelperAppDlg.js
components/ui/helperAppDlg/nsIHelperAppLauncherDialog.idl
tests/mfcembed/components/HelperAppDlg.cpp
- Update nsIHelperAppLauncherDialog::PromptForSaveToFile to take a
  nsIHelperAppLauncher parameter.

bug 214985, r=brendan sr=hyatt


git-svn-id: svn://10.0.0.236/trunk@145550 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-04 22:30:41 +00:00
bzbarsky%mit.edu
4b7f79a755 Fix build bustage
git-svn-id: svn://10.0.0.236/trunk@145389 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-30 18:56:12 +00:00
bzbarsky%mit.edu
fdbf9a4567 Reverse some backwards assumptions to make things a little safer for users.
Bug 213921, r=biesi, sr=darin


git-svn-id: svn://10.0.0.236/trunk@145384 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-30 17:47:26 +00:00
bzbarsky%mit.edu
ae71ebbc34 Fix leaks of registry keys. Bug 213985, r=biesi, sr=darin
git-svn-id: svn://10.0.0.236/trunk@145330 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-29 14:51:58 +00:00
cbiesinger%web.de
ce0712ee0a 214173 r=bzbarsky sr=darin Crash in typeFromExtEquals
Hopefully also fixes 213985, hang when downloading .tar.gz files (on windows)


git-svn-id: svn://10.0.0.236/trunk@145279 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-28 20:46:32 +00:00
bzbarsky%mit.edu
8a053aea15 Update to take advantage of the new overall logic by returning a MIME info from
GetFromType even if there is no handler.  Also move some repeated code out into
a function.  Bug 214006, r=biesi, sr=darin


git-svn-id: svn://10.0.0.236/trunk@145255 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-27 16:27:15 +00:00
cbiesinger%web.de
4fac01aa31 fixing windows bustage
git-svn-id: svn://10.0.0.236/trunk@145237 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-26 22:09:37 +00:00
cbiesinger%web.de
88e87c14f9 213882 r=bzbarsky sr=darin consider making aFileExt the primary extension if it is an extension
git-svn-id: svn://10.0.0.236/trunk@145236 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-26 21:01:08 +00:00