65 Commits

Author SHA1 Message Date
dougt%meer.net
1036287070 This is a workaround for the WinCE Native Unicode converter. I couldn't figure out how to use the utf8 codepages on certain devices. So, mapping from UTF-8 -> UCS-2 became a problem. This fix simply uses the existing algorithm in intl/uconv. This change only effect the Windoze CE native uconv. NPODB. Also includes further gfx fixup. r/sr=dveditz b=297683 WinCE only.
git-svn-id: svn://10.0.0.236/trunk@179816 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-07 19:21:02 +00:00
cbiesinger%web.de
548c1bf82f bug 283606 make nsOSHelperAppService::GetApplicationDescription get a
friendly description
r=darin sr=bz a=asa


git-svn-id: svn://10.0.0.236/trunk@177901 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-16 22:00:21 +00:00
dougt%meer.net
5ad50e9b43 * Fixes some build problems when trying to build non-static. (removing link
libraries that don't exist on Windows CE)

* Taking xxx advice and making GetNAME always return a GDI forcing us to use
GetTextMetrics instead of GetFontData (which doesn't exist on Windows CE)

* Windows CE on ARM doesn't support C++ exceptions.  In the windows plugin code
uses catches to ensure that the plugins don't crash mozilla.  On windows ce on
arm, we have no choice but to disable CALL_SAFETY_ON.

* On Windows CE, VerQueryValue internal structure can not be modified so
callers must do a bit of string conversion.

* Disabling more code in nsOSHelperAppService for Windows CE.

* Enabling the Windows Registry code in XPCOM since the Window CE shunt now
supports the limited set needed (all but notification).

Bug=297683, r=Ere Maijala, sr=Dan Veditz, a=Asa


git-svn-id: svn://10.0.0.236/trunk@174725 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-16 21:20:45 +00:00
jshin%mailaps.org
b489431c40 bug 295202: convert nsOSHelperApplication to use nsIWindowsRegKey (r=cbie, sr=darin, a=asa)
git-svn-id: svn://10.0.0.236/trunk@174518 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-13 18:57:10 +00:00
ben%bengoodger.com
90ccc02d3b 282196 - need to access arbitrary metdata on default application handler (windows) - make nsMIMEInfoWin implement nsIPropertyBag with property keys to access moz-icon URIs for default and preferred application handlers. r=biesi sr=bz
252189 - retrieve proper application handler names from windows registry/binary VERSIONINFO metadata r=biesi sr=bz


git-svn-id: svn://10.0.0.236/trunk@169837 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-25 09:02:14 +00:00
dougt%meer.net
f3751b7529 Fixes 280243. WinCE build support. Disabling helper application on WinCE. r=bryner.
git-svn-id: svn://10.0.0.236/trunk@168860 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-06 03:52:47 +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
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
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
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
bienvenu%nventure.com
b2143888a2 fix regression in opening .eml files, and any other file extension whose content type is specified in windows registry, 240942, r/sr=bsbarsky
git-svn-id: svn://10.0.0.236/trunk@155134 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-19 18:19:56 +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
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
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
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
80f05f9dbd bug 78919, part 3: Move nsMIMEInfoImpl to exthandler, and don't allow to CreateInstance it
r=bzbarsky sr=darin


git-svn-id: svn://10.0.0.236/trunk@151954 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-28 14:48:22 +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
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
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
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
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
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
cbiesinger%web.de
72ffd605aa 147679 GetFromMIMEType on Windows only gets one extension and needs rethinking r=bzbarsky sr=darin
this merges nsIMIMEService::GetFromType and GetFromExtension


git-svn-id: svn://10.0.0.236/trunk@145198 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-25 16:48:00 +00:00
bzbarsky%mit.edu
20729b1b47 Fix bug 86640 -- change helper app dialog to properly remember the selected
course of action, move the "neverAsk" information from prefs back to
mimeTypes.rdf, remove the "Reset" button from helper app prefs, set up a way to
select "use default OS helper" for a given type.  Patch by Bill Law
<law@netscape.com> and Philip K. Warren <pkw@us.ibm.com>, r=biesi, sr=bzbarsky,
what passes for moa in helper apps=bzbarsky.


git-svn-id: svn://10.0.0.236/trunk@136204 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-12 01:14:35 +00:00
dveditz%netscape.com
0f0277ea5c fix crash in ShellExecute() on some versions of windows (bug 161357) r=mstoltz,sr=darin
git-svn-id: svn://10.0.0.236/trunk@133117 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-06 05:20:40 +00:00
seawood%netscape.com
f9eb727003 Define WIN32_LEAN_AND_MEAN globally for win32 builds.
Thanks to Stephen Walker <walk84@yahoo.com> for the patch.
Bug #172898 r=cls a=asa


git-svn-id: svn://10.0.0.236/trunk@132136 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-17 06:47:01 +00:00
bzbarsky%mit.edu
e62936a18e wallpaper for a bit of bug 120327; this should keep us from appending
".exe" all the time to things on Windows.  patch by me and
jruderman@hmc.edu, r=law, sr=jag, a=asa


git-svn-id: svn://10.0.0.236/trunk@125660 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-24 00:42:12 +00:00
darin%netscape.com
24feadaaed fixes bug 142870 "nsIFile should use UCS-2 instead of UTF-8"
r=dougt sr=alecf


git-svn-id: svn://10.0.0.236/trunk@121010 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-07 23:07:19 +00:00
darin%netscape.com
824def02af fixes bug 129279 "nsIFile unicode/utf8/ascii task"
r=dougt sr=alecf


git-svn-id: svn://10.0.0.236/trunk@120092 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-27 05:33:09 +00:00
law%netscape.com
b08cd22fee Bug 116938; make sure temp file has extension matching content type and block ::ShellExecute of executable files; r=bzbarsky, sr=mscott
git-svn-id: svn://10.0.0.236/trunk@119650 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-24 00:09:52 +00:00
darin%netscape.com
04849998e1 fixes bug 124042 "support internationalized URIs" r=dougt, sr=alecf, a=asa
git-svn-id: svn://10.0.0.236/trunk@115936 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-06 07:48:55 +00:00
alecf%netscape.com
f7ee18f044 one more part of fix for bug 107575, including the much coveted whitespace
remove aIgnoreCase parameter from all nsString and nsCString consumers
sr=jag, r=shaver


git-svn-id: svn://10.0.0.236/trunk@113390 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 01:53:09 +00:00
mkaply%us.ibm.com
e91a3a7744 No bug - fix some tabs that were really bugging me
git-svn-id: svn://10.0.0.236/trunk@113352 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 20:31:59 +00:00
pete%alphanumerica.com
374763776d removing bad header.
--pete


git-svn-id: svn://10.0.0.236/trunk@109590 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 01:09:37 +00:00
pete%alphanumerica.com
2bad071cbe fix for win bustage
forgot nsIProcess header

--pete


git-svn-id: svn://10.0.0.236/trunk@109589 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 01:08:54 +00:00
pete%alphanumerica.com
14973255e8 b=112515, r=douft, sr=jst
remove spawn method from nsIFile.

/**
    Warning nsIFile API change
 */

--pete


git-svn-id: svn://10.0.0.236/trunk@109584 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 00:27:43 +00:00
jaggernaut%netscape.com
640c7f02ab Bug 53057: Fixing up users of implicit |CharT*| conversion operators for nsCString to use |.get()| instead, rr=dbaron, rs=scc
git-svn-id: svn://10.0.0.236/trunk@106946 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 09:09:57 +00:00
jaggernaut%netscape.com
51b17b5bf0 Bug 88413: Remove |GetUnicode()| from nsString (and replace it with |get()|). r=dbaron, rs=scc.
This removes all call-sites I can currently fix. Tomorrow I'll try to get someone to checkin my changes to security/ and I'll get some help with the Netscape side of things.

nsString::GetUnicode()'s final death-blow will be dealt soon. Please keep this in mind as you add new code :-)


git-svn-id: svn://10.0.0.236/trunk@98363 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-30 11:02:25 +00:00
yokoyama%netscape.com
419841b4e0 Bug 79516;
Convert the description of Registry type into proper unicode
/r=ftang, /sr=ben, /a=asa


git-svn-id: svn://10.0.0.236/trunk@97511 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-20 00:57:52 +00:00
law%netscape.com
0538f0f440 Bug 82584; don't clear 'always ask me' flag based on Win32 registry setting; this will require the user to see the helper app dialog for confirmation to open at least one time and to specify that confirmation is not necessary directly to Mozilla; r=sgehani/sr=mscott/a=asa
git-svn-id: svn://10.0.0.236/trunk@97308 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-18 00:24:20 +00:00
law%netscape.com
edd6b3b03b Bug 52454; fix lots of external app service bugs and enable new helper app dlg; r=pchen@netscape.com, sr=mscott@netscape.com
git-svn-id: svn://10.0.0.236/trunk@93843 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-03 21:24:36 +00:00
mscott%netscape.com
336f3c5ff8 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


git-svn-id: svn://10.0.0.236/trunk@86441 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-07 02:43:18 +00:00
mscott%netscape.com
b07bb4b4ae 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.


git-svn-id: svn://10.0.0.236/trunk@85680 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-29 21:35:12 +00:00
mscott%netscape.com
473b0dc188 back out a piece of code that was not meant to be checked in and was not reviewed.
git-svn-id: svn://10.0.0.236/trunk@85485 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-25 07:00:06 +00:00
mscott%netscape.com
d5c29a9c28 Bug #63346 --> implement open and open folder APIs for windows
sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@85482 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-25 06:48:47 +00:00
mscott%netscape.com
d491c5014f clean up some rv error code handling
sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@85395 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-23 22:35:54 +00:00