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
dbradley%netscape.com
553ea0ca40
Bug 106671 - PLDHashTableEnumeratorImpl::IsDone will never return true, patch makes mCurrent == mCount the done condition. r=dougt, sr=jband
...
git-svn-id: svn://10.0.0.236/trunk@106584 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-29 22:08:42 +00:00
seawood%netscape.com
a904a27013
Add PR_CALLBACK to declaration of PLDHashTableEnumeratorImpl::Enumerator as well.
...
git-svn-id: svn://10.0.0.236/trunk@106036 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-23 08:09:56 +00:00
seawood%netscape.com
b6934d8ae1
Declare PLDHashTableEnumeratorImpl::Enumerator as a callback function.
...
Blind fix for OS/2 bustage
git-svn-id: svn://10.0.0.236/trunk@106031 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-23 06:52:07 +00:00
neeti%netscape.com
b5893430a8
fix for bug 96461 - using PLDHash for ComponentManager,r=shaver@mozilla.org, sr=brendan@mozilla.org
...
git-svn-id: svn://10.0.0.236/trunk@106014 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-23 02:28:12 +00:00
dougt%netscape.com
fa2d0b7e98
99163 - removing nsObserverService.h includes. Also fixing 106090, extra methods on nsObserverService. r=shaver@mozilla.org, sr=jband@netscape.com
...
git-svn-id: svn://10.0.0.236/trunk@105973 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-22 22:01:27 +00:00
dougt%netscape.com
cf60fc042e
nsIObserver and nsIObserverService API freeze. r=rpotts@netscape.com, alecf@netscape.com. bug 99163
...
git-svn-id: svn://10.0.0.236/trunk@105800 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-19 20:52:59 +00:00
dougt%netscape.com
7afa8ce1d2
Allows a QI from nsIServiceManager to nsIServiceManagerObsolete. b=105136, r=beard, sr=darin
...
git-svn-id: svn://10.0.0.236/trunk@105560 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-16 23:39:20 +00:00
dougt%netscape.com
2367cd653a
API Freeze for nsIServiceManager r=shaver@mozilla.org, sr=rpotts@netscape.com bug 99147
...
git-svn-id: svn://10.0.0.236/trunk@105458 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-16 03:35:52 +00:00
dp%netscape.com
5928625a80
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
git-svn-id: svn://10.0.0.236/trunk@103669 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-25 00:38:44 +00:00
dp%netscape.com
29c892e459
letting factories overrride native components. Fixes embedding
...
smoketest blocker bug# 99130 r=adamlock
git-svn-id: svn://10.0.0.236/trunk@102757 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-11 18:10:31 +00:00
dp%netscape.com
4869247c4f
bug# 96457 Fixing ReInit() to account for the new factory entry type
...
r=gagan, sr=jband
git-svn-id: svn://10.0.0.236/trunk@102561 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-08 00:01:03 +00:00
jaggernaut%netscape.com
3cec579db1
Bug 93071: Incorrect test in UnregisterComponent: we want to unregister if the registry name matches. r=bryner, sr=shaver
...
git-svn-id: svn://10.0.0.236/trunk@102510 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 03:48:37 +00:00
mkaply%us.ibm.com
5521f4e839
OS/2 build bustage - thanks gerv
...
git-svn-id: svn://10.0.0.236/trunk@102469 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 22:10:51 +00:00
dougt%netscape.com
6abd1d51a4
Merge ServiceManager and ComponentManager. Bug 96457. r=dp@netscape.com, sr=wat
...
erson@netscape.com
git-svn-id: svn://10.0.0.236/trunk@102449 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 21:13:11 +00:00
waterson%netscape.com
e71914d177
Bug 97828. Be sure to create the static component loader before putting it into mLoaderData array. r=dp, sr=jband/sfraser, a=asa
...
git-svn-id: svn://10.0.0.236/trunk@102104 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 21:45:58 +00:00
dp%netscape.com
7eaf054651
bug# 97770 fixing tree orange due to crash on unload
...
git-svn-id: svn://10.0.0.236/trunk@102087 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 17:45:51 +00:00
dp%netscape.com
34845f7872
bug #97658 Fixing build blocker. fixing js components after component registry has been
...
created r=gagan
git-svn-id: svn://10.0.0.236/trunk@102041 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-30 22:59:12 +00:00
dp%netscape.com
dd5adbe141
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
git-svn-id: svn://10.0.0.236/trunk@102024 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-30 14:10:41 +00:00
dp%netscape.com
1c97d50450
bug 94883 nsCreateInstanceByContractID() performance improvement
...
git-svn-id: svn://10.0.0.236/trunk@101561 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 22:42:35 +00:00
jaggernaut%netscape.com
2b3b3b2586
Bug 86734: Remove NS_WITH_SERVICE. r=dbaron, rs=scc, a=asa
...
git-svn-id: svn://10.0.0.236/trunk@99906 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-25 07:54:28 +00:00
av%netscape.com
b6f5088ad1
Backing out existing fix for 87193 -- r=mstolz, sr=shaver, attinasi
...
git-svn-id: svn://10.0.0.236/trunk@99374 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-17 02:24:16 +00:00
mstoltz%netscape.com
1ac430a069
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.
git-svn-id: svn://10.0.0.236/trunk@99104 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-12 04:00:24 +00:00
mstoltz%netscape.com
539425ad49
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.
git-svn-id: svn://10.0.0.236/trunk@99050 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-11 04:48:55 +00:00
jaggernaut%netscape.com
51b17b5bf0
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 :-)
git-svn-id: svn://10.0.0.236/trunk@98363 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-30 11:02:25 +00:00
waterson%netscape.com
18986ada3f
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.
...
git-svn-id: svn://10.0.0.236/trunk@97613 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-20 20:21:49 +00:00
scc%mozilla.org
90f810b66a
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.
...
git-svn-id: svn://10.0.0.236/trunk@97289 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-17 05:23:38 +00:00
cls%seawood.org
4846ed0caf
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
git-svn-id: svn://10.0.0.236/trunk@94048 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-05 10:18:53 +00:00
dveditz%netscape.com
d49359afb0
fix for 15115, registry reading speedup
...
git-svn-id: svn://10.0.0.236/trunk@92559 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-17 14:25:19 +00:00
blakeross%telocity.com
4394b4fef9
Minor QI optimization. r=blake sr=scc
...
git-svn-id: svn://10.0.0.236/trunk@85881 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-31 22:05:28 +00:00
disttsc%bart.nl
0b78766dd3
Remove some redundant code from nsComponentManager.cpp. bug=66865, patch=bratell@lysator.liu.se (Daniel Bratell), r=jag, a=scc.
...
git-svn-id: svn://10.0.0.236/trunk@85880 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-31 22:00:17 +00:00
dbaron%fas.harvard.edu
5f0a7ab9bd
Remove trailing semicolons after all uses of MOZ_DECL_CTOR_COUNTER to quiet build warnings on Mac. b=60415 a=brendan@mozilla.org
...
git-svn-id: svn://10.0.0.236/trunk@85654 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-27 23:06:33 +00:00
warren%netscape.com
a8b9664a8c
Bug 47207. Backing out logging/PRINTF changes until we can fix stopwatch.h, introduce double parens, etc.
...
git-svn-id: svn://10.0.0.236/trunk@81967 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-28 22:17:53 +00:00