451 Commits

Author SHA1 Message Date
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
dougt%netscape.com
90c9a975be Static Module Patch. r=valeski,warren@netscape.com, sr/a=cls@netscape.com
git-svn-id: svn://10.0.0.236/trunk@82839 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-21 23:40:34 +00:00
cls%seawood.org
8373cf37d8 Oops. Fixing bustage introduced by previous checkin. I forgot that XPIDL_MODULE is sometimes set by MODULE. r=blizzard Bug 59454
git-svn-id: svn://10.0.0.236/trunk@82809 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-21 00:18:46 +00:00
cls%seawood.org
6088dfbf6b Resurrect REQUIRES so that we have some sort of means to track intermodule dependencies. Bug #59454 r=blizzard@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@82785 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-20 07:16:06 +00:00
alecf%netscape.com
13743894ed fix for #45797 - fix NS_IMPL_ISUPPORTS consumers
r=dveditz a=self


git-svn-id: svn://10.0.0.236/trunk@82722 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-17 03:41:41 +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
warren%netscape.com
c6b67eceeb Bug 47207. Changing printf to PRINTF to use new logging facility. r=valeski,sr=waterson
git-svn-id: svn://10.0.0.236/trunk@81885 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-27 22:43:51 +00:00
bnesse%netscape.com
069d3c216d Look for 'NSPL' as well as 'shlb'. Fix for bug #45697. r=av, sr=scc, a=rtm++.
git-svn-id: svn://10.0.0.236/trunk@81300 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-17 18:06:23 +00:00
rayw%netscape.com
31f9bce979 Bug fix for 52648 -- remaining stash of progids which I missed on
the mega-change yesterday.  This will fix a few more issues.

r=warren


git-svn-id: svn://10.0.0.236/trunk@79224 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-14 23:20:49 +00:00
rayw%netscape.com
65d371209f File went back by mistake, reverting.
git-svn-id: svn://10.0.0.236/trunk@79049 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-14 04:21:39 +00:00
rayw%netscape.com
c4734d3001 fix to mal-formed contract id introduced in mega-check-in:x
git-svn-id: svn://10.0.0.236/trunk@79048 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-14 04:18:07 +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
ff441f2b06 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
git-svn-id: svn://10.0.0.236/trunk@78565 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-09 01:36:18 +00:00
kandrot%netscape.com
66994f809e Missed a change. Fix for bug #46709
r=rayw


git-svn-id: svn://10.0.0.236/trunk@78479 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-08 02:53:12 +00:00
kandrot%netscape.com
df46e3cf1c Fix for bug #46709
Allows registry buffer size to be modified.  Increases buffer size during
initial start up, then decreases size.

r=rayw


git-svn-id: svn://10.0.0.236/trunk@78470 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-08 01:51:45 +00:00
scc%mozilla.org
ed5ef3eccd fixing bustage
git-svn-id: svn://10.0.0.236/trunk@78059 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-03 04:04:41 +00:00
scc%mozilla.org
a1ad96435f bug #49895: checking in a slight enhancement on Patrick Beards patch
git-svn-id: svn://10.0.0.236/trunk@77762 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-31 11:42:43 +00:00
dbaron%fas.harvard.edu
b294071a4f Attempt to fix nebiros (Sun WorkShop 5.0) bustage by changing NULL to nsnull. r=scc (Fix suggested by scc.)
git-svn-id: svn://10.0.0.236/trunk@77616 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-30 12:32:13 +00:00
cls%seawood.org
d790692684 Build fixes for BeOS. Thanks to Dan Moore <pergamon@68k.org> for the patch.
git-svn-id: svn://10.0.0.236/trunk@77604 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-30 07:21:31 +00:00
rayw%netscape.com
5268ef92ef A fix to bug 43351.
A softer landing on a failed initialization.  It checks for a null
before deallocating.  This does not affect the success path.

This was a patch, and I reviewed it:  (r=rayw)


git-svn-id: svn://10.0.0.236/trunk@76651 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-18 20:54:04 +00:00
rayw%netscape.com
c583b148a2 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.


git-svn-id: svn://10.0.0.236/trunk@76650 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-18 20:51:37 +00:00
dbaron%fas.harvard.edu
9b56742a81 Attempt to fix Sun/HP/AIX bustage. r=cls
git-svn-id: svn://10.0.0.236/trunk@76515 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 00:15:50 +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
dp%netscape.com
b3a71129e7 Removed unused static.
git-svn-id: svn://10.0.0.236/trunk@76424 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 07:33:23 +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
rayw%netscape.com
b02b43d396 Changed case of nsIFactory.idl methods to start with lower case to be like other
interfaces.  Since the C++ generated code upper-cases the method names, this
affects no C++ code, but only a few javascript methods.

Bug 46771.

r=waterson.

I am in today and tomorrow.


