Граф коммитов

463 Коммитов

Автор SHA1 Сообщение Дата
dbaron%fas.harvard.edu 2512f5ddcc Count some classes for the leak stats. r=warren@netscape.com 2000-05-15 13:10:18 +00:00
gordon%netscape.com ff3224696b Let go of monitor a bit earlier in ReleaseService() so that services which are shuttingdown may aquire their own monitors without potential deadlocks. Also changed allocation/deallocation of ServiceManager's monitor to use nsAutoMonitor methods, as per brendan's suggestion. 2000-05-12 23:39:34 +00:00
rayw%netscape.com 9f3eaba0ea 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
dougt%netscape.com 3add1c8cc5 Changes from snizinsk@us.ibm.com
visualage fixes to xpcom for OS/2.
2000-05-12 01:09:58 +00:00
dp%netscape.com 55f4439e33 - 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
dp%netscape.com 768aea0f5b Passing registry location correctly to nsIModule::UnregisterSelf() 2000-05-05 06:34:39 +00:00
dp%netscape.com 250b391e47 Heavy documentation. 2000-05-05 06:33:05 +00:00
dp%netscape.com a5ee84e2ea Adding progid for component manager. 2000-05-05 06:01:41 +00:00
rayw%netscape.com 5e756ca988 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 11949af38c # 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 e30303ea95 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
mccabe%netscape.com b46e6e7a8c change several IDL parameters to be unsigned, to work better with length_is, size_is. Preperatory to requiring unsigned in xpidl, fixing 13413 2000-04-28 10:51:52 +00:00
waterson%netscape.com 1d9fda50da Get rid of operator==(nsCOMPtr, int) usage because it fries gcc-2.7.2.3's mind with new string stuff. r=scc 2000-04-27 04:44:56 +00:00
pavlov%netscape.com 03d4675682 string api changes r=scc 2000-04-25 05:40:45 +00:00
jband%netscape.com 0d006c89f8 make the component manager's AutoRegister call the interface info manager's AutoRegisterInterfaces 2000-04-25 05:11:30 +00:00
mjudge%netscape.com 3faeabcb95 fixing vc6.0 compiler bug. cant have static variable called "count" and compare it using "<". dont ask. 2000-04-25 05:09:49 +00:00
shaver%mozilla.org 8e0c600b26 add CurrentItemInPlaceUTF8 to reduce startup alloc by 2.3M(!), r=brendan 2000-04-25 01:11:08 +00:00
jband%netscape.com bca6601e81 add an assert for a whacky case that is not supposed to happen but biting me a while back when some other code was broken. This has been kicking around my tree for a while. 2000-04-18 21:44:38 +00:00
dp%netscape.com 10d2c3b870 Implemented component unregistration. 2000-04-18 05:25:05 +00:00
cls%seawood.org f6ba55aac8 BeOS build fixes. Bug #34553 2000-04-12 06:20:59 +00:00
rickg%netscape.com fd5f2d8ce2 updated includes to access nsCRT 2000-03-31 09:04:29 +00:00
dp%netscape.com 85c97676fe Enabling XPCOM_BREAK_ON_LOAD to break in the debugger for linux &&
i386. r=waterson,pavlov
2000-03-25 08:54:22 +00:00
dp%netscape.com bdc9d9b9ee Preventing empty progid causing registration problems. 2000-03-25 06:57:25 +00:00
sfraser%netscape.com 449d00bd3c Bump up the intial hash table size in a bunch of places to avoid resizing the hash later. r=scc 2000-03-22 02:43:48 +00:00
dp%netscape.com 1d85a84ca7 Enabling PR_LOG for release builds from native component loader.
Tuning log format to help analysis.
2000-03-11 22:44:51 +00:00
pavlov%netscape.com 33ce2d4e90 changes to let us build on MacOS X 2000-03-11 03:08:04 +00:00
warren%netscape.com 7e37f4f478 Bug 21556: Making linux be thread-safe. Making tons of classes implement threadsafe AddRef/Release. a=jar 2000-03-05 21:26:01 +00:00
dp%netscape.com 5605a931c0 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 a46908d9ff back out dp's unsafe optimization that caused crash on first run 2000-03-02 19:57:23 +00:00
dp%netscape.com 609a1fd434 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
sfraser%netscape.com ef42bb4bbe Fixes for bug 28271 -- add methods to nsILocalFileMac to launch applications and document. Also fix bogus include in nsNativeComponentLoader. r=davidm,dougt. a=jar 2000-02-23 23:09:02 +00:00
colin%theblakes.com 4a6f174515 Add a debug break for OpenVMS. All changes are ifdef VMS. a=leaf 2000-02-21 22:56:55 +00:00
dveditz%netscape.com 74d0f231ed 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 dc71859afb registry speed ups (part of 12817) 2000-02-16 07:45:20 +00:00
dveditz%netscape.com efb14f3cb4 fixing mac and unix bustage 2000-02-15 02:29:53 +00:00
dveditz%netscape.com b63a6438b1 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
dveditz%netscape.com e728f20fd7 closing the file used by the registry service is evil 2000-02-13 17:32:19 +00:00
dp%netscape.com 74be603308 Bg 26937, bug 26759 Enforcing close of the registry before open of a
different registry file. r=dveditz
2000-02-08 21:50:54 +00:00
dp%netscape.com 0f41b5e237 Bug 26937 Added ApplicationRegistry. r=dveditz 2000-02-08 21:49:40 +00:00
warren%netscape.com 655c7043b3 Fix for code generation problem in VC6 optimized builds. Discovered with MOZ_PROFILE=1 and MOZ_DEBUG undefined. The variable 'dll' seems to get wiped out by the assignment of 'res' (aliased together). r=scc,dp 2000-02-08 11:45:40 +00:00
jdunn%netscape.com 645be166d1 r= scc@netscape.com
The AIX compiler doesn't like the declaration of variables in an IF statement
so I have broken them out.
2000-02-08 03:34:27 +00:00
scc%netscape.com 7a0ada6e35 Oops, need to call |initialize()|. More comments. Fix over-zealous |AddCategoryEntry()|. r=sspitzer 2000-02-06 08:26:13 +00:00
sspitzer%netscape.com b823d6bd49 fix the cookie / news component registry problem.
the problem was mRegistry was null, so we'd fail when calling persist().
2000-02-06 05:43:38 +00:00
sspitzer%netscape.com 153d69e858 prevent crash, return if mRegistry is null. 2000-02-06 05:25:38 +00:00
scc%netscape.com 93bb4b86b0 Added factory, and factory constructor function to get this thing hooked up. That's it, I think. bug #26011; r={waterson,sspitzer} 2000-02-06 02:01:39 +00:00
sspitzer%netscape.com cc208c6da4 scc rewrote this in C++. r=scc 2000-02-06 01:21:35 +00:00
sspitzer%netscape.com a6c423845b stop building nsCategoryManager.js and start building nsCategoryManager.cpp
on linux and windows
2000-02-06 01:19:28 +00:00
scc%netscape.com ca95de65f1 fixing bustage, omitted result type 2000-02-06 01:16:32 +00:00
sspitzer%netscape.com 0bfdd8876c fix warnings, make it build on linux. 2000-02-06 01:12:47 +00:00
scc%netscape.com 03b768351e Adding the CID, progID, etc., so I can get the C++ version registered as a service. r=waterson 2000-02-06 01:01:08 +00:00
scc%netscape.com fddc4a45ae Adding the CID, progID, etc., so I can get the C++ version registered as a service. r=waterson 2000-02-06 00:57:11 +00:00
sspitzer%netscape.com 8179ba9b5a nsIServiceProvider.h doesn't exist anymore 2000-02-05 09:56:55 +00:00
scc%netscape.com 0d88ff51a5 finished filling in |AddCategoryEntry|. Now all I have to do is get the thing registered and instantiated 2000-02-05 07:58:56 +00:00
scc%netscape.com 260c2e0f85 fixed tabs, added registry loading code, some comments... almost ready to go 2000-02-05 07:42:30 +00:00
scc%netscape.com 6102500741 First Checked In. 2000-02-05 06:19:49 +00:00
sspitzer%netscape.com 8ab1f0b37b export nsCategoryManager.js 2000-02-05 05:22:19 +00:00
jband%netscape.com 978f056f35 fix test bustage due to typo in JS code. This was a known problem that I could have SWORN that shaver checked in a fix for 2000-02-05 04:42:04 +00:00
dougt%netscape.com 4e2429dec7 Fix for bug 25941. r=dp,scc. 2000-02-01 07:54:46 +00:00
dougt%netscape.com 0a17991d5e Renaming IsContainedIn to contains() 2000-01-28 23:54:26 +00:00
dougt%netscape.com 9da9aeb603 Giving these files Purify loving. r=dveditz 2000-01-28 23:37:27 +00:00
dp%netscape.com b543258f3b Removing asm() code. Wont compile on nonx86 linux. 2000-01-28 11:31:39 +00:00
dp%netscape.com 9a004f5c68 Using asm() only for linux. 2000-01-28 11:04:51 +00:00
dp%netscape.com 06ce78e585 Adding BreakAfterLoad() API to header. 2000-01-28 09:49:10 +00:00
dp%netscape.com d1b898167b Debuggin help from components. Implementing BreakAfterLoad() for DEBUG
builds, which will stop in the debugger after loading any of the :
separated dll substrings listed in environment variable
XPCOM_BREAK_ON_LOAD. Stopping in debugger implemented for
unix.
2000-01-28 09:44:05 +00:00
jband%netscape.com 2531a5a373 fix this misnamed method bug for shaver. r=shaver. NOT PART OF BUILD 2000-01-28 08:38:11 +00:00
sdagley%netscape.com fae2e0baef Finish cleanup of #19150 - forgot to remove un-needed include after changing code to load fragment via nsLocalFileMac rather than directly calling NSPR. r=lumpy 2000-01-27 02:24:06 +00:00
dougt%netscape.com fd69a2f423 Landing nsIFile. 2000-01-24 21:28:28 +00:00
scc%netscape.com 72d24207a1 replace |nsVector| with |nsVoidArray| as per bug #11666. r=dp 2000-01-18 23:03:29 +00:00
dp%netscape.com c2dce021e3 Implementing access to servicemanager from component manager via
nsIInterfaceRequestor. r=scc
2000-01-11 22:54:46 +00:00
dp%netscape.com 9a62ae9b19 Providing register and unregister hook per component in the generic
module. r=alecf
2000-01-11 21:18:55 +00:00
dp%netscape.com 7651f79108 Adding comments to explain shutdown further. 2000-01-10 21:26:00 +00:00
jband%netscape.com 8e5c753268 Allow generic module stuff to work with singletons. Needed to fix bug 22922. r=dp 2000-01-07 02:18:13 +00:00
mscott%netscape.com 90d81e1f2b someone removed nsIServiceProvider.h from the build and didn't remove it from mac and unix makefiles!!! Shame on you... Fixing the build breakage on the mac. 2000-01-06 01:36:00 +00:00
mcafee%netscape.com b564edee86 Fixing linux bustage. 2000-01-06 01:16:42 +00:00
edburns%acm.org 507ee16e37 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
warren%netscape.com bd6ee38333 Fixed xpcom shutdown to disallow reconstruction of the global service manager. r=dp 2000-01-06 00:34:38 +00:00
blizzard%redhat.com 8ec176345e 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
sspitzer%netscape.com 1395314fd6 purify related fixes. first, prevent a crash that was prevent me
from running purify in nsGenericFactory.cpp.  Second, add support
for "mozilla -pure".  Only works if you've build mozilla.bin.pure, of course.
1999-12-15 06:23:50 +00:00
shaver%netscape.com 03fc9fe962 fix leaf of registryName (#21068, r=beard, a=leaf) 1999-12-09 00:01:46 +00:00
dp%netscape.com 6e5b1c4195 Adding assertion to check for improper shutdown of servicemanager. r=chofmann@netscape.com 1999-12-08 02:00:30 +00:00
dp%netscape.com 2596491e46 Removing nsComponentManager.h from export 1999-12-08 01:58:30 +00:00
dp%netscape.com 187770cd22 NS_GET_IID(). Thanks to patch from pp@ludasdesign.com r=dp@netscape.com 1999-11-30 23:36:32 +00:00
dp%netscape.com f897390478 NS_RELEASE if there isn't a global service manager 1999-11-29 21:02:51 +00:00
warren%netscape.com 4ab4ee4d4e Eliminated the libs build pass. 1999-11-28 03:05:01 +00:00
sspitzer%netscape.com e83434a276 fix 974 warnings by declaring a virtual destructor 1999-11-27 02:17:23 +00:00
shaver%netscape.com 05a56ccb2b update to track catchguard syntax, r=cls 1999-11-24 03:36:26 +00:00
scc%netscape.com fbff3b08f2 Added |do_GetService| of a specific service manager as opposed to the global one. Fixed the appropriate macro accordingly. Please note: travis will be supporting this change until I'm back online in Michigan. r=dp. 1999-11-23 05:55:33 +00:00
scc%netscape.com 5c2a8a5294 clear out the result in |do_CreateInstance| on error. r=pinkerton 1999-11-22 23:01:35 +00:00
dp%netscape.com 0b9b87c92c Eliminating leak of factory when getting it from hashtable.
Using NS_IMPL_ISUPPORTS1
Removing NS_DEFINE_IID
r=warren@netscape.com
1999-11-20 07:21:53 +00:00
warren%netscape.com 6770f57524 Fixed generic module factory lookup to look in cache. 1999-11-19 02:46:50 +00:00
beard%netscape.com f187f89fdf fix C string leak, bug=18699, r=shaver 1999-11-19 02:14:23 +00:00
fur%netscape.com 4f42d0d409 Fixed a problem with the NS_GENERIC_FACTORY_CONSTRUCTOR_INIT() macro.
If the Init() routine happens to perform a balanced AddRef/Release,
the instance will be prematurely destroyed when Release() is called.
The change is to do the AddRef() before calling the initialization
routine to stabilize the instance's ref-count.

r: dp, putterman
1999-11-16 03:05:36 +00:00
fur%netscape.com aace74501d 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
warren%netscape.com 98a1f3c523 Minor fix. 1999-11-12 09:10:40 +00:00
warren%netscape.com 4471ddf809 Added NS_NewGenericModule. Made NS_IMPL_NSGETFACTORY use it to save space. r=dp,alecf 1999-11-12 09:07:26 +00:00
dp%netscape.com bf6fd7a184 Services used with COMPtrs. NS_WITH_SERVICE definition uses COMPtrs. r=scc 1999-11-11 00:31:45 +00:00
shaver%netscape.com 61511e23f5 - 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 49bd71ade0 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
scc%netscape.com 535e97599f Moved |do_CreateInstance()| from here to nsComponentManagerUtils.h. See bugs #17364, #17448. r={travis, dp} 1999-11-10 00:14:10 +00:00
dp%netscape.com bd53051d38 Enabling observing of XPCOM Shutdown r=jband r=putterman 1999-11-09 23:41:24 +00:00