92 Commits

Author SHA1 Message Date
danm%netscape.com
db135a7ce4 oops. forgot InterfacePointer constructor. see ds/nsSupportsPrimitives.cpp rev 3.16. bug 70534
git-svn-id: svn://10.0.0.236/trunk@91912 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-11 00:10:39 +00:00
shaver%mozilla.org
823ae8572c 67699: all your nsIClassInfo is belong to us
- teach nsGenericFactory about nsIClassInfo, and nsIClassInfo.idl to the
  builds
- add a heaping serving of macro love for classes that want to support it
- convert many modules to use nsGenericModule the new way
- handful of warning and modeline fixes
- nsSample and some XPConnect test classes now have nsIClassInfo support for
  testing


git-svn-id: svn://10.0.0.236/trunk@89354 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 20:43:02 +00:00
sfraser%netscape.com
149c6222b3 Fix bug 69729, nsIObserverList had bogus params. Also make it possible to CreateInstance one. r=jag, sr=alecf.
git-svn-id: svn://10.0.0.236/trunk@88439 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-03 01:24:36 +00:00
dougt%netscape.com
4a2b3ad811 Fixes small memleaks. bug 53931. r=ccarlen@netscape.com, a=waterson@netscape.com
git-svn-id: svn://10.0.0.236/trunk@87318 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-19 03:09:57 +00:00
disttsc%bart.nl
5b3bd491e5 Remove (unused) nsUnicharBuffer from nsXPComInit.cpp. bug=64097, r=dbaron, a=scc.
git-svn-id: svn://10.0.0.236/trunk@85874 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-31 21:25:18 +00:00
dbragg%netscape.com
457bb93d9b Final step in adding nsIProcess to build. a=dougt sr=brendan
git-svn-id: svn://10.0.0.236/trunk@85307 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-22 21:52:01 +00:00
ccarlen%netscape.com
b807b06014 Fix for bug 64501 - allow embedding apps to specify app registry location. Moves appfilelocprovider into xpcom.
r=dougt@netscape.com, sr=brendan@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@85095 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-18 22:51:57 +00:00
dougt%netscape.com
9145344cfc Fixes dropped socket transport during shutdown. The xpcom fix causes the UI event queue to be processed one final time after services shutdown. The socket transport fix forces all remaining active transports to be canceled, then released. r= waterson@netscape.com && darin@netscape.com a=mscott@netscape.com. b=63565
git-svn-id: svn://10.0.0.236/trunk@84645 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-09 05:44:47 +00:00
dbaron%fas.harvard.edu
a948227cb8 Fix the use of dynamic_cast for nsCOMPtr logging so it doesn't appear in a macro. b=61243
Implement (without enabling, yet) assertions to warn about static constructors.  b=62006
Partly fix warnings about MOZ_DECL_CTOR_COUNTER on Mac builds by removing extra semicolon.  b=60145
Start to fix the longstanding leaks of nsTraceRefcnt's own hashtables.
r=waterson@netscape.com  sr=brendan@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@84044 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-23 16:43:32 +00:00
dbaron%fas.harvard.edu
ad5f529a65 Avoid relying on static constructor for nsFSStringConversion in nsLocalFile by making all methods static and avoiding the need for an object and then doing cleanup during XPCOM shutdown. b=43591 r=dougt@netscape.com sr=waterson@netscape.com
git-svn-id: svn://10.0.0.236/trunk@83439 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-09 04:11:05 +00:00
warren%netscape.com
0605461450 Bug 47207 - removing printf / logging changes. Sticking in big toe. r=valeski,sr=waterson
git-svn-id: svn://10.0.0.236/trunk@81858 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-27 06:18:39 +00:00
waterson%netscape.com
976476e949 Bug 53353. Factor nsMemoryImpl create/destroy from flusher thread startup/shutdown. Avoids creation of second memory flusher thread after XPCOM shutdown. r=scc, sr=warren
git-svn-id: svn://10.0.0.236/trunk@80097 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-28 23:17:49 +00:00
waterson%netscape.com
ac48abcd87 Bug 44352. Remove nsIMemoryPressureObserver in favor of nsIObserverService et al., and convert existing nsIMemoryPressureObserver clients. Add memory flusher thread. Add debug UI to force memory flush. r=alecf,sfraser,warren a=warren
git-svn-id: svn://10.0.0.236/trunk@79603 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-20 05:44:19 +00:00
rayw%netscape.com
d9228441a4 Bug 37275, Changing value of all progids, and changing everywhere a progid
is mentioned to mention a contractid, including in identifiers.

