65 Commits

Author SHA1 Message Date
dmose%mozilla.org
dfc0ea9e3d Split nsIHandlerInfo.launchWithURI into nsIHandlerInfo.launchWithURI and nsIMIMEInfo.launchWithFile (bug 391194) r=cbiesinger@gmx.at, sr=bzbarsky@mit.edu
git-svn-id: svn://10.0.0.236/trunk@232427 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-21 00:47:48 +00:00
myk%mozilla.org
43d692712b bug 385740: support multiple apps per nsIHandlerInfo via a new nsIHandlerInfo::possibleApplicationHandlers attribute; r=biesi, sr=dmose
git-svn-id: svn://10.0.0.236/trunk@231976 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-13 20:41:34 +00:00
sdwilsh%shawnwilsher.com
5f1e8511af Bug 389969 - There is no protocol handling dialog. r=cbiesinger, sr=dmose, a=schrep
git-svn-id: svn://10.0.0.236/trunk@231202 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-30 23:33:17 +00:00
dmose%mozilla.org
decca54dc5 local protocol handling apps can be chosen but don't work (bug 389758); patch by dolske and me, r=biesi, sr=bz, a=mconnor
git-svn-id: svn://10.0.0.236/trunk@231142 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-29 03:38:52 +00:00
sdwilsh%shawnwilsher.com
9b36ce8382 Bug 385065 - protocol handling dialog. toolkit: r=mano; uriloader: r=cbiesinger, sr=dmose general: ui-r=beltzner
git-svn-id: svn://10.0.0.236/trunk@231019 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-26 04:24:31 +00:00
myk%mozilla.org
c604d64c24 bug 388388: (relanding updated patch) differentiate between MIME and protocol nsIHandlerInfo objects by not allowing protocol objects to be QIed to nsIMIMEInfo, and expose the scheme for a protocol object via the new nsIHandlerInfo::type attribute (which also holds the MIME type for a MIME object and deprecates nsIMIMEInfo::MIMEType); r=dmose, sr=biesi
git-svn-id: svn://10.0.0.236/trunk@230963 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-25 20:40:42 +00:00
dmose%mozilla.org
98eb2d9168 Back out MIME/protocol handler work from bug 388388 because of difficult to diagnose unit test lossage on windows. Note that Windows tinderboxen will go and stay red until they are clobbered because of dependency system lossage.
git-svn-id: svn://10.0.0.236/trunk@230815 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-24 23:38:31 +00:00
myk%mozilla.org
d2059ea375 bug 388388: differentiate between MIME and protocol nsIHandlerInfo objects by not allowing protocol objects to be QIed to nsIMIMEInfo, and expose the scheme for a protocol object via the new nsIHandlerInfo::type attribute (which also holds the MIME type for a MIME object and deprecates nsIMIMEInfo::MIMEType); r=dmose, sr=biesi
git-svn-id: svn://10.0.0.236/trunk@230806 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-24 20:29:52 +00:00
dmose%mozilla.org
180ba5bb15 Change nsIHandlerInfo::LaunchWithFile to be launchWithURI (bug 386078), r+sr=biesi
git-svn-id: svn://10.0.0.236/trunk@230151 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-17 22:59:58 +00:00
dmose%mozilla.org
3c752eb47d Refactor nsIMIMEInfo and nsExternalHelperAppService to support local and web-based protocol handlers (bug 384374), r=biesi, sr=sicking
git-svn-id: svn://10.0.0.236/trunk@229371 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-05 19:31:46 +00:00
bzbarsky%mit.edu
688b0ccc18 If we have an /etc/mime.types extension for a type, that should NOT make
/etc/mailcap override the gnome-vfs handler for that type.  Patch partially by
Mike Hommey  <mh+mozilla@glandium.org> and partially by me, r+sr=biesi


