275 Commits

Author SHA1 Message Date
jshin%mailaps.org
74f778e521 bug 267475 Clicking links to JPEG file with Chinese name download the file instead of displaying it in browser r=cbie, sr=bz
git-svn-id: svn://10.0.0.236/trunk@165080 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-07 02:22:55 +00:00
dveditz%cruzio.com
afe1e85825 bug 263546: move external protocol warning down a level, r=jsr,sr=darin
git-svn-id: svn://10.0.0.236/trunk@164343 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-25 07:46:01 +00:00
cbiesinger%web.de
060bb20f4c 264713 ensure that nsExternalAppHandler will always have a reference to the
helperappservice
r=bzbarsky sr=darin


git-svn-id: svn://10.0.0.236/trunk@163930 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-17 14:47:35 +00:00
cbiesinger%web.de
8eb2130d2a add a way to get an application description for a given externally-handled
scheme, and use it in the confirmation dialog that asks whether to launch such
links.
bug 258802
windows and cross-platform part: r=ere sr=neil,bz
linux part: r=bz sr=bryner


git-svn-id: svn://10.0.0.236/trunk@163896 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-16 13:46:17 +00:00
cbiesinger%web.de
aeadd77d32 Bug 264253 exthandler should get an nsIPrompt off the window context, instead of
using nsIPromptService directly. this removes the dom and windowwatcher
dependency from exthandler.
r=bzbarsky sr=darin


git-svn-id: svn://10.0.0.236/trunk@163745 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-14 17:06:32 +00:00
cbiesinger%web.de
31976b9bf3 bug 249143 keep strong references to the dialog and |this| before prompting for the
file
r=bz sr=darin


git-svn-id: svn://10.0.0.236/trunk@162617 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-21 19:52:45 +00:00
cbiesinger%web.de
c8728c33cb Bug 259890 don't call Remove(PR_TRUE) to delete a file
r=bzbarsky sr=darin


git-svn-id: svn://10.0.0.236/trunk@162506 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-17 19:13:00 +00:00
darin%meer.net
5ec644086a fixes bug 257308 "Visual indicators of site security appear for the wrong site" r=biesi sr=bz
git-svn-id: svn://10.0.0.236/trunk@161968 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-09 06:54:52 +00:00
cbiesinger%web.de
90817be5d5 Bug 80787 support non-ascii extensions in mime service, mime info, and
exthandler
r=bzbarsky sr=darin


git-svn-id: svn://10.0.0.236/trunk@160550 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-09 21:27:24 +00:00
bzbarsky%mit.edu
42877f4e0f Add support for the application/rdf+xml MIME type. Bug 61839, patch by Alex
Vincent <ajvincent@juno.com>, r=bzbarsky, sr=jst


git-svn-id: svn://10.0.0.236/trunk@160482 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-08 01:31:02 +00:00
cbiesinger%web.de
625e62f911 Bug 249677 cancel does not delete temporary file in helper app dialog, if default action = save
r=darin sr=jst


git-svn-id: svn://10.0.0.236/trunk@159267 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-15 18:56:42 +00:00
cbiesinger%web.de
df37ddec19 bug 246280 trim trailing dots of files being downloaded before extension
checking
r=darin sr=jst


git-svn-id: svn://10.0.0.236/trunk@158810 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-06 23:15:30 +00:00
roc+%cs.cmu.edu
0b0fa89131 Bug 226439. Convert codebase to use AppendLiteral/AssignLiteral/LowerCaseEqualsLiteral. r+sr=darin
git-svn-id: svn://10.0.0.236/trunk@157992 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-17 00:13:25 +00:00
cbiesinger%web.de
a57ea7b105 bug 235505 make nsIMIMEInfo::MIMEType readonly
r=bzbarsky sr=darin


git-svn-id: svn://10.0.0.236/trunk@157780 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-11 15:47:57 +00:00
cbiesinger%web.de
2c93a1c770 document @mozilla.org/download;1
don't delete incomplete files when the download is cancelled/aborts
tell the download impl about the location of the temp file, if it is interested
244448 r=bzbarsky sr=darin


git-svn-id: svn://10.0.0.236/trunk@156962 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-26 15:07:52 +00:00
gerv%gerv.net
8419e1650f Bug 236613: change to MPL/LGPL/GPL tri-license.
git-svn-id: svn://10.0.0.236/trunk@155030 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-17 16:52:41 +00:00
bzbarsky%mit.edu
29a9e0f2ad Fix crash on loading files with no extension. Followup to bug 235502, patch by
biesi, r+sr=darin


git-svn-id: svn://10.0.0.236/trunk@155014 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-17 04:45:25 +00:00
darin%meer.net
66e8a5897c landing patch for bug 24867 "UI for FTP upload" r=biesi,neil sr=bryner
git-svn-id: svn://10.0.0.236/trunk@155005 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-17 00:58:23 +00:00
cbiesinger%web.de
34df912ac0 bug 239604. make uriloader more doxygen friendly, and remove unused "command"
parameter from nsIContentHandler::handleContent, and change the type of
aWindowContext to nsIInterfaceRequestor.
r=bzbarsky sr=darin