r=warren


git-svn-id: svn://10.0.0.236/trunk@79036 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-13 23:57:52 +00:00
jband%netscape.com
1dd017df41 finish fix to bug 49748. Remove redundant (and too early) call to XPTI_FreeInterfaceInfoManager. This was causing first run crashes after the primary fix to this bug. r=shaver@mozilla.org a=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@77251 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-26 03:19:23 +00:00
racham%netscape.com
afbbb2afc0 Fixing bug 46320. Reducing the number of global files by moving profile registry to product sub-directory under HOME. r=dougt
git-svn-id: svn://10.0.0.236/trunk@76450 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 22:40:27 +00:00
conrad%ingress.com
a2cf6be101 Changed from using strings for nsIDirectoryService props to using macro names defined in nsDirectoryServiceDefs.h
r=valeski


git-svn-id: svn://10.0.0.236/trunk@76139 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 20:31:57 +00:00
warren%netscape.com
cce592f105 Getting gc leak-detector to work on linux. Non-nspr changes. code=beard,wade r=warren
git-svn-id: svn://10.0.0.236/trunk@76054 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 00:13:39 +00:00
dbaron%fas.harvard.edu
1d16bbcdf5 Fix crash on shutdown (or patch things up so they don't crash) by releasing memory pressure observers closer to the beginning of XPCOM shutdown. b=47791 r=waterson@netscape.com
git-svn-id: svn://10.0.0.236/trunk@75682 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-06 16:23:04 +00:00
cls%seawood.org
2d670205ca Dump bloat & leak stats if NS_BUILD_REFCNT_LOGGING is set. Needed for bloat stats of optimized builds.
git-svn-id: svn://10.0.0.236/trunk@75572 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-04 06:59:18 +00:00
warren%netscape.com
e2c80a9995 Registering nsIErrorService
git-svn-id: svn://10.0.0.236/trunk@74638 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-22 05:48:04 +00:00
warren%netscape.com
3e244f5dd6 Reordered atom table destruction to be last because memory shutdown still needs it. Moved nsIThread shutdown up just to be safe. r=dbaron
git-svn-id: svn://10.0.0.236/trunk@73998 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 07:31:50 +00:00
dougt%netscape.com
bf15c34b53 I IDL-ifying the nsProxyObjectManager.
I have updated all users that I found
grepping the source tree.

r=valeski@netscape.com
a=waterson@netscape.com
b=43131

Also checking in changes to the window's embed test which is NOT
hooked up to the build system.


git-svn-id: svn://10.0.0.236/trunk@73129 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-24 00:03:10 +00:00
warren%netscape.com
cc5d426fbe Renaming nsIAllocator to nsIMemory (and nsAllocator to nsMemory). API cleanup/freeze. Bug #18433
git-svn-id: svn://10.0.0.236/trunk@71450 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-03 09:46:12 +00:00
dp%netscape.com
135af3793e Standalone xpcom.
git-svn-id: svn://10.0.0.236/trunk@69596 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-13 23:35:55 +00:00
jband%netscape.com
7e8c6ecbdf fix to make the comment not lie
git-svn-id: svn://10.0.0.236/trunk@67080 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 04:52:30 +00:00
mccabe%netscape.com
dd8d16945e Move nsIConsoleService and implementation into xpcom/base, and nsIScriptError and implementation into js/src/xpconnect. (A place for JavaScript-specific XPCOM would be better, but xpconnect will do).
git-svn-id: svn://10.0.0.236/trunk@66233 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 02:34:54 +00:00
scc%netscape.com
28db414fa4 making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@64827 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-01 00:39:02 +00:00
alecf%netscape.com
b9e08acc79 registering the atom service during XPCOM initialization
r=dp


git-svn-id: svn://10.0.0.236/trunk@64744 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-31 09:50:00 +00:00
warren%netscape.com
d100457780 Bug 21556: Making linux be thread-safe. Making tons of classes implement threadsafe AddRef/Release. a=jar
git-svn-id: svn://10.0.0.236/trunk@62243 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-05 21:26:01 +00:00
dougt%netscape.com
2ef6434ac5 fixed regression: 28775 a=leaf, r=ssu.
git-svn-id: svn://10.0.0.236/trunk@61436 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-22 19:46:05 +00:00
dougt%netscape.com
b651aca771 missed this file.
git-svn-id: svn://10.0.0.236/trunk@61390 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-21 21:52:18 +00:00
jband%netscape.com
1fc0209a30 help with bug 8700 (at least in profiling it) by paying the cost of loading the xpt files early on before JSContexts are created
git-svn-id: svn://10.0.0.236/trunk@60820 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-15 06:45:30 +00:00
scc%netscape.com
4da08f6271 #include "nsCategoryManager.h", and hook it up as a service. That's it, I think. bug #26011; r={waterson,sspitzer}
git-svn-id: svn://10.0.0.236/trunk@59923 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-06 02:02:24 +00:00
ssu%netscape.com
33256266ce Change the name of the current process directory to match that of the
directory service.  dougt's change r=ssu a=granrose


git-svn-id: svn://10.0.0.236/trunk@58621 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-25 20:46:02 +00:00
dougt%netscape.com
714da09a59 Landing nsIFile.
git-svn-id: svn://10.0.0.236/trunk@58490 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-24 21:28:28 +00:00
dp%netscape.com
fe73241378 On Shutdown let servicemanager be available until the xpcom shutdown
observers are notified.


git-svn-id: svn://10.0.0.236/trunk@57292 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-10 21:26:56 +00:00
edburns%acm.org
1af32fc433 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.


git-svn-id: svn://10.0.0.236/trunk@56916 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-06 01:05:13 +00:00
warren%netscape.com
4627ac062f Fixed xpcom shutdown to disallow reconstruction of the global service manager. r=dp
git-svn-id: svn://10.0.0.236/trunk@56889 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-06 00:34:38 +00:00
warren%netscape.com
070a48ce2a Made nsIProperties scriptable. Bug #21982
git-svn-id: svn://10.0.0.236/trunk@56832 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-05 09:29:25 +00:00
dp%netscape.com
c1ad24f646 Using ShutdownGlobalServiceManager() for servicemanager shutdown. r=putterman@netscape.com
git-svn-id: svn://10.0.0.236/trunk@55680 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-08 02:03:25 +00:00
beard%netscape.com
07d6c2844b took out calls to NS_InitGarbageCollector() & NS_ShutdownGarbageCollector() which are now supplanted by internal NSPR versions. r=gordon, bug #15906
git-svn-id: svn://10.0.0.236/trunk@55661 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-08 00:13:13 +00:00
valeski%netscape.com
0d8a2640a3 r=mcafee. 20677 assistance. we now have a scriptable input stream for js
git-svn-id: svn://10.0.0.236/trunk@55311 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-04 20:31:38 +00:00
warren%netscape.com
51881fbcea Landing no_neckoutil2_branch. Bug #11159. Removes neckoutil_s.lib from build which helps beos and openvms.
git-svn-id: svn://10.0.0.236/trunk@54722 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-30 04:50:42 +00:00
tbogard%aol.net
a79ed82edc Changed an NS_ASSERTION to be an NS_WARN_IF_FALSE. r=scc
git-svn-id: svn://10.0.0.236/trunk@53418 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-13 07:34:29 +00:00
dp%netscape.com
f388eedbe1 Enabling componentmanager shutdown() before a release to clear out
references to the component manager.


git-svn-id: svn://10.0.0.236/trunk@53221 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-11 19:38:13 +00:00
shaver%netscape.com
6896473ece - 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


git-svn-id: svn://10.0.0.236/trunk@53047 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-10 00:28:34 +00:00
dp%netscape.com
9c89d26c52 Enabling observing of XPCOM Shutdown r=jband r=putterman
git-svn-id: svn://10.0.0.236/trunk@53034 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-09 23:41:24 +00:00
dmose%mozilla.org
0efb7c174c updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@52910 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-06 03:43:54 +00:00
dp%netscape.com
0b96f92229 Removing shutdown listener. Releasing gCaseConv on XPCOM Shutdown r=kipp
git-svn-id: svn://10.0.0.236/trunk@52320 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-30 06:45:45 +00:00