bsmedberg%covad.net
5346dbdacf
Followup on bug 223084, fix bustage of static builds. Pass a null nsIFile* to the static component loader during autoregistration.
2003-11-01 14:46:08 +00:00
bryner%brianryner.com
06c7c1b2b4
Fix build on gcc 3.4 by removing extra semicolons (bug 218551). r/sr=dbaron, a=brendan.
2003-09-08 00:31:50 +00:00
brendan%mozilla.org
b7cdb7debb
Add shared DHashTableOps for [const] char *key use-cases, clean up dhash API abusages (214839, r=dougt, sr=dbaron).
2003-08-05 20:09:21 +00:00
timeless%mozdev.org
b719e8300f
Bug 213549 regxpcom thinks SelfRegisterDll FAILED = successful registration.
...
r=dougt
2003-08-03 09:59:05 +00:00
timeless%mozdev.org
a72dfd67dd
Bug 209681 improve XPCOM_CHECK_PENDING_CIDS: prevent some crashes, enable component manager to block components by contract
...
r=dougt
2003-06-18 23:03:08 +00:00
bsmedberg%covad.net
a82cd52521
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.
2003-06-18 11:26:27 +00:00
bryner%netscape.com
0e8aa09510
Fix a debug-only crash when requesting a non-existant contractid. Bug 209680, r=dougt, sr=alecf.
2003-06-17 21:12:11 +00:00
timeless%mozdev.org
f6516c3e12
Bug 204146 Undefined symbols during autoregistration should go to stdout
...
Change output for NSPR_LOG_MODULES=nsComponentManager:1 .. 4 to be useful
r=dougt
2003-06-17 17:50:00 +00:00
dougt%meer.net
3c693caabd
Stacks nsFactoryEntry's so that we can support overloading factories a bit better. r=darin, a=blizzard, b=204870
2003-05-13 22:50:03 +00:00
dougt%meer.net
be2a8f6235
Backing out dependent library loading on windows. Fixes 204676.
2003-05-07 18:39:47 +00:00
dougt%netscape.com
899eaaa107
bug 201711. We were not uninstalling the component. r=darin
2003-04-18 00:46:34 +00:00
dougt%netscape.com
9a96f1f937
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
2003-04-14 20:50:14 +00:00
dbradley%netscape.com
41c00fb6af
Fix for alecf's const bustage at line 1548
2003-04-04 16:39:31 +00:00
alecf%netscape.com
6c75920da1
fix for bug 195298 - pldhash ops tables should be const.. r=dougt, sr=sfraser
2003-04-04 15:10:37 +00:00
dougt%netscape.com
0d2808c511
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.
2003-03-15 01:04:32 +00:00
alecf%netscape.com
8e11ceab33
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
2003-03-14 05:07:24 +00:00
dougt%netscape.com
2ccd3b4f03
Adding debug support to detect reentrant create instance patterns, r+sr=alecf@netscape.com, b=194568
2003-03-12 03:58:33 +00:00
dougt%netscape.com
a4c7c7573f
Converting the file location of the component registry and the xpti manifest file to use the directory service. r=darin, b=191055
2003-03-11 21:36:59 +00:00
dougt%netscape.com
939bb1e75c
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.
2003-03-05 03:22:12 +00:00
tor%cs.brown.edu
db50a85d91
Backout of 193442/191415. a=brade,dougt
2003-03-03 21:00:07 +00:00
dougt%netscape.com
41a7079693
backing out last change - using linear list does not change the start up time.
2003-03-03 03:26:02 +00:00
dougt%netscape.com
2fbb3eb669
Reverting mAutoRegEntries hashtable change. I believe it was responsible for the bulk of the 200ms spike. b=195494.
2003-03-03 01:19:58 +00:00
dougt%netscape.com
dccf8bcbee
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.
2003-02-28 21:30:35 +00:00
dougt%netscape.com
1953de132a
xpcom is unable to always load .js component file. r=ssu, sr=alecf, a=rjesup, b=190560 build/nsXPComInit.cpp
2003-01-28 22:07:53 +00:00
dbaron%dbaron.org
8de25b9b7f
Fix leak in AutoRegisterComponent. b=189811 r=dougt sr=bzbarsky a=asa
2003-01-28 01:42:56 +00:00
dbaron%dbaron.org
b9083989bb
Bug 178643: Remove uses of NS_INIT_ISUPPORTS, since it is no longer needed. r=timeless sr=jag
2003-01-08 23:19:20 +00:00
dougt%netscape.com
9b6c970217
Fixes loss of category information when using regxpcom, r=darin, sr=alec, b=182771
2002-12-03 23:17:03 +00:00
sicking%bigfoot.com
8d87d5e285
Bug 8929: Kill NS_COMFALSE
...
r=peterv sr=bz
2002-11-25 11:21:22 +00:00
timeless%mac.com
09fcb732df
Bug 172131 FMM, Comments which suggest the wrong (De)Allocator, and Style
...
r=dougt sr=darin
2002-10-08 06:12:00 +00:00
timeless%mac.com
8562139c08
Bug 172416 Consistency for nsComponentManager.cpp
...
r=dbradley, sr=scc
2002-10-05 23:59:57 +00:00
dougt%netscape.com
68faeb5241
166917. Clean up xpcom SDK includes. r=rpotts@netscape.com, sr=alecf@netscape.com, a=rjesup@wgate.com
2002-09-07 17:13:19 +00:00
dougt%netscape.com
f2a00efc93
Move FROZEN ContractID into nsXPCOM.h and define r=rpotts, sr=alec, b=166426
2002-09-03 23:36:13 +00:00
alecf%netscape.com
94704f6773
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
2002-08-27 18:32:12 +00:00
alecf%netscape.com
dc6d6e3736
bug 157624 - freeze nsISupportsPrimitives, which includes changing nsISupport[C]String over to using A[C]String and fixing consumers
...
r=dougt, sr=darin
2002-08-26 21:20:34 +00:00
bryner%netscape.com
fd98e0941c
Missed one instance of <new.h> for bug 155852. r=cls.
2002-08-19 05:19:22 +00:00
alecf%netscape.com
f7ad4265ef
bug 157624 - prep for freezing nsISupports* primitives by renaming the string classes appropriately
...
nsISupportsString -> nsISupportsCString
nsISupportsWString -> nsISupportsString
r=dougt, sr=jag
2002-08-06 00:53:19 +00:00
dougt%netscape.com
0868d2b66c
compreg.tmp is written out on every startup. r=rjc, sr=alec, a=scc
2002-07-19 21:12:04 +00:00
dougt%netscape.com
c2ec17237f
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
2002-07-18 05:09:10 +00:00
dougt%netscape.com
c213112dac
Fixing Mismatched new [] / delete []. r=me. bug=153584. patch from pj@ludd.luth.se.
2002-06-22 19:03:11 +00:00
alecf%netscape.com
1dbe5517cd
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
2002-06-20 21:22:50 +00:00
seawood%netscape.com
466c6dd441
Use macros to declare static callback functions to make OS/2 happy.
...
Fixing tinderbox bustage.
2002-06-15 05:56:20 +00:00
dougt%netscape.com
fc76c6e218
strdup is not defined on the mac...
2002-06-14 22:25:24 +00:00
dougt%netscape.com
f93a81bfcb
Fixes 48888 - xpcom flat file backend. r=dp@netscape.com sr=waterson@netscape.com
2002-06-14 21:33:05 +00:00
chak%netscape.com
c2bcdc4a98
Fix for #130877 - Chnages to create app specific component registries
...
r=dougt, sr=shaver, a=drivers
2002-06-11 20:38:01 +00:00
dougt%netscape.com
a54b6aec9e
synchronizing component registration output with xpcom shutdown. b=138667 r=jband sr=shaver
2002-05-11 21:15:06 +00:00
dp%netscape.com
65a183cd7a
bug 130381 Using arena for registry prepopulation r=dougt sr=alecf a=asa
2002-05-02 21:25:08 +00:00
darin%netscape.com
e554d83626
fixes bug 129279 "nsIFile unicode/utf8/ascii task"
...
r=dougt sr=alecf
2002-04-27 05:33:09 +00:00
dougt%netscape.com
2f4ef19ec5
Fix for shutdown crash [@PR_EnterMonitor] called with a deleted monitor on the MemoryFlusher thread. 135330. r=brendan@mozilla.org, sr=jband@netscape.com
2002-04-15 22:33:03 +00:00
dougt%netscape.com
0cbb9d7481
Fixes 135966. Fix by cbiesinger@web.de, r=dougt@netscape.com, sr=jband@netscape.com, a=rjesup@wgate.com
2002-04-08 00:18:14 +00:00
cbiesinger%web.de
215d997798
bug 132126 r=dougt sr=hewitt a=scc
...
nsFactoryEntry::ReInit leaks memory
2002-03-26 09:48:44 +00:00
dougt%netscape.com
40642fc34c
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
2002-03-21 23:43:21 +00:00
jband%netscape.com
ececdc7506
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)
2002-03-05 08:06:25 +00:00
cathleen%netscape.com
8baf662f08
eliminate nsCRT::strlen for char* strings (part 5), bug 124536 r=dp sr=brendan
2002-02-20 06:38:38 +00:00
neeti%netscape.com
d4f5ed4527
fix for bug 122438 - ConvertContractIDKeyToString(...) optimization, r=dougt,sr=alecf
2002-02-13 20:34:14 +00:00
seawood%netscape.com
7cb3b6dd58
Use .get() when assigning nsXPIDLCString to const char*. Fixing OS/2 & AIX bustage.
2002-01-30 03:51:47 +00:00
dougt%netscape.com
c50ca402ad
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
2002-01-29 21:22:13 +00:00
dougt%netscape.com
e99ddaaeee
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
2002-01-12 23:35:57 +00:00
cathleen%netscape.com
92d4fbf218
converted 271 references to nsCRT::memcpy to memcpy, bug 118135 r=dp
2002-01-12 03:18:55 +00:00
jaggernaut%netscape.com
7fe1a20d15
Duh. Made a thinko on commenting out the ifdef.
2002-01-10 06:55:18 +00:00
jaggernaut%netscape.com
d4e8a91886
Bug 115854: Clean up shutdown warnings in service manager, add IID, CID and ContractID info. r=dougt, sr=alecf
2002-01-10 02:10:37 +00:00
dougt%netscape.com
849d297364
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
2001-12-19 00:12:41 +00:00
kmcclusk%netscape.com
d63ec3efab
Backing out the fix for Bad use of nsIFile in component manager to fix spell checker. bug 106949 r=jband a=brendan
2001-12-14 01:27:16 +00:00
pete%alphanumerica.com
7c2ab7cf47
b=106949, r=ccarlen, sr=jband
...
Bad use of nsIFile in component manager
--pete
2001-12-11 03:25:32 +00:00
dveditz%netscape.com
44bcc01fd8
Free bloated component registry buffer after XPCOM init (bug 76329)
...
r=dougt, sr=shaver
2001-11-30 07:50:03 +00:00
timeless%mac.com
060425ec59
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
2001-11-19 06:45:00 +00:00
dougt%netscape.com
cde157b545
fixing bug 108573. Calling AutoRegisterComponents when any registered loaders do not exists will crash. r=dp,sr=rpotts
2001-11-18 20:19:44 +00:00
neeti%netscape.com
0edebe6c41
bug 106466 - Removed nsServiceEntry from ComponentManager, r=dougt, sr=brendan
2001-11-16 13:53:04 +00:00
dp%netscape.com
f9950de713
bug 108071 Eliminate 4000 calls to malloc by using copy getters of
...
registry. r=dveditz, sr=sfraser
2001-11-16 02:38:23 +00:00
rginda%netscape.com
1d47cc3acb
Bug 104168, "xpcom-autoregistration notification never fires"
...
r=dougt, sr=brendan
notify category observers when xpcom registration occurs
2001-10-31 23:17:30 +00:00
dougt%netscape.com
80a163df0e
ugh. I did not mean to commit these changes. Backing out
2001-10-30 22:19:32 +00:00
dougt%netscape.com
e03c679302
Moving nsISimpleEnumeratory interface into a seperate idl file. bug 99136. r=alecf@netscape.com, sr=rpotts@netscape.com
2001-10-30 22:03:05 +00:00
dbradley%netscape.com
1b2af580fb
Bug 106671 - PLDHashTableEnumeratorImpl::IsDone will never return true, patch makes mCurrent == mCount the done condition. r=dougt, sr=jband
2001-10-29 22:08:42 +00:00
seawood%netscape.com
fb2f6b8e34
Add PR_CALLBACK to declaration of PLDHashTableEnumeratorImpl::Enumerator as well.
2001-10-23 08:09:56 +00:00
seawood%netscape.com
3a4a734422
Declare PLDHashTableEnumeratorImpl::Enumerator as a callback function.
...
Blind fix for OS/2 bustage
2001-10-23 06:52:07 +00:00
neeti%netscape.com
04ab881373
fix for bug 96461 - using PLDHash for ComponentManager,r=shaver@mozilla.org, sr=brendan@mozilla.org
2001-10-23 02:28:12 +00:00
dougt%netscape.com
0a62d4e8d5
99163 - removing nsObserverService.h includes. Also fixing 106090, extra methods on nsObserverService. r=shaver@mozilla.org, sr=jband@netscape.com
2001-10-22 22:01:27 +00:00
dougt%netscape.com
d18d7e2b17
nsIObserver and nsIObserverService API freeze. r=rpotts@netscape.com, alecf@netscape.com. bug 99163
2001-10-19 20:52:59 +00:00
dougt%netscape.com
004836dcaf
Allows a QI from nsIServiceManager to nsIServiceManagerObsolete. b=105136, r=beard, sr=darin
2001-10-16 23:39:20 +00:00
dougt%netscape.com
4f3a44d63b
API Freeze for nsIServiceManager r=shaver@mozilla.org, sr=rpotts@netscape.com bug 99147
2001-10-16 03:35:52 +00:00
dp%netscape.com
a682729604
bug 100682 temporary way to get service without creating a new
...
one. This will get fixed the right way along with other api changes
for component and servicemanager r=sfraser/dougt, sr=mscott
2001-09-25 00:38:44 +00:00
dp%netscape.com
a2b2565a87
letting factories overrride native components. Fixes embedding
...
smoketest blocker bug# 99130 r=adamlock
2001-09-11 18:10:31 +00:00
dp%netscape.com
9976710ad3
bug# 96457 Fixing ReInit() to account for the new factory entry type
...
r=gagan, sr=jband
2001-09-08 00:01:03 +00:00
jaggernaut%netscape.com
f7e24bf771
Bug 93071: Incorrect test in UnregisterComponent: we want to unregister if the registry name matches. r=bryner, sr=shaver
2001-09-07 03:48:37 +00:00
mkaply%us.ibm.com
3391fae772
OS/2 build bustage - thanks gerv
2001-09-06 22:10:51 +00:00
dougt%netscape.com
f72e52e830
Merge ServiceManager and ComponentManager. Bug 96457. r=dp@netscape.com, sr=wat
...
erson@netscape.com
2001-09-06 21:13:11 +00:00
waterson%netscape.com
a7c5472ce1
Bug 97828. Be sure to create the static component loader before putting it into mLoaderData array. r=dp, sr=jband/sfraser, a=asa
2001-08-31 21:45:58 +00:00
dp%netscape.com
58b3da2562
bug# 97770 fixing tree orange due to crash on unload
2001-08-31 17:45:51 +00:00
dp%netscape.com
1bd12536d8
bug #97658 Fixing build blocker. fixing js components after component registry has been
...
created r=gagan
2001-08-30 22:59:12 +00:00
dp%netscape.com
80feb5b38b
bug# 96701 Using an array instead of hash table to store loader
...
data. Storing index into loader data array rather than allocating and
copying the type string. r=dougt, sr=jband, a=asa
2001-08-30 14:10:41 +00:00
dp%netscape.com
b27e59a919
bug 94883 nsCreateInstanceByContractID() performance improvement
2001-08-21 22:42:35 +00:00
jaggernaut%netscape.com
e91f8a147e
Bug 86734: Remove NS_WITH_SERVICE. r=dbaron, rs=scc, a=asa
2001-07-25 07:54:28 +00:00
av%netscape.com
3ee52d160b
Backing out existing fix for 87193 -- r=mstolz, sr=shaver, attinasi
2001-07-17 02:24:16 +00:00
mstoltz%netscape.com
548e6eb3dd
Fixing blocker bug 90197 by backing out fix for 87913 that changed the behavior of
...
ComponentManager::AutoRegister and instead using patch v2 from 87913 which
adds a new function rather than changing the existing one. r=mstoltz, dveditz.
2001-07-12 03:58:32 +00:00
mstoltz%netscape.com
755eb0ae93
Checking in bug 87913 for jesse@netscape.com - Allow untrusted scripts
...
to call Components.manager.autoRefresh, but only with default params.
r=mstoltz, sr=jst.
2001-07-11 04:48:55 +00:00
jaggernaut%netscape.com
5a6317b8a5
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 :-)
2001-06-30 11:02:25 +00:00
waterson%netscape.com
b74d6e1c8b
Land STATIC_BUILD_20010612_BRANCH, which supports building mozilla with components statically linked into the executable, as well as 'meta modules' that combine components into uber-DLLs.
2001-06-20 20:21:49 +00:00
scc%mozilla.org
a8fb409c6e
bug #85271 : sr=waterson, r={beard, jag, dbaron}, a=asa. Eliminate features of |nsXPIDLC?String| that keep it out of the string hierarchy (i.e., using assigment to rebind ownership, static |Copy| members, and |getter_Shares|), fixing some leaks in the process.
2001-06-17 05:23:38 +00:00
cls%seawood.org
6f256984a9
Let the use of PR_Log() be controlled by a toplevel build option. All places that set FORCE_PR_LOG to force logging on need to wrap that #define FORCE_PR_LOG in a MOZ_LOGGING ifdef.
...
It's on by default. Set
--disable-logging (unix)
NO_LOGGING=1 (win32)
moz_logging = 0 (mac)
to turn it off globally.
Bug #53226 r=sspitzer,leaf,sfraser
2001-05-05 10:18:53 +00:00
dveditz%netscape.com
0891610be0
fix for 15115, registry reading speedup
2001-04-17 14:25:19 +00:00
blakeross%telocity.com
22ff746771
Minor QI optimization. r=blake sr=scc
2001-01-31 22:05:28 +00:00
disttsc%bart.nl
11db302d6b
Remove some redundant code from nsComponentManager.cpp. bug=66865, patch=bratell@lysator.liu.se (Daniel Bratell), r=jag, a=scc.
2001-01-31 22:00:17 +00:00
dbaron%fas.harvard.edu
6a1cef6f9a
Remove trailing semicolons after all uses of MOZ_DECL_CTOR_COUNTER to quiet build warnings on Mac. b=60415 a=brendan@mozilla.org
2001-01-27 23:06:33 +00:00
warren%netscape.com
cd56c0575b
Bug 47207. Backing out logging/PRINTF changes until we can fix stopwatch.h, introduce double parens, etc.
2000-10-28 22:17:53 +00:00
warren%netscape.com
9a6d92a433
Bug 47207. Changing printf to PRINTF to use new logging facility. r=valeski,sr=waterson
2000-10-27 22:43:51 +00:00
rayw%netscape.com
29095de5ca
File went back by mistake, reverting.
2000-09-14 04:21:39 +00:00
rayw%netscape.com
f00b08f5d0
fix to mal-formed contract id introduced in mega-check-in:x
2000-09-14 04:18:07 +00:00
rayw%netscape.com
0257791053
Bug 37275, Changing value of all progids, and changing everywhere a progid
...
is mentioned to mention a contractid, including in identifiers.
r=warren
2000-09-13 23:57:52 +00:00
jband%netscape.com
ab447aa9ef
needed to fix bug 46707. We need to autoreg the native loader before the interface info manager (iim) so that the iim can use registered components; e.g. libjar. r=shaver@mozilla.org
2000-09-09 01:36:18 +00:00
kandrot%netscape.com
f474ef6516
Missed a change. Fix for bug #46709
...
r=rayw
2000-09-08 02:53:12 +00:00
kandrot%netscape.com
e89ce829b0
Fix for bug #46709
...
Allows registry buffer size to be modified. Increases buffer size during
initial start up, then decreases size.
r=rayw
2000-09-08 01:51:45 +00:00
rayw%netscape.com
8ddce2ac9b
Check return from PlatformInit, and return if it failed.
...
Bug 43347
This was a patch submitted, I have reviewed it (r=rayw)
it provides a softer landing when problems occur in the
initialization. There is no difference in behavior if
the initialization was successful.
2000-08-18 20:51:37 +00:00
racham%netscape.com
cddb62593d
Fixing bug 46320. Reducing the number of global files by moving profile registry to product sub-directory under HOME. r=dougt
2000-08-16 22:40:27 +00:00
conrad%ingress.com
d9e8edcf29
Changed from using strings for nsIDirectoryService props to using macro names defined in nsDirectoryServiceDefs.h
r=valeski
2000-08-11 20:31:57 +00:00
warren%netscape.com
84b5fd67e3
Bug 46711. Removed nsAutoString travisty from nsStringKey. Introduced nsCStringKey. Made them both share the underlying string when possible. r=waterson
2000-08-10 06:19:37 +00:00
dbaron%fas.harvard.edu
1186c942a6
Change MOZ_DECL_CTOR_COUNTERs that I added to use ;, as all others do. r=waterson@netscape.com
2000-06-15 02:20:30 +00:00
mkaply%us.ibm.com
ce4bf6fcaa
# 37239
...
r = valeski, a = brendan
OS/2 bringup - PR_CALLBACK for VisualAge
2000-06-05 19:18:07 +00:00
warren%netscape.com
512c8bf433
Renaming nsIAllocator to nsIMemory (and nsAllocator to nsMemory). API cleanup/freeze. Bug #18433
2000-06-03 09:46:12 +00:00
shaver%mozilla.org
ee8d2a82fe
remove useless nsIModule paste ( #22922 ), add debug() for JS components, use categories for component loaders, XPCONNECT_STANDALONE ( #39875 ), r=dp,waterson a=brendan
2000-05-26 04:56:23 +00:00
sfraser%netscape.com
188c1b9a52
Change the XPCOM autoreg observer to provide more useful strings.
2000-05-17 01:53:50 +00:00
rayw%netscape.com
3b33b094d3
Added an observer to autoregistration, which allows a callback during that
...
part of startup to advance a progress display, per bug 35866.
I did not get the code actually reviewed, but I discussed it, and tested it
for breakage. Other developers must register for the observer before it can
be ascertained whether it performs as advertized.
2000-05-15 19:28:12 +00:00
dbaron%fas.harvard.edu
475f83d8ee
Count some classes for the leak stats. r=warren@netscape.com
2000-05-15 13:10:18 +00:00
rayw%netscape.com
d0199a10bc
Per bug 3690:
...
Added new functions to the registry for reading / writing byte arrays
of binary content and escaping registry keys that contain binary
content. Modified code which reads/writes location of dll or javascript
for components to use new ReadBytesUTF8/WriteBytesUTF8 and which uses
or reads the keys to use EscapeKey and UnescapeKey.
r=dveditz
2000-05-12 01:24:36 +00:00
dp%netscape.com
481db03263
- Using nsILocalFile::AppendRelativePath() to get components that live
...
under subdirs of component directory to work
- Fixing UnregisterComponent() to take a registryLocation as opposed
to a misinterpretted fullpathname
2000-05-05 06:37:39 +00:00
rayw%netscape.com
1520de99ee
Bug #37058
...
Added a simple test to CreateInstance, similar to the existing test in
GetService in the service manager, to prevent instances from being created
during shutdown. We detected no calls to CreateInstance in normal code we
tested during shutdown. If such occur, the fix is NOT to back out the
check, but rather to eliminate the calls to CreateInstance either by
registering a shutdown observer which gets called just before the
shutdown, or creating the instance before shutdown.
r=scc
2000-05-04 23:11:30 +00:00
mkaply%us.ibm.com
152f6f29e4
# 34082
...
r= dougt@netscape.com
OS/2 bring up continues - Adding PR_CALLBACKs for VisualAge Compiler
2000-05-02 22:38:04 +00:00
sgehani%netscape.com
f257c6c709
Fix Autoregistration bustage in the context of apps using XPCOM outside Mozilla (e.g. the installer stubs).
2000-05-02 00:54:11 +00:00
jband%netscape.com
d6fdb2cbf4
make the component manager's AutoRegister call the interface info manager's AutoRegisterInterfaces
2000-04-25 05:11:30 +00:00
shaver%mozilla.org
1e9b5eec44
add CurrentItemInPlaceUTF8 to reduce startup alloc by 2.3M(!), r=brendan
2000-04-25 01:11:08 +00:00
dp%netscape.com
143e2d8993
Implemented component unregistration.
2000-04-18 05:25:05 +00:00
dp%netscape.com
20412a1b14
Preventing empty progid causing registration problems.
2000-03-25 06:57:25 +00:00
dp%netscape.com
2dfef1333a
Enabling PR_LOG for release builds from native component loader.
...
Tuning log format to help analysis.
2000-03-11 22:44:51 +00:00
dp%netscape.com
3990646a0b
bug# 29685 Eliminating unneccessary hits to registry to improve startup. Improving on previous fix. Thanks to jband's help. r=jband,dveditz a=jevering
2000-03-03 01:48:41 +00:00
jband%netscape.com
3f9d673a94
back out dp's unsafe optimization that caused crash on first run
2000-03-02 19:57:23 +00:00
dp%netscape.com
dbc7ea3807
Eliminating 11 hits to the registry for Progid if we already have
...
prepopulated the registry. This improves startup performance.
a=jevering, r=dveditz
2000-03-02 02:13:11 +00:00
dveditz%netscape.com
a63ee75907
Bug 23941 speed up install on Mac, r=cathleen, a=jar;
...
Bug 12817 no Autoreg (in optimized builds) unless xpinstall detects flag indicating install has happened or build number changed, r=dp, a=jar;
Bug 23859 add wstring API to nsIRegistry for profile manager/i18n, r=gayatrib, a=jar;
2000-02-20 03:12:59 +00:00
dveditz%netscape.com
f620060761
registry speed ups (part of 12817)
2000-02-16 07:45:20 +00:00
dveditz%netscape.com
9172024f8e
New wstring nsIRegistry interface, bug 23859;
...
new version registry name for mozilla, bug 10533;
log now created by install wizards too, bug 26309;
downloaded file cleanup moved into manager, bug 24249;
scaffolding for bug 12817 and 12361 (conditional autoreg)
2000-02-15 01:32:12 +00:00
dougt%netscape.com
f9a743cbcb
Fix for bug 25941. r=dp,scc.
2000-02-01 07:54:46 +00:00
dougt%netscape.com
413cc55ebd
Renaming IsContainedIn to contains()
2000-01-28 23:54:26 +00:00
dougt%netscape.com
bae665046a
Giving these files Purify loving. r=dveditz
2000-01-28 23:37:27 +00:00
dougt%netscape.com
0b0346079c
Landing nsIFile.
2000-01-24 21:28:28 +00:00
dp%netscape.com
2df47b0c6d
Implementing access to servicemanager from component manager via
...
nsIInterfaceRequestor. r=scc
2000-01-11 22:54:46 +00:00
edburns%acm.org
13be6d7ebf
I know it's unorthodox to do a top level checkin like this, but I've got so many files
...
in so many different directories, that I think it's the best way.
I've pulled and clobber_all'd my tree and got
r=dp
on this checkin.
Here are the touched files:
M mozilla/embedding/browser/activex/src/control/MozillaBrowser.cpp
M mozilla/embedding/browser/activex/src/control/MozillaBrowser.h
M mozilla/js/src/xpconnect/shell/xpcshell.cpp
M mozilla/netwerk/protocol/res/src/nsResProtocolHandler.cpp
M mozilla/xpcom/build/nsXPComInit.cpp
M mozilla/xpcom/components/nsComponentManager.cpp
M mozilla/xpcom/components/nsIServiceManager.h
M mozilla/xpcom/components/nsServiceManager.cpp
M mozilla/xpcom/io/nsSpecialSystemDirectory.cpp
M mozilla/xpcom/io/nsSpecialSystemDirectory.h
M mozilla/xpcom/tests/TestBuffers.cpp
M mozilla/xpcom/tests/TestPipes.cpp
M mozilla/xpcom/tests/TestShutdown.cpp
M mozilla/xpcom/tests/windows/TestHelloXPLoop.cpp
M mozilla/xpcom/tools/registry/regExport.cpp
M mozilla/xpcom/tools/registry/regxpcom.cpp
M mozilla/xpinstall/stub/xpistub.cpp
M mozilla/webshell/embed/ActiveX/MozillaBrowser.cpp
M mozilla/webshell/embed/ActiveX/MozillaBrowser.h
M mozilla/webshell/tests/viewer/nsMacMain.cpp
M mozilla/webshell/tests/viewer/nsPhMain.cpp
M mozilla/webshell/tests/viewer/nsWinMain.cpp
M mozilla/webshell/tests/viewer/unix/gtk/nsGtkMain.cpp
M mozilla/xpfe/appshell/src/nsFileLocations.cpp
M mozilla/xpfe/bootstrap/nsAppRunner.cpp
The heart of this checkin is a change in the signature and symantics
of NS_InitXPCOM.
The new signature is
extern NS_COM nsresult
NS_InitXPCOM(nsIServiceManager* *result, nsFileSpec* binDirectory);
I filed a bug for this problem:
b=23157
The original manifestation of this bug was in mozilla/netwerk/protocol/res/src/nsResProtocolHandler.cpp It used the current process directory to find resources, which is not correct when the current process is not mozilla.exe.
I have added a new type to nsSpecialSystemDirectory, Moz_BinDirectory, and made nsResProtocolHandler use that value.
2000-01-06 01:05:13 +00:00
blizzard%redhat.com
d6cf22aa5c
Change nsComponentManager::ProgIDToCLSID to nsComponentManager::ProgIDToClassID as per bug #3579 . Checking in for sford. r=scc,r=blizzard
1999-12-30 22:03:58 +00:00
shaver%netscape.com
a4cd86a287
fix leaf of registryName ( #21068 , r=beard, a=leaf)
1999-12-09 00:01:46 +00:00
dp%netscape.com
edcdeb94a5
NS_GET_IID(). Thanks to patch from pp@ludasdesign.com r=dp@netscape.com
1999-11-30 23:36:32 +00:00
scc%netscape.com
059d310964
clear out the result in |do_CreateInstance| on error. r=pinkerton
1999-11-22 23:01:35 +00:00
beard%netscape.com
252e9c7159
fix C string leak, bug=18699, r=shaver
1999-11-19 02:14:23 +00:00
fur%netscape.com
5036fb1561
Return NS_ERROR_FACTORY_NOT_REGISTERED, not NS_ERROR_FAILURE, if a non-existent ProgID is used to instantiate a component. Also, don't ignore CLSID parse errors. R: dp
1999-11-14 15:41:40 +00:00
shaver%netscape.com
c73533acb7
- NS_ERROR_FACTORY_REGISTER_AGAIN for deferring registration of a module until
...
later in the autoreg cycle.
- teach native component loader about deferred components
- add nsIComponentLoader::registerDeferredComponents
- teach component manager about deferred components
- made nsID::Parse take a |const char *| instead of a simple |char *|.
- move release of XPTI singletons until _after_ shutting down the component
manager to prevent re-initialization during JS component shutdown.
- category manager work: really delete from reg, start on enumeration
- use nsXPIDLCString instead of autoStringFree.
- fix nsRegistry to use allocator properly.
- cleaner memory management in nsFactoryEntry.
- capitalization fixed in nsIComponentLoader.idl
- clean up loader creation logic
- remove/disable lots of DEBUG_shaver noise
- added (disabled) warning about NSGetFactory usage
- move .so and .shlb higher up in the ValidDllExtensions list to marginally
speed up registration.
- added nsDll::GetRegistryLocation API
- properly export nsSupportsArray.h
- capitalization fixes in nsIEnumerator.idl
- added deferral to nsSample.js
1999-11-10 00:28:34 +00:00
scc%netscape.com
e46756059d
Added |do_CreateInstance()|, |do_GetService()| both by CID and ProgID. See bugs #17364 , #17448 . r={travis, dp}
1999-11-10 00:14:54 +00:00
dmose%mozilla.org
142ac52eaf
updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org
1999-11-06 03:43:54 +00:00
scc%netscape.com
b2c12428df
changed the mechanism underlying |do_QueryInterface| to decouple |nsCOMPtr| from services, |nsIWeakReference|, etc. This change fixes bug #17364 , and paves the way for making |nsCOMPtr| cooperate with services. r=valeski (additional builds done by dmose and syd)
1999-10-31 00:35:48 +00:00
dp%netscape.com
03fd310400
bug#14656 Circular release problem of component manager. Fixed by
...
adding shutdown() method that gets called before the last
release. Enabled only for dp & shaver until we resolve js coredump.
1999-10-21 21:34:39 +00:00
scc%netscape.com
ef8d06d258
Bug #15292 , r=dp. Made the component manager inherit from |nsSupportsWeakReference|, fixed its |QueryInterface()| appropriately, and added casts in two places that became ambiguous now that the component manager had multiple |nsISupports| in it. Now one can hold a weak reference to the component manager using |nsIWeakReference|.
1999-10-15 21:14:43 +00:00
sfraser%netscape.com
c4ba817155
Fixing use of obsolete types for shaver.
1999-09-29 02:54:18 +00:00
shaver%netscape.com
f28337480b
nsIRegistry scriptability and beginning of category support, r=dp,alecf,dveditz a=leaf,chofmann
1999-09-29 02:35:42 +00:00
dveditz%netscape.com
f9e34fb7e2
Make sure componentMgr calls NR_ShutdownRegistry(), fixing MLKs and registry corruption from unflushed registry buffers.
...
r=dp,a=chofmann
1999-09-26 21:20:21 +00:00
dp%netscape.com
602baa248e
Passing down NS_Shutdown to Unloading of libraries.
1999-09-26 18:04:27 +00:00
dp%netscape.com
009a5392fb
UnloadAll() on non-native loaders.
1999-09-23 00:14:00 +00:00
dp%netscape.com
4bf3f842dd
Enabling xpcom shutdown to call NSCanUnload() on every component.
1999-09-23 00:01:53 +00:00
waterson%netscape.com
06b78978e9
Fix backwards return values on nsIEnumerator::IsDone().
1999-09-21 01:28:18 +00:00
warren%netscape.com
681e31774d
freed mComponentsDir in nsComponentManager
1999-09-20 20:53:57 +00:00
dp%netscape.com
d0ccf9a6eb
Ability for XPCOM to use non-default component registry and component directory
1999-09-16 19:28:57 +00:00
shaver%netscape.com
070f7e8f51
lose some DEBUG_shaver debugging noise
1999-09-15 14:45:29 +00:00
dp%netscape.com
6341cd61aa
Typo fixed. AutoRegisterComponent works again.
1999-09-11 07:23:28 +00:00
dveditz%netscape.com
cdf809b15c
speed startup by avoiding registry look ups that are guaranteed to fail, eliciting worst-case behavior
1999-09-10 05:27:23 +00:00
shaver%netscape.com
a131f8079e
fix memory leaks (eep) and add some debugging noise for myself
1999-09-09 00:48:30 +00:00
shaver%netscape.com
ea2955902d
fix MLK bugs 13285 and 13286 and prevent repeated PrePopulateRegistry calls
1999-09-08 04:22:37 +00:00
shaver%netscape.com
aee3857b3b
teach component manager that there are non-native entries in the registry
1999-09-07 23:18:47 +00:00
shaver%netscape.com
c1950cee17
Moved abs:/rel: handling to ComponentManager.
...
Made nsIModule::GetClassObject and nsIFactory scriptable for JS components.
Added registryLocation param to nsIModule::(Un)RegisterSelf.
1999-09-07 05:06:37 +00:00
shaver%netscape.com
0a5c997f1a
Add nsIComponentManager::registerComponentWithType.
...
Take advantage of IDLized nsIComponentManager to fix up nsIComponentLoader.idl
and make nsIModule scriptable.
1999-09-06 16:43:09 +00:00
shaver%netscape.com
6cecf4c569
convert to CreateInstanceFromProgID
1999-09-05 06:27:42 +00:00
shaver%netscape.com
942e382e8a
properly initialize loaders on creation, and remove code that's now in nsFileSpec
1999-09-03 23:51:31 +00:00
shaver%netscape.com
c8ebe122e6
Added ComponentLoaders to registry and abandoned the progID suffix strategy
...
to reduce evil in universe.
Added nsIComponentManager::RegisterComponentLoader.
Dead code removal.
Make AutoRegister eagerly created all as-yet-unloaded component loaders and
AutoRegister with them as well.
Removed much #ifdef DEBUG_shaver noise.
1999-09-02 07:00:29 +00:00
shaver%netscape.com
2b270b1823
um, didn't mean to check that in
1999-09-02 05:21:10 +00:00
shaver%netscape.com
769fcf3a54
*** empty log message ***
1999-09-02 05:18:09 +00:00
shaver%netscape.com
1db9afa25d
Removed nsIFactory.h (generated now).
...
Factored ComponentManager to support multiple ComponentLoaders.
Added support for relative paths in registry.
General cleanup.
(Broke detection of changed DLLs; dp is fixing -- thanks!)
1999-08-31 21:40:21 +00:00
brendan%mozilla.org
defeffaabd
Massive spankage to capitalize C++ method and attribute name bindings, per
...
Architecture Item 6.3 (news://news.mozilla.org/37BA89CF.3823D6F9%40meer.net).
1999-08-25 05:26:25 +00:00
scc%netscape.com
68340a37ef
got rid of |NS_IMPL_ISUPPORTS|, where possible, in favor of |NS_IMPL_ISUPPORTS0| or ...1 according to the specific use; got rid of |NS_DEFINE_IID| where possible, or where it should have been |NS_DEFINE_CID|; fixed bad implementations of |QueryInterface|, where possible. Built, tested apprunner, reviewed the changes with hyatt (since he was around to look) before checking in
1999-08-23 10:14:16 +00:00
dp%netscape.com
e3d3ff58c6
PlatformFind() changed to return nsDll * instead of FactoryEntry. This
...
is an internal api change.
1999-08-20 23:06:47 +00:00
dp%netscape.com
d42f5605f4
- Adding nsComponentMangager::GetClassObject()
...
- Adding a nsIID parameter to the nsIModule:GetClassObject()
1999-08-19 14:54:12 +00:00
sfraser%netscape.com
dab07c139c
Part of fix for 11790, crash on quit. Don't try to delete static data. r dp, a chofmann
1999-08-13 23:26:47 +00:00
dp%netscape.com
967a7ea8e9
- using ComponentManager instead of service manager in nsIModule
...
- Adding UnregisterComponentSpec()
All the above are required for xpcom review.
1999-08-13 19:30:13 +00:00
dp%netscape.com
3370809f6a
Logging error from canunload
1999-08-10 23:06:33 +00:00
dp%netscape.com
89a8cf7fd3
dummy
1999-08-09 05:40:51 +00:00
jband%netscape.com
c153f122e9
adding enumeration of CLSIDs and ProgIDs using code from Robert Ginda <rginda@ix.netcom.com>
1999-08-09 05:02:25 +00:00
rjc%netscape.com
0b9f7ca8a1
Use GetFileSpec() correctly.
1999-08-07 11:23:54 +00:00
rjc%netscape.com
014212dbee
On Mac, check a file's type (skip the creator, so that 3rd party shared libraries can be noticed) to see if its a shared library.
1999-08-06 23:06:07 +00:00
dp%netscape.com
04fdcf4983
Using nsObjectHashtable::RemoveAndDelete()
1999-08-03 00:03:38 +00:00
dp%netscape.com
7e30331770
VMS changes from Colin Blake <colin@theblakes.com>
1999-07-31 19:39:23 +00:00
dp%netscape.com
6e7f78ba22
- Fixing ComponentManager destruction
...
- CLSIDToProdID() fixed to use the correct subtree in registry
- ProgID() enumneration on startup enabled
- Added internal UnloadLibraries() that can take a NULL service
manager too for nsXPComShutdown()'s sake
- Setting autoreg DirectoryIterator not to resolve symbolic links
1999-07-31 05:55:04 +00:00
sspitzer%netscape.com
b9a86e618c
other half of fix for #10697 . directory iterators work again. r=blizzard. a=leaf.
1999-07-29 04:59:13 +00:00
blizzard%redhat.com
2b0131b77e
work around for startup crash on linux. checkin approved by cyeh and leaf.
1999-07-28 20:25:02 +00:00
warren%netscape.com
334c7b3f3e
Added destructor/cleanup code.
1999-07-28 08:01:03 +00:00
sspitzer%netscape.com
17a4c1fb71
change the nsIDirectoryIterator::Init interface to match the nsDirectoryIterator ctor: two paramenters, a file spec and a bool for resolveSymlinks. pass in PR_TRUE in the pref and component manager code. this fixes the problem where prefs wouldn't get loaded on the mac!
1999-07-27 23:33:54 +00:00
valeski%netscape.com
ad4cdd8e64
mem leak - rev'd by dp
1999-07-25 13:37:16 +00:00
tbogard%aol.net
8fced9fa19
Changed nsCStringKey to nsStringKey. This new key now has the ability to hash on PRUnichar* strings as well as char* strings.
1999-07-22 02:11:04 +00:00
dp%netscape.com
7bb3b9548f
Removed delete of void *. HP doesn't like it.
1999-07-15 00:11:20 +00:00
dp%netscape.com
31be79266a
Fixing memory leaks and mismatched memory. bug #8935 bug# 9006
...
Thanks to david.gardiner@unisa.edu.au for finding the memory leaks
1999-07-09 03:45:19 +00:00