251 Commits

Author SHA1 Message Date
roc+%cs.cmu.edu
bdc7e5f59b Bug 226439. Convert Seamonkey to EqualsLiteral. rs=darin
git-svn-id: svn://10.0.0.236/trunk@156785 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-22 22:15:22 +00:00
bzbarsky%mit.edu
135f4a26a4 Don't store "no such component" entries in the hashtable when a contractid
lookup fails.  Now that we preload the registry, that serves no purpose.  Bug
230776, patch by Malcolm Rowe <malcolm-bmo@farside.org.uk>, r=dougt, sr=alecf


git-svn-id: svn://10.0.0.236/trunk@155079 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-18 17:35:29 +00:00
gerv%gerv.net
210853d71e Bug 236613: change to MPL/LGPL/GPL tri-license.
git-svn-id: svn://10.0.0.236/trunk@155067 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-18 14:21:17 +00:00
scott%scott-macgregor.org
72c723ac25 Back out the backout of Bug #235882. It looks like dbaron's leak fix actually fixed the regressions the component manager
changes caused for JS components.


git-svn-id: svn://10.0.0.236/trunk@153826 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-10 06:40:36 +00:00
scott%scott-macgregor.org
fb2ac810aa Backout Bug #235882. This broke the component manager's ability to load JS components leading to several regressions,
most noticeably: Bug #236952.


git-svn-id: svn://10.0.0.236/trunk@153824 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-10 06:11:10 +00:00
dbaron%dbaron.org
6bb5e72f6d Fix leak regression from timeless's checkin yesterday. b=235882 r=caillon sr=jst
git-svn-id: svn://10.0.0.236/trunk@153775 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-09 23:17:19 +00:00
timeless%mozdev.org
467a5e68f1 Bug 235882 Make nsComponentManagerImpl::AddLoaderType return only one type of value
r=dougt


git-svn-id: svn://10.0.0.236/trunk@153738 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-09 07:09:52 +00:00
timeless%mozdev.org
2463c3d411 Bug 235875 Replace NS_ERROR_SERVICE_NOT_FOUND
r=dougt


git-svn-id: svn://10.0.0.236/trunk@153373 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-29 08:04:46 +00:00
bryner%brianryner.com
1bd144eac3 Continuing removal of unneeded virtual destructors (bug 229875). r=dougt, sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@151669 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-22 01:01:19 +00:00
bsmedberg%covad.net
3f2c63efd6 Followup on bug 223084, fix bustage of static builds. Pass a null nsIFile* to the static component loader during autoregistration.
git-svn-id: svn://10.0.0.236/trunk@148688 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-01 14:46:08 +00:00
bryner%brianryner.com
c81aa21722 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@146626 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-08 00:31:50 +00:00
brendan%mozilla.org
95220b5330 Add shared DHashTableOps for [const] char *key use-cases, clean up dhash API abusages (214839, r=dougt, sr=dbaron).
git-svn-id: svn://10.0.0.236/trunk@145624 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-05 20:09:21 +00:00
timeless%mozdev.org
e29d6e9e30 Bug 213549 regxpcom thinks SelfRegisterDll FAILED = successful registration.
r=dougt


git-svn-id: svn://10.0.0.236/trunk@145513 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-03 09:59:05 +00:00
timeless%mozdev.org
c4702398f4 Bug 209681 improve XPCOM_CHECK_PENDING_CIDS: prevent some crashes, enable component manager to block components by contract
r=dougt


git-svn-id: svn://10.0.0.236/trunk@143894 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-18 23:03:08 +00:00
bsmedberg%covad.net
e3c168a346 Bug 193031 fix category manager to use aPersist parameter. Bug 54639 Category Manager is not thread-safe. Bug 208437 separate threadsafe nsBaseHashtable into super-class nsBaseHashtableMT. r=dougt/alecf I know Sun Workshop builds are still broken... working on it.
git-svn-id: svn://10.0.0.236/trunk@143853 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-18 11:26:27 +00:00
bryner%netscape.com
989e15c152 Fix a debug-only crash when requesting a non-existant contractid. Bug 209680, r=dougt, sr=alecf.
git-svn-id: svn://10.0.0.236/trunk@143814 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-17 21:12:11 +00:00
timeless%mozdev.org
5a16dcbfd7 Bug 204146 Undefined symbols during autoregistration should go to stdout
Change output for NSPR_LOG_MODULES=nsComponentManager:1 .. 4 to be useful
r=dougt