git-svn-id: svn://10.0.0.236/trunk@224553 18797224-902f-48f8-a5cc-f745e15eee43
2007-04-15 20:43:49 +00:00
mark%moxienet.com
fcafcb9739 335840 nsIMimeInfo doesn't indicate when Mac type/creator are invalid. r=josh sr=bryner
git-svn-id: svn://10.0.0.236/trunk@195661 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-28 18:17:11 +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
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
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
d02f9c7f35 Bug 235504 Remove nsCString::EqualsWithConversion(const char*)
r=darin sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@154891 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-14 20:09:30 +00:00
cbiesinger%web.de
b437469879 bug 235695, one constructor is enough for nsMIMEInfoBase and subclasses
r=bzbarsky sr=darin


git-svn-id: svn://10.0.0.236/trunk@153620 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-06 14:43:30 +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
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
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
cbiesinger%web.de
c80cb4ba6c 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.


git-svn-id: svn://10.0.0.236/trunk@144559 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-08 13:52:46 +00:00
cbiesinger%web.de
7ae9ea4fdb 211889 r=bzbarsky sr=darin - remove DataURI attribute from nsIMIMEInfo (unused and not really implemented) as well as the mURI member of nsMimeInfoImpl
git-svn-id: svn://10.0.0.236/trunk@144543 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-07 22:49:35 +00:00
alecf%flett.org
c4fff1b9ec fix for bug 205895 - make nsIMIMEInfo.getFileExtensions use a string enumerator, to avoid excess allocation at startup
r=bz, sr=darin


git-svn-id: svn://10.0.0.236/trunk@143801 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-17 17:00:40 +00:00
dwitte%stanford.edu
dc7e857400 bug 100649: Length() being used where IsEmpty() is meant
treewide changes to convert incorrect usages of string.Length() to string.IsEmpty().

thanks to afatecha@idea.com.py (Ariel Fatecha) for the patch. r=dwitte, sr=jst.

got the ok from Asa to land into a closed tree.


git-svn-id: svn://10.0.0.236/trunk@142828 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-23 21:34:47 +00:00
bzbarsky%mit.edu
4b5837cdf9 Make defaultDescription and applicationDescription use the handler's leafname
if no description is set.  Bug 190409, r=pkw@us.ibm.com, sr=darin


git-svn-id: svn://10.0.0.236/trunk@138226 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-22 20:06:56 +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
dbaron%dbaron.org
855a1b80fa Bug 178643: Remove uses of NS_INIT_ISUPPORTS, since it is no longer needed. r=timeless sr=jag
git-svn-id: svn://10.0.0.236/trunk@136019 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-08 22:35:09 +00:00
dougt%netscape.com
e289284076 166917. Clean up xpcom SDK includes. r=rpotts@netscape.com, sr=alecf@netscape.com, a=rjesup@wgate.com
git-svn-id: svn://10.0.0.236/trunk@129050 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-07 17:13:19 +00:00
bzbarsky%mit.edu
392f726bc8 fix regression of bug 124741. r=law, sr=alecf, a=asa
git-svn-id: svn://10.0.0.236/trunk@115853 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-05 22:35:56 +00:00
alecf%netscape.com
8755908f04 bug 127091 - big string cleanup, removing old APIs
- removing Assign/AppendWithConversion for single-characters
- removing unused StripChars
- removing ReplaceChar[s] for non-matching chars
- removing CompressSet
- removing nsCString::Find/FindCharInSet/RFind for unichar strings
- removing lots of EqualsWithConversion
r=dp, sr=jag
a=asa


git-svn-id: svn://10.0.0.236/trunk@115750 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-04 23:18:21 +00:00
bzbarsky%mit.edu
bb7de755f9 Make it possible to save files of types for which we have mimeinfos but
no extensions.  Bug 68801, r=law, sr=jag


git-svn-id: svn://10.0.0.236/trunk@114236 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-12 02:22:39 +00:00
bzbarsky%mit.edu
67d58a4b94 Bug 90633. Use the URL extension for the temp file we pass to helpers
if it matches the extension list in the mime info.  r=law, sr=mscott.


git-svn-id: svn://10.0.0.236/trunk@112298 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 04:28:06 +00:00
bzbarsky%mit.edu
6c8e4bb64d Make the helper app dialog report the correct mime type after we've
tried to use extensions to guess the type.  Bug 78943, r=law, sr=mscott


