Commit Graph
117 Commits
Author SHA1 Message Date
[email protected] 1792f2a803 fix bug 100187. This is Vidur's patch to expose the interfaceinfomanager as a service accessible via the service manager. r=dbradley sr=jband 2001-11-26 22:31:39 +00:00
[email protected] 87f58f2809 enables new scriptable string stream interface (bug 100172) r=dougt, sr=rpotts 2001-11-22 00:08:14 +00:00
[email protected] b5313a1d5e remove all unicharutil dependencies from xpcom (finally!)
bug 100214, r=jag, sr=scc
2001-11-01 22:40:03 +00:00
[email protected] 5c0a9de2d9 add support for nsIVariant and nsIPropertyBag. bug 44675 and bug 98209. sr=vidur r=dbradley 2001-10-31 23:35:07 +00:00
[email protected] 95d05c9d88 Removing remnants of warren's s/printf/PRINTF/ landing from the tree. b=94480 r=pavlov sr=darin 2001-10-30 06:33:52 +00:00
[email protected] 9255c9edcf Replace static constructor of EmptyEnumeratorImpl with new/delete. b=68092 r=jag sr=waterson 2001-10-30 06:10:21 +00:00
[email protected] 878ec85aa7 Fix for bug 106585 - crash in XPCOMM.DLL during shutdown when mail-news window was open, r=shaver, sr=dougt 2001-10-25 21:03:35 +00:00
[email protected] 97a37fd993 99163 - removing nsObserverService.h includes. Also fixing 106090, extra methods on nsObserverService. [email protected], [email protected] 2001-10-22 22:01:27 +00:00
[email protected] 41aa292546 Reduce the performance cost of (threadsafely) refcounting many atoms by creating a second implementation of nsIAtom (derived from the first) that does not refcount and gets destroyed at XPCOM shutdown. Normal atoms are converted to permanent ones without loss of pointer identity when a permanent atom is requested and a normal one already exists. b=92141 r=waterson sr=brendan 2001-10-20 23:19:07 +00:00
[email protected] 19dc5b259f nsIObserver and nsIObserverService API freeze. [email protected], [email protected]. bug 99163 2001-10-19 20:52:59 +00:00
[email protected] 0c3d8a495f Allows a QI from nsIServiceManager to nsIServiceManagerObsolete. b=105136, r=beard, sr=darin 2001-10-16 23:39:20 +00:00
[email protected] 1aefc30b98 Fixing bustage caused yesterday. b=105102, r=neeti 2001-10-16 21:00:39 +00:00
[email protected] be1f4990ee fixing bustage caused by last checkin 2001-10-16 04:08:42 +00:00
[email protected] 71f4514b1a API Freeze for nsIServiceManager [email protected], [email protected] bug 99147 2001-10-16 03:35:52 +00:00
[email protected] 58d409fba9 Relicensing Round 1, Take 2. Most C-like NPL files -> NPL/GPL/LGPL. Bug 98089. 2001-09-28 20:14:13 +00:00
[email protected] 9ebe922598 fixes 98735. r=adamlock, sr=rpotts. Basic problem is that the first argument of NS_InitXPCOM2 was not returning an nsIServiceManager 2001-09-10 04:28:37 +00:00
[email protected] 1bdc7c1921 Merge ServiceManager and ComponentManager. Bug 96457. [email protected], sr=wat
[email protected]
2001-09-06 21:13:11 +00:00
[email protected] f18ad4f1c4 Bit checkin for bug 68045, r/sr=waterson&shaver, second attempt. It all works
for me on optimized and debug gcc2.96, rh7.1.

- Better failure codes from nsXULPrototypeScript::Deserialize.

- Call nsXULDocument::AbortFastLoads after nsXULPrototypeScript::Serialize
  failure, instead of just nulling the FastLoad service's output stream.

- Expose nsXULDocument::AbortFastLoads via nsIXULPrototypeCache, for use from
  nsChromeProtocolHandler.cpp.  AbortFastLoads flushes the XUL cache now, for
  good measure.

- The needless "Current" adjective in nsIFastLoadService attribute and method
  names is no more.

- Add a do_GetFastLoadService() helper, to use CID instead of contractid, and
  to let the compiler consolidate the static inline CID.

- Add "nglayout.debug.checksum_xul_fastload_file" pref so people can do without
  the checksum verification step when reading a FastLoad file.