git-svn-id: svn://10.0.0.236/trunk@143805 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-17 17:50:00 +00:00
dougt%meer.net
ca6e5be051 Stacks nsFactoryEntry's so that we can support overloading factories a bit better. r=darin, a=blizzard, b=204870
git-svn-id: svn://10.0.0.236/trunk@142385 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-13 22:50:03 +00:00
dougt%meer.net
6054d2e34d Backing out dependent library loading on windows. Fixes 204676.
git-svn-id: svn://10.0.0.236/trunk@142185 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-07 18:39:47 +00:00
dougt%netscape.com
c19388fec5 bug 201711. We were not uninstalling the component. r=darin
git-svn-id: svn://10.0.0.236/trunk@141348 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-18 00:46:34 +00:00
dougt%netscape.com
89089054dc now correctly determines when two services race on a single cid. patch by mscott+dougt, r=dbaron, b=194568.\nalso removes xpcom component release location sr=alecf b=201263
git-svn-id: svn://10.0.0.236/trunk@141128 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-14 20:50:14 +00:00
dbradley%netscape.com
dc3c50a5a2 Fix for alecf's const bustage at line 1548
git-svn-id: svn://10.0.0.236/trunk@140704 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-04 16:39:31 +00:00
alecf%netscape.com
8d4f1935a6 fix for bug 195298 - pldhash ops tables should be const.. r=dougt, sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@140696 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-04 15:10:37 +00:00
dougt%netscape.com
fed2927b2c Create a new xpcom obsolete library (and component library).
Moved nsFileSpec and related classes into this obsolete library.
  Moved nsRegistry and related libreg functionality into the obsolete library.

Updated many callers using the obsolete nsFile spec to use nsIFile and Necko to do file IO.

Combined the following DLLs (source -> dest)
  uriloader -> docshell
  shistory -> docshell
  jsurl -> jsdom
  gkview -> gklayout

Moved nsAdapterEnumerator out of xpcom/ds and into mailnews, since they're the only consumer

Modifed the xpt_link tool so that you can specify a “only include” cid list that can mask CID’s that you are not interested in.

Added build options:
Prevent the building of xpinstall (--disable-xpinstall)
Prevent the building js component loader (--disable-jsloader)
A build option to only build a single profile (--enable-single-profile)
A build flag to only built the required xpfe components (--disable-xpfe-components).

Removal or hiding of unused functions and classes including nsEscape*, nsDequeIterator, nsRecyclingAllocatorImpl, nsDiscriminatedUnion, nsOpaqueKey, nsCRT::strlen, NS_NewCommandLineService

Bug 194240, r/sr = darin, alec.


git-svn-id: svn://10.0.0.236/trunk@139480 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-15 01:04:32 +00:00
alecf%netscape.com
ab3b9db8cd fix for bug 196210, component manager is malloc-happy:
- use custom non-allocating CID formatter when writing out compreg.dat
- arena allocate category names and keys
- pass around string lengths so we don't keep calling strlen
r=dougt


git-svn-id: svn://10.0.0.236/trunk@139432 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-14 05:07:24 +00:00
dougt%netscape.com
f1e172a2b3 Adding debug support to detect reentrant create instance patterns, r+sr=alecf@netscape.com, b=194568
git-svn-id: svn://10.0.0.236/trunk@139311 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-12 03:58:33 +00:00
dougt%netscape.com
928f8738d9 Converting the file location of the component registry and the xpti manifest file to use the directory service. r=darin, b=191055
git-svn-id: svn://10.0.0.236/trunk@139289 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-11 21:36:59 +00:00
dougt%netscape.com
265d430432 relanding. Add experimental support to the native component loader so that native components can declare what libraries it depends on. (193442)Fixed a bug where we didn't check return from GetLastModification in nsDll::HasChanged. Thank you ajschult@eos.ncsu.edu for pointing out the problem and suggesting a fix. Converted a linear search of compreg entries to be a hash lookup. Also cleaned up the xcdll class. Reviewers= Alec, Darin.
git-svn-id: svn://10.0.0.236/trunk@138914 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-05 03:22:12 +00:00
tor%cs.brown.edu
c4dd047dc5 Backout of 193442/191415. a=brade,dougt
git-svn-id: svn://10.0.0.236/trunk@138808 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-03 21:00:07 +00:00
dougt%netscape.com
3fd622cba7 backing out last change - using linear list does not change the start up time.
git-svn-id: svn://10.0.0.236/trunk@138786 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-03 03:26:02 +00:00
dougt%netscape.com
ffaba2352d Reverting mAutoRegEntries hashtable change. I believe it was responsible for the bulk of the 200ms spike. b=195494.
git-svn-id: svn://10.0.0.236/trunk@138784 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-03 01:19:58 +00:00
dougt%netscape.com
555ccf142c Add experimental support to the native component loader so that native components can declare what libraries it depends on. (193442) Storing the GRE location in a relative way so that we can change GRE versions between launches assuming that they are compatible (191415). Fixed a bug where we didn't check return from GetLastModification in nsDll::HasChanged. Thank you ajschult@eos.ncsu.edu for pointing out the problem and suggesting a fix. Converted a linear search of compreg entries to be a hash lookup. Also cleaned up the xcdll class. Reviewers= Alec, Darin.
git-svn-id: svn://10.0.0.236/trunk@138725 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-28 21:30:35 +00:00
dougt%netscape.com
6684eeb0e6 xpcom is unable to always load .js component file. r=ssu, sr=alecf, a=rjesup, b=190560 build/nsXPComInit.cpp
git-svn-id: svn://10.0.0.236/trunk@137042 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-28 22:07:53 +00:00
dbaron%dbaron.org
a81104697d Fix leak in AutoRegisterComponent. b=189811 r=dougt sr=bzbarsky a=asa
git-svn-id: svn://10.0.0.236/trunk@137011 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-28 01:42:56 +00:00
dbaron%dbaron.org
6ed727cbe8 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@136028 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-08 23:19:20 +00:00
dougt%netscape.com
8ee6126b8f Fixes loss of category information when using regxpcom, r=darin, sr=alec, b=182771
git-svn-id: svn://10.0.0.236/trunk@134732 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-03 23:17:03 +00:00
sicking%bigfoot.com
6f8753e832 Bug 8929: Kill NS_COMFALSE
r=peterv sr=bz