git-svn-id: svn://10.0.0.236/trunk@110323 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-12 01:02:26 +00:00
jaggernaut%netscape.com
5e2a1a7476 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@106206 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-24 23:47:43 +00:00
jaggernaut%netscape.com
51e0dc7a6c Bug 100476: Convert uses of member functions ToNewUnicode, ToNewCString and ToNewUTF8String to their global versions and remove support from nsCString and nsString. r=dbaron, rs=scc
git-svn-id: svn://10.0.0.236/trunk@104212 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-29 08:28:41 +00:00
gerv%gerv.net
13afb6d0f9 Relicensing Round 1, Take 2. Most C-like NPL files -> NPL/GPL/LGPL. Bug 98089.
git-svn-id: svn://10.0.0.236/trunk@104119 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-28 20:14:13 +00:00
bzbarsky%mit.edu
c6d1988306 Fix linux topcrash bug 97970. Make AddMimeInfoToCache do some more
error checking than it used to.  r=timeless, sr=mscott


git-svn-id: svn://10.0.0.236/trunk@103643 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-24 22:39:17 +00:00
mscott%netscape.com
b4288e68b9 Bug #80866 --> new helper app dialog design. Re-implement Get/SetAlwaysAskBeforeHandling to remember in two
sets of preferences.

r=hewitt
sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@98128 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-28 02:18:13 +00:00
valeski%netscape.com
9dd9cc908f whoops, that's supposed to be a 32bit int
git-svn-id: svn://10.0.0.236/trunk@80008 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-27 20:25:15 +00:00
valeski%netscape.com
a2dba32cc0 r=brendan,a=brendan. 54127. This change cleans up a leak when we run out of memory, and reduces allocation of the file extension buffer by 2x. it also dumps the count to a local variable to do away w/ memory ambiguity using a pointer to elementCount
git-svn-id: svn://10.0.0.236/trunk@80005 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-27 19:50:59 +00:00
scc%mozilla.org
20f047d01b fixing code that relied on implicit string construction
git-svn-id: svn://10.0.0.236/trunk@76750 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-20 06:59:07 +00:00
scc%mozilla.org
b9749d26ca fixing code that relied on implicit string construction
git-svn-id: svn://10.0.0.236/trunk@76712 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-19 20:01:04 +00:00
valeski%netscape.com
0df741a635 39797. r=mscott. MAC was sending back an empty string as the mime type down in the MIMEService, now we return an error in the mime service if we confront this, and that causes HTTP to produce a default type
git-svn-id: svn://10.0.0.236/trunk@74613 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-21 23:52:36 +00:00
mscott%netscape.com
1b49a1acb9 Bug #43583 --> new state for using system default. Add a separate boolean
for asking the user before handling.
r=alecf


git-svn-id: svn://10.0.0.236/trunk@74041 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 23:11:59 +00:00
mscott%netscape.com
b07d95d06c Bug #38374 --> fix refcounting problem on the application field
r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@72801 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 20:38:52 +00:00
mscott%netscape.com
cdad905fd9 Bug #38374 --> add application and user preferred handle action to mime info.
I'm going to be storing this information in the helper app code.
r=valeski


git-svn-id: svn://10.0.0.236/trunk@72739 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 06:34:43 +00:00
warren%netscape.com
cc5d426fbe Renaming nsIAllocator to nsIMemory (and nsAllocator to nsMemory). API cleanup/freeze. Bug #18433
git-svn-id: svn://10.0.0.236/trunk@71450 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-03 09:46:12 +00:00
mccabe%netscape.com
5adc001389 change several IDL parameters to be unsigned, to work better with length_is, size_is. Preperatory to requiring unsigned in xpidl, fixing 13413
git-svn-id: svn://10.0.0.236/trunk@67512 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 10:51:52 +00:00
davidm%netscape.com
9445a7c86d Replace nsString with nsCString. Add routines for setting the ext froma comma delimenated list
git-svn-id: svn://10.0.0.236/trunk@66415 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 04:45:30 +00:00