- Verify the FastLoad file checksum, by default.  Also, cache it in the FastLoad
  service so we don't recompute it when re-opening the FastLoad file as mailnews
  and other top-levels start up.  Fill the checksum cache in EndFastLoad, when
  the last pseudo-concurrent top-level finishes loading.

  My hope to compute the checksum while writing the FastLoad file ran afoul of
  misordered writes.  The old code to checksum the in-memory nsFastLoadHeader
  also was broken on little endian platforms.  Now all checksumming is done via
  a separate read pass over the complete file, save for the header's checksum
  field, which is summed as if it contained zero.

- Track and check FastLoad file dependencies.  This required groveling with a
  bunch of Necko interfaces in nsChromeProtocolHandler::NewChannel -- read it
  and weep.  Dependency checking, as well as checksum access and computation,
  use better-factored nsIFastLoad{File,Read,Write}Control interfaces.

- nsBufferedStream::Seek wasn't flushing the buffer when seeking backward
  within the buffer, but it must, because mCursor bounds the amount to write
  if the buffer contains the end of file.

- Add an unbufferedStream readonly attribute to nsIStreamBufferAccess, so we
  don't have to screw around with the bufferying layer when checksumming. Also
  implement nsIStreamBufferAccess in nsBufferedOutputStream.

- nsISeekableOutputStream was bogus, based on a bad state I had put the
  nsBufferedOutputStream code in on its way from being completely broken when
  you seek backwards outside of the buffer.  Removing this interface required
  using nsIFastLoadFileIO in nsFastLoadFileWriter, and it also required careful
  ordering of Close calls (the Reader must close after the Writer or Updater,
  so that the Reader's underlying, unbuffered input stream can be read by
  nsFastLoadFileWriter::Close to compute the checksum.

- Miscellaneous tab/indentation, comment typo, bracing, if( => if ( style,
  nsnull vs. 0, useless variable elimination, tortured control flow,
  AutoString instead of String, and gratuitous ; after nsISupportsUtils.h
  macro call cleanups.
2001-08-21 20:51:34 +00:00
[email protected] a0b45dd7b6 Back out brendan's checkin to try and get linux starting up again. 2001-08-17 19:45:11 +00:00
[email protected] de5f506a8c - Better failure codes from nsXULPrototypeScript::Deserialize.
- Call nsXULDocument::AbortFastLoads after nsXULPrototypeScript::Serialize
  failure, instead of just nulling the FastLoad service's output stream.

- Expose nsXULDocument::AbortFastLoads via nsIXULPrototypeCache, for use from
  nsChromeProtocolHandler.cpp.  AbortFastLoads flushes the XUL cache now, for
  good measure.

- The needless "Current" adjective in nsIFastLoadService attribute and method
  names is no more.

- Add a do_GetFastLoadService() helper, to use CID instead of contractid, and
  to let the compiler consolidate the static inline CID.

- Add "nglayout.debug.checksum_xul_fastload_file" pref so people can do without
  the checksum verification step when reading a FastLoad file.

- Verify the FastLoad file checksum, by default.  Also, cache it in the FastLoad
  service so we don't recompute it when re-opening the FastLoad file as mailnews
  and other top-levels start up.  Fill the checksum cache in EndFastLoad, when
  the last pseudo-concurrent top-level finishes loading.

  My hope to compute the checksum while writing the FastLoad file ran afoul of
  misordered writes.  The old code to checksum the in-memory nsFastLoadHeader
  also was broken on little endian platforms.  Now all checksumming is done via
  a separate read pass over the complete file, save for the header's checksum
  field, which is summed as if it contained zero.

- Track and check FastLoad file dependencies.  This required groveling with a
  bunch of Necko interfaces in nsChromeProtocolHandler::NewChannel -- read it
  and weep.  Dependency checking, as well as checksum access and computation,
  use better-factored nsIFastLoad{File,Read,Write}Control interfaces.

- nsBufferedStream::Seek wasn't flushing the buffer when seeking backward
  within the buffer, but it must, because mCursor bounds the amount to write
  if the buffer contains the end of file.

- Add an unbufferedStream readonly attribute to nsIStreamBufferAccess, so we
  don't have to screw around with the bufferying layer when checksumming. Also
  implement nsIStreamBufferAccess in nsBufferedOutputStream.

- nsISeekableOutputStream was bogus, based on a bad state I had put the
  nsBufferedOutputStream code in on its way from being completely broken when
  you seek backwards outside of the buffer.  Removing this interface required
  using nsIFastLoadFileIO in nsFastLoadFileWriter, and it also required careful
  ordering of Close calls (the Writer or Updater must close after the Reader,
  so that the Reader's underlying, unbuffered input stream can be read by
  nsFastLoadFileWriter::Close to compute the checksum.

- Miscellaneous tab/indentation, comment typo, bracing, if( => if ( style,
  nsnull vs. 0, useless variable elimination, tortured control flow,
  AutoString instead of String, and gratuitous ; after nsISupportsUtils.h
  macro call cleanups.
2001-08-17 09:52:55 +00:00
[email protected] aaab752d86 enable MOZ_TIMELINE tool, bug 78793, r=rogc, sr=waterson 2001-08-17 02:03:34 +00:00
[email protected] 1ba814d7b6 FASTLOAD_20010703_BRANCH landing, r=dbaron, sr=shaver. 2001-07-31 19:05:34 +00:00
[email protected] c2bcad0b73 Bug 86734: Remove NS_WITH_SERVICE. r=dbaron, rs=scc, a=asa 2001-07-25 07:54:28 +00:00
[email protected] baba14c5c8 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
[email protected] f1391a5b83 Landing the XPCDOM_20010329_BRANCH branch, changes mostly done by [email protected] and [email protected], also some changes done by [email protected], [email protected] and [email protected]. r= and sr= by [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]. 2001-05-08 17:42:36 +00:00
[email protected] e885713fe9 oops. forgot InterfacePointer constructor. see ds/nsSupportsPrimitives.cpp rev 3.16. bug 70534 2001-04-11 00:10:39 +00:00
[email protected] 569946653a 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
2001-03-12 20:43:02 +00:00
[email protected] 0013442a25 Fix bug 69729, nsIObserverList had bogus params. Also make it possible to CreateInstance one. r=jag, sr=alecf. 2001-03-03 01:24:36 +00:00
[email protected] a75c1ed1a1 Fixes small memleaks. bug 53931. [email protected], [email protected] 2001-02-19 03:09:57 +00:00
[email protected] 219802812d Remove (unused) nsUnicharBuffer from nsXPComInit.cpp. bug=64097, r=dbaron, a=scc. 2001-01-31 21:25:18 +00:00
[email protected] c7c13e0b54 Final step in adding nsIProcess to build. a=dougt sr=brendan 2001-01-22 21:52:01 +00:00
[email protected] f70959a99b Fix for bug 64501 - allow embedding apps to specify app registry location. Moves appfilelocprovider into xpcom. [email protected], [email protected] 2001-01-18 22:51:57 +00:00
[email protected] 8933579ce0 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= [email protected] && [email protected] [email protected]. b=63565 2001-01-09 05:44:47 +00:00
[email protected] ee2e110097 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.
[email protected]  [email protected]
2000-12-23 16:43:32 +00:00
[email protected] a3ab70e1b9 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 [email protected] [email protected] 2000-12-09 04:11:05 +00:00
[email protected] a98f484246 Bug 47207 - removing printf / logging changes. Sticking in big toe. r=valeski,sr=waterson 2000-10-27 06:18:39 +00:00
[email protected] 61489ec7f6 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 2000-09-28 23:17:49 +00:00
[email protected] 77cfafd195 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 2000-09-20 05:44:19 +00:00
[email protected] c6334366cb 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
[email protected] 210f30b358 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. [email protected] [email protected] 2000-08-26 03:19:23 +00:00
[email protected] 5555d0ee78 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
[email protected] 4c7a4d77ec 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
[email protected] f636f1342d Getting gc leak-detector to work on linux. Non-nspr changes. code=beard,wade r=warren 2000-08-11 00:13:39 +00:00
[email protected] 3606c17b3a 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 [email protected] 2000-08-06 16:23:04 +00:00
[email protected] 65141a5dbd Dump bloat & leak stats if NS_BUILD_REFCNT_LOGGING is set. Needed for bloat stats of optimized builds. 2000-08-04 06:59:18 +00:00
[email protected] bd0e917f54 Registering nsIErrorService 2000-07-22 05:48:04 +00:00
[email protected] 0ef83ec068 Reordered atom table destruction to be last because memory shutdown still needs it. Moved nsIThread shutdown up just to be safe. r=dbaron 2000-07-11 07:31:50 +00:00
[email protected] 37da6f1230 I IDL-ifying the nsProxyObjectManager.
I have updated all users that I found
grepping the source tree.

[email protected]
[email protected]
b=43131

Also checking in changes to the window's embed test which is NOT
hooked up to the build system.
2000-06-24 00:03:10 +00:00
[email protected] 6a06dfc026 Renaming nsIAllocator to nsIMemory (and nsAllocator to nsMemory). API cleanup/freeze. Bug #18433 2000-06-03 09:46:12 +00:00
[email protected] be7317a47f Standalone xpcom. 2000-05-13 23:35:55 +00:00