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
dougt%netscape.com
0fa36f3315
strdup is not defined on the mac...
...
git-svn-id: svn://10.0.0.236/trunk@123356 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 22:25:24 +00:00
dougt%netscape.com
dffd6e4f8a
Fixes 48888 - xpcom flat file backend. r=dp@netscape.com sr=waterson@netscape.com
...
git-svn-id: svn://10.0.0.236/trunk@123350 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 21:33:05 +00:00
chak%netscape.com
017113fab2
Fix for #130877 - Chnages to create app specific component registries
...
r=dougt, sr=shaver, a=drivers
git-svn-id: svn://10.0.0.236/trunk@123064 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 20:38:01 +00:00
dougt%netscape.com
12a170e07e
synchronizing component registration output with xpcom shutdown. b=138667 r=jband sr=shaver
...
git-svn-id: svn://10.0.0.236/trunk@121337 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-11 21:15:06 +00:00
dp%netscape.com
3bf7d05b91
bug 130381 Using arena for registry prepopulation r=dougt sr=alecf a=asa
...
git-svn-id: svn://10.0.0.236/trunk@120580 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-02 21:25:08 +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
dougt%netscape.com
b530f8011e
Fix for shutdown crash [@PR_EnterMonitor] called with a deleted monitor on the MemoryFlusher thread. 135330. r=brendan@mozilla.org, sr=jband@netscape.com
...
git-svn-id: svn://10.0.0.236/trunk@118999 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-15 22:33:03 +00:00
dougt%netscape.com
1c9f84ac1e
Fixes 135966. Fix by cbiesinger@web.de, r=dougt@netscape.com, sr=jband@netscape.com, a=rjesup@wgate.com
...
git-svn-id: svn://10.0.0.236/trunk@118454 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-08 00:18:14 +00:00
cbiesinger%web.de
42706e7c92
bug 132126 r=dougt sr=hewitt a=scc
...
nsFactoryEntry::ReInit leaks memory
git-svn-id: svn://10.0.0.236/trunk@117474 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-26 09:48:44 +00:00
dougt%netscape.com
a288cd7893
130405. Makes the xpcom glue library usable. Updates XPCOM Samples. Adds requires lines to a few implict string/category consumers sr=alecf, sr=brendan@mozilla.org a=asa@mozilla.org
...
git-svn-id: svn://10.0.0.236/trunk@117113 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-21 23:43:21 +00:00
jband%netscape.com
8d3b264218
Replace NS_REINTERPRET_CAST with an NS_STATIC_CAST so that the wrong interface on the enumerator is not returned to callers. Fixes bug 128858. r=rginda sr=shaver a=dbaron (on trunk and 0.9.9 branch)
...
git-svn-id: svn://10.0.0.236/trunk@115803 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-05 08:07:17 +00:00
cathleen%netscape.com
6a0e426e6c
eliminate nsCRT::strlen for char* strings (part 5), bug 124536 r=dp sr=brendan
...
git-svn-id: svn://10.0.0.236/trunk@115070 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-20 06:38:38 +00:00
neeti%netscape.com
911a154626
fix for bug 122438 - ConvertContractIDKeyToString(...) optimization, r=dougt,sr=alecf
...
git-svn-id: svn://10.0.0.236/trunk@114424 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-13 20:34:14 +00:00
seawood%netscape.com
18da129413
Use .get() when assigning nsXPIDLCString to const char*. Fixing OS/2 & AIX bustage.
...
git-svn-id: svn://10.0.0.236/trunk@113189 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 03:51:47 +00:00
dougt%netscape.com
011f9b10e5
1. Converts callers of nsIComponentManagerObsolete to use
...
nsIComponentRegistrar.
2. Converts callers of nsComponentManager::AutoRegister to use
nsIComponentRegistrar's autoRegistrar method.
3. Add nsIComponentRegistrar implmentation to nsComponentManagerImpl.
4. Rearrange nsComponentManager.cpp so that related methods are in the same
place.
5. Added a C-style function NS_GetComponentRegistrar so that getting the
registrar is easier in some places.
6. Added a nsISimpleEnumerator interface on PLDHashTableEnumeratorImpl. in
this way, the same base class can support both old style and new style
enumerations.
7. Fixed a nasty bug where unregistring factories will leave the contract id
hash with a dangling pointer. Now, when unregister is called we search the
contract id hash for entries which have the given doomned cid and remove them.
Bug 115853. r=dp@netscape.com , sr=rpotts@netscape.com
git-svn-id: svn://10.0.0.236/trunk@113143 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 21:22:13 +00:00
dougt%netscape.com
f923afa8bf
Removing monitor from FreeService() call. See bug 117218 for details, but basically we can run into a deadlock at shutdown. This patch assumes that (a) gXPCOMShuttingDown is set only by the UI thread during xpcom shutdown and (b) that all public API's check this flag before calling into the hashtable. r=dbaron@fas.harvard.edu, sr=brendan@mozilla.org
...
git-svn-id: svn://10.0.0.236/trunk@112035 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-12 23:35:57 +00:00
cathleen%netscape.com
ea31156ed0
converted 271 references to nsCRT::memcpy to memcpy, bug 118135 r=dp
...
git-svn-id: svn://10.0.0.236/trunk@112013 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-12 03:18:55 +00:00
jaggernaut%netscape.com
4f867accb0
Duh. Made a thinko on commenting out the ifdef.
...
git-svn-id: svn://10.0.0.236/trunk@111797 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-10 06:55:18 +00:00
jaggernaut%netscape.com
9edc6ab7cd
Bug 115854: Clean up shutdown warnings in service manager, add IID, CID and ContractID info. r=dougt, sr=alecf
...
git-svn-id: svn://10.0.0.236/trunk@111778 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-10 02:10:37 +00:00
dougt%netscape.com
c01e94cad7
nsIComponentManager API Changes (bug 98553)
...
a) create a new nsIComponentManager with only four functions on it:
CreateInstance CreateInstanceByContractID GetClassInfo GetClassInfoByContractID.
b) rename the old nsIComponentManager to nsIComponentManagerObsolete.
c) fixes callers which use to access the nsIComponentManager for component
registration functionality. These callers will temporary use the
nsIComponentManagerObsolete interface.
d) Create a new API NS_GetComponentManager() which mirrors the
NS_GetServiceManager()
e) Perserves the old NS_GetGlobalComponentManager(). Note the cast usage.
r/sr = rpotts@netscape.com alecf@netscape.com brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@110748 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-19 00:12:41 +00:00
kmcclusk%netscape.com
575a192c88
Backing out the fix for Bad use of nsIFile in component manager to fix spell checker. bug 106949 r=jband a=brendan
...
git-svn-id: svn://10.0.0.236/trunk@110446 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-14 01:27:16 +00:00
pete%alphanumerica.com
ec5da21679
b=106949, r=ccarlen, sr=jband
...
Bad use of nsIFile in component manager
--pete
git-svn-id: svn://10.0.0.236/trunk@110210 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-11 03:25:32 +00:00
dveditz%netscape.com
6d4c956f3f
Free bloated component registry buffer after XPCOM init (bug 76329)
...
r=dougt, sr=shaver
git-svn-id: svn://10.0.0.236/trunk@109344 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 07:50:03 +00:00
timeless%mac.com
7b921259da
Bugzilla Bug 110080 change !NS_SUCCEEDED(status) to NS_FAILED(status)
...
s/!NS_SUCCEEDED/NS_FAILED/g;s/!NS_FAILED/NS_SUCCEEDED/g;
r=dougt sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@108471 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-19 06:45:00 +00:00
dougt%netscape.com
8b005407f0
fixing bug 108573. Calling AutoRegisterComponents when any registered loaders do not exists will crash. r=dp,sr=rpotts
...
git-svn-id: svn://10.0.0.236/trunk@108453 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-18 20:19:44 +00:00
neeti%netscape.com
4dc47433dd
bug 106466 - Removed nsServiceEntry from ComponentManager, r=dougt, sr=brendan
...
git-svn-id: svn://10.0.0.236/trunk@108297 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 13:53:04 +00:00
dp%netscape.com
5a69dc4d07
bug 108071 Eliminate 4000 calls to malloc by using copy getters of
...
registry. r=dveditz, sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@108250 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 02:38:23 +00:00
rginda%netscape.com
a1b245255f
Bug 104168, "xpcom-autoregistration notification never fires"
...
r=dougt, sr=brendan
notify category observers when xpcom registration occurs
git-svn-id: svn://10.0.0.236/trunk@106858 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 23:17:30 +00:00
dougt%netscape.com
8e551369e9
ugh. I did not mean to commit these changes. Backing out
...
git-svn-id: svn://10.0.0.236/trunk@106720 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 22:19:32 +00:00
dougt%netscape.com
3e064cf384
Moving nsISimpleEnumeratory interface into a seperate idl file. bug 99136. r=alecf@netscape.com, sr=rpotts@netscape.com
...
git-svn-id: svn://10.0.0.236/trunk@106715 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 22:03:05 +00:00