git-svn-id: svn://10.0.0.236/trunk@154988 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-16 21:06:07 +00:00
cbiesinger%web.de
22d0556890 this time, a correct fix...
git-svn-id: svn://10.0.0.236/trunk@154948 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-15 21:58:51 +00:00
cbiesinger%web.de
edb5a180b8 fixing osx bustage
git-svn-id: svn://10.0.0.236/trunk@154944 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-15 21:32:11 +00:00
cbiesinger%web.de
39f2b721ec Bug 235502 nsIMIMEService, nsIMIMEInfo should use nsACString/nsAString instead of string/wstring
r=bzbarsky sr=darin


git-svn-id: svn://10.0.0.236/trunk@154941 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-15 20:56:37 +00:00
cbiesinger%web.de
162e887c63 Bug 237947 Mozilla Freezes when handling filetypes with an entry in .mailcap that does not exist
o) also return from GetFileTokenForPath when the base class implementation failed
with NS_ERROR_FILE_NOT_FOUND.
o) Do not return NS_ERROR_FILE_NOT_FOUND from the
base class impl if the file path is both relative and does not exist in the
mozilla directory.
o) Make sure to break out of the loop in the unix GetFileTokenForPath even if
ApendRelativePath fails

r+sr=bzbarsky a=asa


git-svn-id: svn://10.0.0.236/trunk@154411 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-31 19:32:26 +00:00
cbiesinger%web.de
7071062876 229636 search for helper apps in mozilla directory before $PATH
r=bzbarsky sr=darin


git-svn-id: svn://10.0.0.236/trunk@153695 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-08 20:15:09 +00:00
cbiesinger%web.de
055d84aa9c ...and now, the correctly merged version, that even compiles
git-svn-id: svn://10.0.0.236/trunk@153635 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-06 19:43:40 +00:00
cbiesinger%web.de
f790b8534a Bug 124307, respect umask for downloaded files.
r=bzbarsky sr=darin


git-svn-id: svn://10.0.0.236/trunk@153634 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-06 19:37:22 +00:00
cbiesinger%web.de
030baf0831 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.


git-svn-id: svn://10.0.0.236/trunk@153118 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-23 22:49:28 +00:00
cbiesinger%web.de
d48fe3a90b Bug 233145 stop implementing nsIURIContentListener in nsExternalAppHandler
r=bzbarsky sr=darin


git-svn-id: svn://10.0.0.236/trunk@152486 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-07 19:52:16 +00:00
cbiesinger%web.de
4ad889bcc7 fixing bustage
git-svn-id: svn://10.0.0.236/trunk@152436 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-06 23:05:40 +00:00
cbiesinger%web.de
9d521b4603 Bug 233169 [windows] It's impossible to set helper applications for executables
r=bzbarsky sr=darin


git-svn-id: svn://10.0.0.236/trunk@152435 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-06 22:32:29 +00:00
cbiesinger%web.de
bf8440f216 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


git-svn-id: svn://10.0.0.236/trunk@152422 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-06 18:43:27 +00:00
cbiesinger%web.de
b904cd10b8 Bug 232784, verify that opening the file works, and show an error message if it doesn't
r=pinkerton sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@152368 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-05 10:53:11 +00:00
jst%mozilla.jstenback.com
6629ad58f7 Fixing bug 232503. Start using Empty[C]String() to save a bit on code-size. r+sr=peterv@propagandism.org
git-svn-id: svn://10.0.0.236/trunk@152045 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-29 22:04:45 +00:00
cbiesinger%web.de
f6ffec5a2f 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


git-svn-id: svn://10.0.0.236/trunk@151980 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-28 22:05:25 +00:00
cbiesinger%web.de
abb0d8eec7 fix bustage
git-svn-id: svn://10.0.0.236/trunk@151455 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-17 13:41:23 +00:00
cbiesinger%web.de
889eb264eb bug 55690 Spool file should be moved once the user picks a filename
r=bzbarsky sr=darin


git-svn-id: svn://10.0.0.236/trunk@151453 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-17 13:18:12 +00:00
cbiesinger%web.de
1070bd2129 230970
nsExternalAppHandler needs no virtual functions
also, w/o bug: nsExternalHelperAppService doesn't require threadsafe addref/release
r=bzbarsky sr=darin


git-svn-id: svn://10.0.0.236/trunk@151423 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-16 18:22:55 +00:00
bzbarsky%mit.edu
900c6b8462 Work around misconfiguration in default Apache installs that makes it claim all
sorts of stuff as text/plain.  Bug 220807, r=biesi, sr=darin


git-svn-id: svn://10.0.0.236/trunk@151013 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-08 03:56:02 +00:00
cbiesinger%web.de
4d13cc97b4 bug 229785 also allow "Content-Disposition: name=foo" headers, in addition to filename=foo
r=bzbarsky sr=darin


git-svn-id: svn://10.0.0.236/trunk@150988 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-07 20:23:46 +00:00
cbiesinger%web.de
abb214bdd2 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


git-svn-id: svn://10.0.0.236/trunk@150777 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-30 10:45:12 +00:00
cbiesinger%web.de
4f83cd1303 Bug 227029 nsExternalAppHandler dynamically allocates buffer for no reason
r+sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@150492 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-19 15:18:59 +00:00
cbiesinger%web.de
6e629bd8da 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


git-svn-id: svn://10.0.0.236/trunk@150239 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-12 09:42:54 +00:00
cbiesinger%web.de
131d5aeaa4 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


git-svn-id: svn://10.0.0.236/trunk@149992 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-03 22:21:39 +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
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
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
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
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
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
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