Commit Graph

258 Commits

Author SHA1 Message Date
waterson%netscape.com
29ae06a0cd Bug 19968. Just 'throw' if we can't create an RDF container on the thing. 1999-11-23 22:59:02 +00:00
waterson%netscape.com
6a66ff51fc Don't need to AddRef the resource before putting into an nsISupportsArray. 1999-11-23 22:36:50 +00:00
waterson%netscape.com
bbcae3b602 Fix leak of kRDF_nextVal; make construction/initialization safe. 1999-11-23 22:30:58 +00:00
waterson%netscape.com
122687beef Balance acquisition of RDF resources by releasing them in the dtor. 1999-11-23 22:30:27 +00:00
waterson%netscape.com
e3edc4a4c6 Tweak for chrome registry: don't hard-fail if stream cannot be opened. Allows creation of new RDF/XML datasources. r=hyatt 1999-11-22 20:53:09 +00:00
waterson%netscape.com
3377b72480 Finish #ifdef-ing MOZ_THREADSAFE_RDF. Appears an unused PRLock will
assert when being destroyed?!?
1999-11-18 09:06:50 +00:00
dmose%mozilla.org
142ac52eaf updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:43:54 +00:00
warren%netscape.com
d3b9c9c3cc Structural changes for MakeAbsolute performance. bug#10736 r=valeski 1999-11-03 05:13:44 +00:00
cls%seawood.org
bee74e223b Removed unused NECKO ifdefs.
a=leaf
1999-11-02 23:34:03 +00:00
brendan%mozilla.org
f81d5969c6 (13163, r=alecf, scc, waterson, others; names available on request)
- Fix most of bug 13163 (see TODO for rest).  This entails adding a version-string argument to nsIScriptContext::EvaluateString and passing it around lots of places in content sinks. 

- Fix leaks and confusion about mSecurityManager and mNameSpaceManager in nsJSEnvironment.cpp.  These still need to move from nsJSContext to nsGlobalWindow or thereabouts, jband and vidur are looking at that. 

- Added comments and expanded tabs in nsJSEnvironment.cpp, esp. to EvaluateString.  Also changed various nsresult vars to be named rv.  Also restored brace/style conformity to nsJSProtocolHandler.cpp. 

- Factored CompileFunction from AddScriptEventListener to pave the way for brutal sharing of compiled JS event handlers via JS_CloneFunctionObject. 

- Lots of nsCOMPtr uses added.  I'm using one for mNameSpaceManager.  Hold mSecurityManager as a service explicitly, on the other hand (awaiting scc's fix to allow comptrs for services), and release in nsJSContext's dtor (fixing a leak).  These two managers should be moved to the window object -- TODO item below. 

- Hold JSRuntimeService along with JSRuntime for live of nsJSEnvironment, fix for shaver. 

- Fix window.setTimeout etc. so the filename and line number of the timeout expr is propagated.  This meant factoring nsJSUtils.cpp code. 

- Fix all content sinks to use the same, and up-to-date JavaScript version parsing (whether for script type or for old language attribute); also fix SplitMimeType clones to strip whitespace. 