git-svn-id: svn://10.0.0.236/trunk@134398 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-25 11:21:22 +00:00
timeless%mac.com
af49ae32a5 Bug 172131 FMM, Comments which suggest the wrong (De)Allocator, and Style
r=dougt sr=darin


git-svn-id: svn://10.0.0.236/trunk@131402 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-08 06:12:00 +00:00
timeless%mac.com
ab64df1e66 Bug 172416 Consistency for nsComponentManager.cpp
r=dbradley, sr=scc


git-svn-id: svn://10.0.0.236/trunk@131249 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-05 23:59:57 +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
dougt%netscape.com
1ebc6538fb Move FROZEN ContractID into nsXPCOM.h and define r=rpotts, sr=alec, b=166426
git-svn-id: svn://10.0.0.236/trunk@128770 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-03 23:36:13 +00:00
alecf%netscape.com
11549d59fc fix for bug 164577 - make the nsManifestLineReader include lengths from ParseLine() so that consumers can avoid calling strlen() on them
(tiny startup perf fix for reading in xpti.dat)
r=dougt, sr=darin


git-svn-id: svn://10.0.0.236/trunk@128267 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-27 18:32:12 +00:00
alecf%netscape.com
e3b2da9c83 bug 157624 - freeze nsISupportsPrimitives, which includes changing nsISupport[C]String over to using A[C]String and fixing consumers
r=dougt, sr=darin


git-svn-id: svn://10.0.0.236/trunk@128163 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-26 21:20:34 +00:00
bryner%netscape.com
e50d6a3307 Missed one instance of <new.h> for bug 155852. r=cls.
git-svn-id: svn://10.0.0.236/trunk@127598 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-19 05:19:22 +00:00
alecf%netscape.com
573e11653f bug 157624 - prep for freezing nsISupports* primitives by renaming the string classes appropriately
nsISupportsString  -> nsISupportsCString
nsISupportsWString -> nsISupportsString
r=dougt, sr=jag


git-svn-id: svn://10.0.0.236/trunk@126389 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-06 00:53:19 +00:00
dougt%netscape.com
3560250015 compreg.tmp is written out on every startup. r=rjc, sr=alec, a=scc
git-svn-id: svn://10.0.0.236/trunk@125512 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-19 21:12:04 +00:00
dougt%netscape.com
ecdd8ab65f Fixes the following:
154047
This change cleans up the category manager in hopes to freeze it for 1.1 final.  This change removes dead and unsupported methods from the interface as well as removes the C++ code from the interface.  This should land for 1.1b since users of the current category manager will have to update their components.

157597
Make embedding base and examples use XPCOM Glue
This change makes our embedding samples use the XPCOM glue.

157625
nsLocalFile::Remove's file pointer is sometimes null afte...
This fixes a crash when we dereference null.  It is a bandaide fix as the real problems involves retooling the directory enumerator.

157801
This fixes a terrible state which you can get into whereby XPCOM will fail to startup regardless of what you do.  The fix is to cause autoreg to happen if the component registry (compreg.dat) is not found.

r/sr=alecf@netscape.com, rpotts@netscape.com.  a=scc@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@125444 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-18 05:09:10 +00:00
dougt%netscape.com
f38d95f12c Fixing Mismatched new [] / delete []. r=me. bug=153584. patch from pj@ludd.luth.se.
git-svn-id: svn://10.0.0.236/trunk@123872 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-22 19:03:11 +00:00
alecf%netscape.com
86b6d45c5d fix for bug 152929 - we were leaking 900+ nsFactoryEntry objects because they were not always allocated in an arena
(fixes a 75k leak on my system)
r=dougt, sr=dveditz


git-svn-id: svn://10.0.0.236/trunk@123718 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 21:22:50 +00:00
seawood%netscape.com
eee428afe5 Use macros to declare static callback functions to make OS/2 happy.
Fixing tinderbox bustage.


git-svn-id: svn://10.0.0.236/trunk@123385 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-15 05:56:20 +00:00