cbiesinger%web.de
3a1b32776f
235695: nsMIMEInfoImpl needs only one constructor, and nsMIMEInfoBase can have a hidden ctor.
...
r=bzbarsky sr=darin
2004-03-09 16:42:34 +00:00
cbiesinger%web.de
cf46a264d8
fixing win32 bustage
2004-03-08 20:39:19 +00:00
cbiesinger%web.de
25c62a5695
229636 search for helper apps in mozilla directory before $PATH
...
r=bzbarsky sr=darin
2004-03-08 20:15:09 +00:00
cbiesinger%web.de
dd42626ac4
...and now, the correctly merged version, that even compiles
2004-03-06 19:43:40 +00:00
cbiesinger%web.de
a8d7bf9fbf
Bug 124307, respect umask for downloaded files.
...
r=bzbarsky sr=darin
2004-03-06 19:37:22 +00:00
cbiesinger%web.de
4f5990b999
bug 235695, one constructor is enough for nsMIMEInfoBase and subclasses
...
r=bzbarsky sr=darin
2004-03-06 14:43:30 +00:00
cbiesinger%web.de
07a9afe4d5
bug 235201, return an error instead of crashing if we can't find an application for a mime type
...
patch by Christian Persch <chpe@gnome.org> r=biesi sr=bryner
2004-03-06 14:41:00 +00:00
mkaply%us.ibm.com
80d4a86d1c
#235488
...
r=pedemont, sr=blizzard (platform specific code)
Special case http/https/ftp URLs so we send them to the OS if we don't launch them with the current app (makes URLs work in Thunderbird)
Modify helper app launcher code so it locates the EXE so we don't get a command window every time we launch an app
2004-03-02 17:29:03 +00:00
cbiesinger%web.de
6e4ed923f7
bug 235832, dynamic_cast crashes. replace with static_cast.
...
r=bzbarsky sr=darin
2004-03-01 21:18:19 +00:00
cbiesinger%web.de
39bd93ef3c
next try: fixing mac bustage
2004-02-23 23:49:49 +00:00
cbiesinger%web.de
f44d0a9874
fix mac bustage
2004-02-23 23:29:38 +00:00
cbiesinger%web.de
8e085c81b9
bug 78919, last part. r=bzbarsky sr=darin.
...
This adds a new method launchWithFile on nsIMIMEInfo which takes care of opening
the selected (preferred or default) application on the mime info with a
specified document. defaultDescription is now readonly, and defaultApplication
no longer available.
This also removes the clone method which was unused in the entire tree.
2004-02-23 22:49:28 +00:00
pinkerton%aol.net
f38b11469c
fix bad merging of code for 183848 when moving from camino 1.0 branch to trunk
...
(r=biesi, sr=sfraser)
2004-02-23 15:20:55 +00:00
bsmedberg%covad.net
7a922f66fd
Bug 224829 - docshell should not require non-gecko interface nsIBrowserHistory. This was fixed by introducing a new interface nsIGlobalHistory2 to replace the current nsIGlobalHistory. There are two-way adapters so that the frozen interface still works. r=biesi sr=bz a=mscott for toolkit/ changes.
2004-02-11 02:10:04 +00:00
cbiesinger%web.de
f8ebf2c030
Bug 233145 stop implementing nsIURIContentListener in nsExternalAppHandler
...
r=bzbarsky sr=darin
2004-02-07 19:52:16 +00:00
cbiesinger%web.de
81fe0f4de2
fixing bustage
2004-02-06 23:05:40 +00:00
cbiesinger%web.de
737ce1cae6
Bug 233169 [windows] It's impossible to set helper applications for executables
...
r=bzbarsky sr=darin
2004-02-06 22:32:29 +00:00
cbiesinger%web.de
4cdbcbf36f
Bug 231886 Allow extensions to add extension->type mappings by adding an entry
...
in the "ext-to-type-mapping" category, where the name is the extension and the
value the mime type.
r=bzbarsky sr=darin
2004-02-06 18:43:27 +00:00
cbiesinger%web.de
47ac473655
Bug 232784, verify that opening the file works, and show an error message if it doesn't
...
r=pinkerton sr=bzbarsky
2004-02-05 10:53:11 +00:00
cbiesinger%web.de
825b0d7eae
bug 232219, memory leak in nsGNOMERegisty::GetFromType
...
patch by Christian Persch <chpe@gnome.org> r=darin sr=bryner
2004-01-29 22:20:44 +00:00
jst%mozilla.jstenback.com
1804c4910c
Fixing bug 232503. Start using Empty[C]String() to save a bit on code-size. r+sr=peterv@propagandism.org
2004-01-29 22:04:45 +00:00
cbiesinger%web.de
08649feea8
Bug 152224
...
Leak in nsExternalAppHandler, due to reference cycle between the nsIDownload implementation,
the helper app service, and the helper app dialog.
now, the reference cycle with the helper app dialog is broken in Cancel/CreateProgressListener,
and the cycle with the nsIDownload will be broken in Cancel/CloseProgressWindow/OnStopRequest
r=bzbarsky sr=darin
2004-01-28 22:05:25 +00:00
cbiesinger%web.de
864bbcb50e
Bug 232431
...
exthandler should not export as many headers
only export nsOSHelperAppService.h. this is needed because docshell depends on
it, and docshell's makefile does not know which OSHelperAppService it needs.
r=bzbarsky sr=darin
2004-01-28 21:59:10 +00:00
cbiesinger%web.de
6141ea6cf4
trying to fix mac bustage
2004-01-28 15:08:46 +00:00
cbiesinger%web.de
049f6d895d
bug 78919, part 3: Move nsMIMEInfoImpl to exthandler, and don't allow to CreateInstance it
...
r=bzbarsky sr=darin
2004-01-28 14:48:22 +00:00
bzbarsky%mit.edu
6e669c2a91
Don't claim to have a GNOME registry handler if it's disabled. Bug 226576,
...
patch by chpe@gnome.org (Christian Persch), r=bryner, sr=bzbarsky
2004-01-21 04:52:10 +00:00
cbiesinger%web.de
e20e2f0702
fix bustage
2004-01-17 13:41:23 +00:00
cbiesinger%web.de
4a01f7babc
bug 55690 Spool file should be moved once the user picks a filename
...
r=bzbarsky sr=darin
2004-01-17 13:18:12 +00:00
cbiesinger%web.de
f4f01b8b90
230970
...
nsExternalAppHandler needs no virtual functions
also, w/o bug: nsExternalHelperAppService doesn't require threadsafe addref/release
r=bzbarsky sr=darin
2004-01-16 18:22:55 +00:00
bzbarsky%mit.edu
f8f335cb15
Work around misconfiguration in default Apache installs that makes it claim all
...
sorts of stuff as text/plain. Bug 220807, r=biesi, sr=darin
2004-01-08 03:56:02 +00:00
cbiesinger%web.de
fe5166ce4b
bug 229785 also allow "Content-Disposition: name=foo" headers, in addition to filename=foo
...
r=bzbarsky sr=darin
2004-01-07 20:23:46 +00:00
cbiesinger%web.de
3f6ab4b6a4
Bug 229969 Fix 'Warning: "/*" within comment'
...
patch by gautheri@noos.fr (Serge GAUTHERIE) r+sr=bzbarsky
2004-01-04 21:50:19 +00:00
cbiesinger%web.de
3c1af4d3bc
bug 229684. application/octet-stream should not have "Binary Executable" as description
...
also fixes: If the OS has info for a type, but prefs contain neither info via type nor via
ext, we would get the mimeinfo from extras.
r+sr=bzbarsky
2003-12-30 10:45:12 +00:00
peter%propagandism.org
a42e149448
Patch for bug 209699 (convert some consumers over to CopyUTF8toUTF16 / CopyUTF16toUTF8). r=jshin, sr=jst.
2003-12-23 16:48:40 +00:00
cbiesinger%web.de
c8ec26dcc4
Bug 227029 nsExternalAppHandler dynamically allocates buffer for no reason
...
r+sr=bzbarsky
2003-12-19 15:18:59 +00:00
cbiesinger%web.de
d86ab2af96
Bug #227711 wrong mime type shown when helper app entry present
...
fix this by always setting the real mime type on a mime info got from prefs.
r=bzbarsky sr=darin a=asa
2003-12-12 09:42:54 +00:00
cbiesinger%web.de
f7c3876dd7
226919 SendStatusChange should check for NS_ERROR_FILE_TARGET_DOES_NOT_EXIST
...
This gives a useful error message if a helper app could not be found (for another error code)
r=bzbarsky sr=darin a=asa
2003-12-03 22:21:39 +00:00
dbaron%dbaron.org
e20ca858dd
Include nscore.h instead of nsCom.h. b=226555 r=dougt sr=darin a=asa
2003-11-29 18:56:10 +00:00
justdave%syndicomm.com
4fd601a3a8
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
2003-11-21 06:45:25 +00:00
darin%meer.net
f8fbc14169
fixes bug 226071 "xremote: openURL doesn't work well when multiple apps with different capabilities are present" r=bz,blizzard sr=bryner a=asa
2003-11-21 00:09:50 +00:00
cbiesinger%web.de
8fc58205ff
225995 crash in nsOSHelperAppService::GetValueString
...
(only occurs on win95/win98/winme)
fix this by not passing NULL to NS_LossyConvertUTF16toASCII
r=pike sr=bzbarsky
2003-11-17 21:40:10 +00:00
cbiesinger%web.de
e11426dbe2
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
2003-11-17 21:31:11 +00:00
cbiesinger%web.de
517f99b693
fixing mac bustage
2003-11-15 15:29:14 +00:00
cbiesinger%web.de
cb32817ed5
78919 part 2. always return a nsIMIMEInfo from the OS HelperAppServices, and don't
...
create MIMEInfos outside of them directly.
r=bzbarsky sr=darin
2003-11-15 15:01:39 +00:00
cbiesinger%web.de
b573023f20
found in 194439. use delete[] to free an array, not delete. r+sr=bzbarsky
2003-11-14 22:39:01 +00:00
cbiesinger%web.de
224a94e1d2
fixing likely crasher in previous checkin, thanks to bz for noticing it
2003-11-14 21:27:41 +00:00
cbiesinger%web.de
a00520fd2c
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
2003-11-14 20:48:52 +00:00
cbiesinger%web.de
26c72f348f
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)
2003-11-13 23:00:55 +00:00
peter%propagandism.org
816b00b6cc
Fix for bug 224231 (Need AppendASCIItoUTF16). r=jst, sr=dbaron.
2003-11-01 10:57:41 +00:00
bzbarsky%mit.edu
d8f09cdffa
Extension comparisons should be case-insensitive. Bug 223055, r=biesi, sr=darin
2003-10-30 02:20:23 +00:00
bryner%brianryner.com
e012bff57a
Only call gnome_program_init() if it hasn't already been called (bug 221012). r=blizzard, not part of the default build.
2003-10-27 10:08:10 +00:00
bzbarsky%mit.edu
fcc14acdea
Fix bug 164816. Patch by biesi, r=bzbarsky, sr=darin
2003-10-22 06:46:52 +00:00
bzbarsky%mit.edu
c1760c17b9
Report a useful error when encountering a CFM app path in a Mach-o build. Bug
...
166369, patch by biesi, r=bzbarsky, sr=sfaser.
2003-10-19 21:36:39 +00:00
bzbarsky%mit.edu
e0dd4704ab
Return a more useful error code. Partial fix for bug 222501, r=biesi, sr=darin
2003-10-16 23:53:45 +00:00
bryner%brianryner.com
d70002d017
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.
2003-10-15 20:24:45 +00:00
bryner%brianryner.com
45c11fa514
Assuming bz didn't mean to completely disable GNOME helper apps...
2003-10-12 09:19:15 +00:00
bzbarsky%mit.edu
4bc0812059
Make sure we look at ~/.mailcap before going out to the GNOME settings. Bug
...
221042, r=biesi, sr=bryner
2003-10-10 16:18:16 +00:00
cbiesinger%web.de
6df7f0af50
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
2003-10-10 13:43:15 +00:00
bzbarsky%mit.edu
32093a1139
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
2003-10-09 02:10:25 +00:00
bryner%brianryner.com
fcc7f1b9e2
Add PNG to hardcoded extensions / mime type list (bug 221243). r=bzbarsky, sr=tor.
2003-10-06 18:48:17 +00:00
cbiesinger%web.de
ae9675db62
fix typo in comment. r+sr=bz
2003-10-04 18:14:51 +00:00
cbiesinger%web.de
69d609337e
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.
2003-10-03 20:56:52 +00:00
bryner%brianryner.com
b7e4e09d6e
Use GNOME application associations for GTK2 builds (bug 128668). r=bzbarsky, sr=blizzard.
2003-09-29 22:04:05 +00:00
cbiesinger%web.de
ff4f558ea1
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
2003-09-26 19:49:23 +00:00
cbiesinger%web.de
064a9ddd04
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
2003-09-25 13:07:24 +00:00
cbiesinger%web.de
2fd7e23c94
Bug 220198
...
helperappservice qi's to httpchannel when it wants encodedchannel
r=bzbarsky sr=darin
2003-09-25 12:51:45 +00:00
cbiesinger%web.de
fd78917561
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.
2003-09-24 20:21:09 +00:00
cbiesinger%web.de
1f9b196855
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)
2003-09-23 19:27:07 +00:00
cbiesinger%web.de
6e63148879
219608 r=bzbarsky sr=darin compile warning in helperappservice (size/unsigned mismatch)
2003-09-23 19:24:26 +00:00
cls%seawood.org
bfca537521
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
2003-09-18 17:22:33 +00:00
cbiesinger%web.de
a581a582e6
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
2003-09-17 12:47:56 +00:00
cbiesinger%web.de
dce9af18db
Bug 218820
...
remove useless nsIExternalHelperAppService::canHandleContent
mozilla never calls this function; and it always returns PR_FALSE
r=bz sr=darin
2003-09-17 12:31:39 +00:00
cbiesinger%web.de
44e63e8ba7
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)
2003-09-14 15:54:57 +00:00
cbiesinger%web.de
bad255111b
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
2003-09-14 11:41:22 +00:00
cbiesinger%web.de
6f2ec1a6cf
Bug 120045
...
Multi-character character constants in nsExternalHelperAppService.cpp
r=bz sr=darin
2003-09-11 20:44:25 +00:00
cbiesinger%web.de
2a42055e93
fix off-by-one error
2003-09-11 16:14:58 +00:00
cbiesinger%web.de
5f50ab557c
Bug 65827
...
File extension (.php) determined from Content-Type header (or url extension) overrides filename in Content-Disposition header.
r=bz sr=darin
2003-09-11 13:27:06 +00:00
cbiesinger%web.de
0c41732588
Bug 217509
...
wrong app description shown in helper app dialog
r=bz sr=darin
2003-09-11 12:13:06 +00:00
timeless%mozdev.org
ffa2034bd9
Bug 217089 Compiler warnings
...
patch by mbockelkamp@web.de r=timeless sr=darin
2003-09-11 03:18:46 +00:00
bryner%brianryner.com
70b73feae9
Fix build on gcc 3.4 by removing extra semicolons (bug 218551). r/sr=dbaron, a=brendan.
2003-09-07 23:12:15 +00:00
ben%bengoodger.com
e9d0b7f4eb
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
2003-08-04 22:31:14 +00:00
ben%bengoodger.com
8b142c128e
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
2003-08-04 22:30:41 +00:00
bzbarsky%mit.edu
50766aa52c
Fix build bustage
2003-07-30 18:56:12 +00:00
bzbarsky%mit.edu
bbef4c6a07
Reverse some backwards assumptions to make things a little safer for users.
...
Bug 213921, r=biesi, sr=darin
2003-07-30 17:47:26 +00:00
bzbarsky%mit.edu
1e49092e30
Fix leaks of registry keys. Bug 213985, r=biesi, sr=darin
2003-07-29 14:51:58 +00:00
cbiesinger%web.de
a7f5c47622
214173 r=bzbarsky sr=darin Crash in typeFromExtEquals
...
Hopefully also fixes 213985, hang when downloading .tar.gz files (on windows)
2003-07-28 20:46:32 +00:00
bzbarsky%mit.edu
da6606bc48
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
2003-07-27 16:27:15 +00:00
cbiesinger%web.de
5d0f2929ed
fixing windows bustage
2003-07-26 22:09:37 +00:00
cbiesinger%web.de
2459f8185b
213882 r=bzbarsky sr=darin consider making aFileExt the primary extension if it is an extension
2003-07-26 21:01:08 +00:00
cbiesinger%web.de
e5caec95b5
fixing beos bustage
2003-07-26 18:58:13 +00:00
cbiesinger%web.de
faf8419fc6
147679 GetFromMIMEType on Windows only gets one extension and needs rethinking r=bzbarsky sr=darin
...
this merges nsIMIMEService::GetFromType and GetFromExtension
2003-07-25 16:48:00 +00:00
cbiesinger%web.de
763b641258
162249 r=bzbarsky sr=darin Running external program - lack of decent error messages
...
This adds a useful error message in case the specified helper application does not exist
2003-07-22 17:25:02 +00:00
jaggernaut%netscape.com
f008bc2bad
Bug 25886: Get rid of a bunch of unused NS_DEFINE_IID, NS_DEFINE_CID. r=caillon, sr=dbaron
2003-07-20 07:47:59 +00:00
dbaron%dbaron.org
d23eafdfe2
Fix firebird and thunderbird bustage by unforking contents of nsIGlobalHistory (which was frozen) and by tweaking the root Makefile.in. b=212509 r=mscott
2003-07-19 21:19:12 +00:00
jaggernaut%netscape.com
8c498df4c3
Bug 73353: more REQUIRES updates.
2003-07-17 20:34:47 +00:00
cls%seawood.org
ae4f86f093
Split XUL layers (xpfe & toolkit) into a separate tier class.
...
Make the history component its own module.
Bug #107302 r=bryner sr=leaf
2003-07-16 00:33:50 +00:00
cbiesinger%web.de
c95dd192aa
212468 r=bzbarsky sr=darin rethink the hashtable usage in helperappservice
2003-07-14 22:30:52 +00:00
cbiesinger%web.de
96ef090489
212110 r=bzbarsky sr=darin misc cleanup of externalhelperappservice
2003-07-14 21:09:11 +00:00
jaggernaut%netscape.com
bf82a649b9
Bug 212272: Switch some Substring users over to String(Begins|Ends)With. r=dwitte, sr=bzbarsky
2003-07-14 07:37:39 +00:00
cbiesinger%web.de
c6ec6b4801
78919 part 1. r=bzbarsky, sr=darin. This adds an |hasDefaultHandler| attribute
...
to nsIMIMEInfo that should be used to check if a default application is available
for this mimeinfo.
2003-07-08 13:52:46 +00:00