- With waterson, fix bug in brutal-sharing version of XUL content sink: script src= should not evaluate the inline content of its tag.
1999-10-31 00:43:30 +00:00
waterson%netscape.com
d1851a9d6b Remove redundant registration of well-formed DTD. r=rickg 1999-10-28 22:15:18 +00:00
warren%netscape.com
26fb3f9eba Took out redundant MOZ_COUNT_CTOR/DTOR calls. 1999-10-18 19:21:53 +00:00
warren%netscape.com
3f9dc8b6a7 Took out redundant MOZ_COUNT_CTOR/DTOR calls. 1999-10-18 19:06:21 +00:00
rjc%netscape.com
ae28cd2568 Fix leak in nsXULSortService (found by Boehm GC). Also, remove CTOR_COUNT stuff. Review: waterson@netscape.com 1999-10-15 06:27:02 +00:00
waterson%netscape.com
694117e18a Fix compiler warning; r=rjc. 1999-10-15 04:26:46 +00:00
waterson%netscape.com
111c4ee608 Bug 16402. Make sure that literals addref (and release) the RDF service. Make sure to deal with edge Unregister[Resource|Literal] conditions; e.g., being called to unregister a literal when none was ever registered. r=rjc 1999-10-15 03:36:04 +00:00
waterson%netscape.com
a8f0856c8d Add PR_LOG() calls to aid with debugging. 1999-10-13 08:00:14 +00:00
rjc%netscape.com
bb45ef1bde Add in CTOR/DTOR stuff for leak detection. Review: hyatt@netscape.com 1999-10-07 01:51:30 +00:00
bienvenu%netscape.com
776202c4f5 fix ref count tracing for composite data source bug 666 n/a r=waterson 1999-10-06 04:45:14 +00:00
peterl%netscape.com
69b8aced3f removed leak of atom 1999-10-02 01:32:38 +00:00
rjc%netscape.com
a8401f2c5c Fix bug # 15222: The composite datasource has a few operations which are somewhat "expensive". Have these behaviors on by default, but expose a method on the composite datasources so that they can be selectively turned off [for Mail/News, for example] if the capability is not needed/used (such as negative assertions). Review: waterson@netscape.com. Additional Mail/News Testing: putterman@netscape.com 1999-10-01 04:07:55 +00:00
slamm%netscape.com
43b2d321cf patch rdf for waterson. Fixed multiple loads of same datasource. 1999-09-29 20:25:41 +00:00
waterson%netscape.com
f8f2fcce60 Bug 14754. Shore up unregistration; verify that datasource matches URI to be unregistered. Be 'quiet' if it doesn't. 1999-09-24 19:54:36 +00:00
waterson%netscape.com
a622e1d0d7 Bug 14755. Guard against multiple simlutaneous 'Refresh()' calls issuing several URL loads. r=rjc, a=chofmann 1999-09-24 19:52:42 +00:00
waterson%netscape.com
b30c0da94e Make ::Init() barf if the element is not a container, rather than sprinkling around in individual methods. 1999-09-22 03:28:32 +00:00
waterson%netscape.com
fe38cb9365 Bug 14285. Add some arg checking as we are prone to being called from JS. 1999-09-19 19:41:45 +00:00
briano%netscape.com
49a9c60d81 General cleanup. 1999-09-15 23:36:43 +00:00
waterson%netscape.com
29708f53a5 Make sure all control paths return a value. 1999-09-10 00:01:27 +00:00
waterson%netscape.com
e42b814c43 Bug 13433. Create a one-element URI prefix cache to avoid excessive calls to ProgIDToCLSID(). Cache the default resource factory. Rename ServiceImpl to RDFServiceImpl. 1999-09-09 22:35:16 +00:00
warren%netscape.com
40ed9d6ad2 Removed NS_BASE_STREAM_EOF in favor of returning a count of 0 from Read to indicate EOF. Renamed GetLength to Available. Fixed a number of places where AppendElement's broken error code wasn't checked. 1999-09-09 22:05:05 +00:00
putterman%netscape.com
e7ab81530d Don't worry about duplicate values. 1999-09-09 06:58:14 +00:00
waterson%netscape.com
7e0472ef71 Bug 13137. Fix broken usage of CBufDescriptor. 1999-09-07 02:46:08 +00:00
waterson%netscape.com
0f3a26fccc Right-shift two for hash function; inline some obvious stuff. 1999-09-07 02:44:43 +00:00
waterson%netscape.com
22f68c9558 Move APIs to create 'anonymous' resources into the RDF service. Fix stuff that was using it. 1999-09-06 19:35:41 +00:00
bruce%cybersight.com
54d5c088f2 Use nsAllocator instead of new[] and nsCRT::free() instead of delete[] for char* data. 1999-09-04 13:42:15 +00:00
dougt%netscape.com
028f11d2bf Changes nsIAtom iterface to return a shared (non-allocated) wstring when
GetUnicode() is called.  (thanks waterson, jband)

Also fixing 12237.  (thanks jband).
1999-09-03 22:21:29 +00:00
bruce%cybersight.com
baee0cf57a Fix some char* deallocation issues. Also remove a couple of static IIDs and includes that aren't needed. 1999-09-03 06:08:50 +00:00
kipp%netscape.com
dc04e68f6a Use nsAutoString instead of nsCAutoString to avoid double string copy 1999-09-03 03:51:56 +00:00
waterson%netscape.com
1e1077c6f8 Use PL_HashTableRawAdd() to avoid hashing twice. 1999-09-02 21:29:06 +00:00
waterson%netscape.com
b9e936e5a8 Rewrite to avoid heap-spill when mangling the nextVal. 1999-09-02 21:28:33 +00:00
waterson%netscape.com
8a45758c29 Bug 12351. Remove the assert; this can happen under normal operating conditions. Do not panic. 1999-09-02 06:54:12 +00:00
waterson%netscape.com
59f822c9a6 Use nsCString instead of nsString for anonymous content nodes. Get rid of use of rdf_Isa(). 1999-09-01 00:50:01 +00:00
waterson%netscape.com
76abd92fbf Bug 3284. Removed static global reference to the RDF service. We no longer leak it (on purpose, anyway). Also, updated anonymous resource APIs to use nsCStrings instead of nsStrings. 1999-09-01 00:49:14 +00:00
gagan%netscape.com
792b6b8143 Another mem leak fixed. 1999-08-27 12:47:12 +00:00
rpotts%netscape.com
0085d83ab0 M9 BRANCH landing... 1999-08-26 22:45:55 +00:00
shaver%netscape.com
6ea7c38b0b initial RDF NS_DECL_* spam 1999-08-24 09:11:48 +00:00
waterson%netscape.com
1d6c956a62 Fix in-memory datasource aggregation. 1999-08-24 04:59:58 +00:00
dougt%netscape.com
32a9a77110 xpild-ing nsIAtom. Now nsIAtom is xpcom compliant. 1999-08-21 07:07:00 +00:00
waterson%netscape.com
65c3c63e2c Bug 11575. Null check after pulling URI out of a resource. a=chofmann 1999-08-12 01:16:13 +00:00
jband%netscape.com
340cc49b7e was forgetting to check a result 1999-08-10 05:35:09 +00:00