36 Commits

Author SHA1 Message Date
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
scc%netscape.com
6a57d077e1 making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66076 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 07:05:34 +00:00
davidm%netscape.com
5fc312c27f 31054 'TEXT' file which contains non ASCII does not open correctly
git-svn-id: svn://10.0.0.236/trunk@65311 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-05 03:03:50 +00:00
scc%netscape.com
3736f9b742 making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@64927 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-02 08:34:55 +00:00
warren%netscape.com
d100457780 Bug 21556: Making linux be thread-safe. Making tons of classes implement threadsafe AddRef/Release. a=jar
git-svn-id: svn://10.0.0.236/trunk@62243 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-05 21:26:01 +00:00
valeski%netscape.com
76d72ee785 r=rhp. Further extension of the nsIMIMEService.
git-svn-id: svn://10.0.0.236/trunk@58510 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-25 02:40:16 +00:00
valeski%netscape.com
a83ae5bf68 r=rhp. nsIMIMEInfo and nsIMIMEService have been revamped (there's one more small iteration coming tomorrow). nsIMIMEInfo has been extended and the service has been multi indexed using file extensions *and* the MIME type as keys.
git-svn-id: svn://10.0.0.236/trunk@58478 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-24 15:41:03 +00:00
dmose%mozilla.org
92d791b7b0 updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@52908 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-06 03:40:37 +00:00
mccabe%netscape.com
69a8cf7c7b Fix to 7610. Modify xpidl compiler to add 'const' to the method signature for generated attribute setter methods for string, wstring and nsid attributes.
As this changed the generated interface signatures, I had to change all of the uses to avoid bustage.  Any corners of the browser that aren't built by default, or that I haven't discovered how to build, may be at risk of bustage if they use string or wstring attributes.  (This could mean blackwood; sorry, guys!)

Many thanks to Alec Flett (alecf@netscape.com) for preparing diffs for the mailnews portion of the signature changes; thanks also to Ariel Backenroth (arielb@rice.edu) and Mike Shaver (shaver@mozilla.org) for help with updating the tree with NS_DECL_NSIFOO macros; everwhere where one of these macros was used was one less place I had to manually add 'const'.

Also removed extraneous space from generated method signatures, leftover from Brendan's capitalization spam, and made 'const decl must be of type short or long' an error rather than just a warning.


git-svn-id: svn://10.0.0.236/trunk@48284 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 23:46:35 +00:00
valeski%netscape.com
30bf2a8793 changed nsCOMTypeInfo<> template to NS_GET_IID macro
git-svn-id: svn://10.0.0.236/trunk@45978 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-03 23:51:14 +00:00
kipp%netscape.com
4b348cc604 Use nsAutoString instead of nsString for temps
git-svn-id: svn://10.0.0.236/trunk@45699 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-02 18:13:07 +00:00
valeski%netscape.com
a01b026133 factored repeated mime type retrieval implementations into mime mapping service methods
git-svn-id: svn://10.0.0.236/trunk@41758 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-01 16:42:25 +00:00
warren%netscape.com
57e8993efd Fixed UMR / refcounting problem (purify).
git-svn-id: svn://10.0.0.236/trunk@41417 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-28 04:02:07 +00:00
valeski%netscape.com
6764e14d62 changed mime map service to use nsHashtabel
git-svn-id: svn://10.0.0.236/trunk@39764 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-16 21:56:54 +00:00
valeski%netscape.com
65cbf0d137 adding warning comment
git-svn-id: svn://10.0.0.236/trunk@39216 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-13 23:39:31 +00:00
valeski%netscape.com
62ed671466 adding mime type resolver module.
git-svn-id: svn://10.0.0.236/trunk@38128 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-02 20:08:27 +00:00