git-svn-id: svn://10.0.0.236/trunk@76014 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 20:12:08 +00:00
warren%netscape.com
e5706a7236 Bug 46711. Removed nsAutoString travisty from nsStringKey. Introduced nsCStringKey. Made them both share the underlying string when possible. r=waterson
git-svn-id: svn://10.0.0.236/trunk@75975 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 06:19:37 +00:00
sgehani%netscape.com
6a00cbcbd9 Turn off sole line output in opt builds by wrapping in DEBUG macro.
r = ssu
a = shaver


git-svn-id: svn://10.0.0.236/trunk@74779 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-25 23:54:12 +00:00
dbaron%fas.harvard.edu
d42b7f141f Fix leak (holding past XPCOM shutdown) of 16 strings. r=waterson
git-svn-id: svn://10.0.0.236/trunk@73335 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 21:54:28 +00:00
waterson%netscape.com
ab0925e6a8 Bug 21650. Add an assertion if the service manager is improperly re-entered. r=dbaron,warren
git-svn-id: svn://10.0.0.236/trunk@73014 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 02:02:48 +00:00
dbaron%fas.harvard.edu
d567a6243d Change MOZ_DECL_CTOR_COUNTERs that I added to use ;, as all others do. r=waterson@netscape.com
git-svn-id: svn://10.0.0.236/trunk@72276 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-15 02:20:30 +00:00
mkaply%us.ibm.com
001f97063d # 37239
r = valeski, a = brendan
OS/2 bringup - PR_CALLBACK for VisualAge


git-svn-id: svn://10.0.0.236/trunk@71534 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-05 19:18:07 +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
shaver%mozilla.org
d247779da6 remove useless nsIModule paste (#22922), add debug() for JS components, use categories for component loaders, XPCONNECT_STANDALONE (#39875), r=dp,waterson a=brendan
git-svn-id: svn://10.0.0.236/trunk@70903 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-26 04:56:23 +00:00
shaver%mozilla.org
9e916f41af add do_GetServiceFromCategory, r/a=brendan
git-svn-id: svn://10.0.0.236/trunk@70557 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-20 18:55:35 +00:00
scc%mozilla.org
9f480a5a2e Bug #39824. Checking in patch from dp. This patch fixes exports on some |nsCOMPtr_helper| classes so we can link appropriately. r=scc.
git-svn-id: svn://10.0.0.236/trunk@70554 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-20 18:31:45 +00:00
sfraser%netscape.com
c12dfc2263 Change the XPCOM autoreg observer to provide more useful strings.
git-svn-id: svn://10.0.0.236/trunk@70235 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-17 01:53:50 +00:00
rayw%netscape.com
126369b22d 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.


git-svn-id: svn://10.0.0.236/trunk@69818 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-15 19:28:12 +00:00
tor%cs.brown.edu
667903813d SUNWspro5.0 bustage fix: add "const" in a couple places to keep
the compiler happy.  Patch from tomi.leppikangas@oulu.fi, r=tor


git-svn-id: svn://10.0.0.236/trunk@69811 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-15 19:00:43 +00:00
dbaron%fas.harvard.edu
d2082dfc31 Count some classes for the leak stats. r=warren@netscape.com
git-svn-id: svn://10.0.0.236/trunk@69783 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-15 13:10:18 +00:00
gordon%netscape.com
4718465f15 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.
git-svn-id: svn://10.0.0.236/trunk@69478 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-12 23:39:34 +00:00
rayw%netscape.com
90d0498159 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


git-svn-id: svn://10.0.0.236/trunk@69307 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-12 01:24:36 +00:00
dougt%netscape.com
600b867627 Changes from snizinsk@us.ibm.com
visualage fixes to xpcom for OS/2.


git-svn-id: svn://10.0.0.236/trunk@69302 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-12 01:09:58 +00:00
dp%netscape.com
5029b61046 - 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


git-svn-id: svn://10.0.0.236/trunk@68367 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-05 06:37:39 +00:00
dp%netscape.com
40f02b827c Passing registry location correctly to nsIModule::UnregisterSelf()
git-svn-id: svn://10.0.0.236/trunk@68366 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-05 06:34:39 +00:00
dp%netscape.com
21d3193b87 Heavy documentation.
git-svn-id: svn://10.0.0.236/trunk@68365 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-05 06:33:05 +00:00
dp%netscape.com
599482c871 Adding progid for component manager.
git-svn-id: svn://10.0.0.236/trunk@68358 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-05 06:01:41 +00:00
rayw%netscape.com
2702bf5ff6 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


git-svn-id: svn://10.0.0.236/trunk@68281 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-04 23:11:30 +00:00
mkaply%us.ibm.com
f32dd26a1b # 34082
r= dougt@netscape.com
OS/2 bring up continues - Adding PR_CALLBACKs for VisualAge Compiler


git-svn-id: svn://10.0.0.236/trunk@67931 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-02 22:38:04 +00:00
sgehani%netscape.com
c23aaa32b2 Fix Autoregistration bustage in the context of apps using XPCOM outside Mozilla (e.g. the installer stubs).
git-svn-id: svn://10.0.0.236/trunk@67807 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-02 00:54:11 +00:00