536 Commits

Author SHA1 Message Date
waterson%netscape.com
b004a1a6d0 Bug 19968. Just 'throw' if we can't create an RDF container on the thing.
git-svn-id: svn://10.0.0.236/trunk@54334 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-23 22:59:02 +00:00
waterson%netscape.com
54b96b5a21 Don't need to AddRef the resource before putting into an nsISupportsArray.
git-svn-id: svn://10.0.0.236/trunk@54332 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-23 22:36:50 +00:00
waterson%netscape.com
f0c4a41376 Fix leak of kRDF_nextVal; make construction/initialization safe.
git-svn-id: svn://10.0.0.236/trunk@54330 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-23 22:30:58 +00:00
waterson%netscape.com
8bbe74eab0 Balance acquisition of RDF resources by releasing them in the dtor.
git-svn-id: svn://10.0.0.236/trunk@54329 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-23 22:30:27 +00:00
waterson%netscape.com
e0baec67b1 Add nsIRDFDelegateFactory to Win32 and Unix builds.
git-svn-id: svn://10.0.0.236/trunk@54186 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-22 22:33:11 +00:00
waterson%netscape.com
0b0b1920dc Initial revision. Not yet in the build.
git-svn-id: svn://10.0.0.236/trunk@54184 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-22 22:32:27 +00:00
waterson%netscape.com
07a5141e0d Tweak for chrome registry: don't hard-fail if stream cannot be opened. Allows creation of new RDF/XML datasources. r=hyatt
git-svn-id: svn://10.0.0.236/trunk@54164 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-22 20:53:09 +00:00
rjc%netscape.com
c9c6db0307 Better handling of natural order calculate on RDF sequences. Makes drag&drop work fairly well in natural order.
git-svn-id: svn://10.0.0.236/trunk@54064 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-20 08:46:22 +00:00
waterson%netscape.com
3ecbe6226f Finish #ifdef-ing MOZ_THREADSAFE_RDF. Appears an unused PRLock will
assert when being destroyed?!?


git-svn-id: svn://10.0.0.236/trunk@53869 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-18 09:06:50 +00:00
rjc%netscape.com
52ab5d0a4d XUL templates can now be specified via attribute instead of a child node of the root. Also, sorting info can now be specified on the root node, so now any RDF-generated content can be sorted (not just trees). Review: me
git-svn-id: svn://10.0.0.236/trunk@53466 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-14 11:10:34 +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
waterson%netscape.com
ca247c028b Bug 18058. Remove 'commandDispatcher' from interface; obsolete. r=hyatt, a=chofmann
git-svn-id: svn://10.0.0.236/trunk@52843 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-05 05:30:56 +00:00
hyatt%netscape.com
4353fd2505 Partial fix for 17848. Part 1 of 2. 2nd part will be checked in by hangas. r=hangas, a=brendan
git-svn-id: svn://10.0.0.236/trunk@52766 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-04 01:59:04 +00:00
warren%netscape.com
fa66ea22fe Structural changes for MakeAbsolute performance. bug#10736 r=valeski
git-svn-id: svn://10.0.0.236/trunk@52673 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-03 05:13:44 +00:00
cls%seawood.org
3e1a9ca95a Removed unused NECKO ifdefs.
a=leaf


git-svn-id: svn://10.0.0.236/trunk@52607 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-02 23:34:03 +00:00
brendan%mozilla.org
f980be0221 (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.


git-svn-id: svn://10.0.0.236/trunk@52347 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-31 00:43:30 +00:00
waterson%netscape.com
c13911024a Remove redundant registration of well-formed DTD. r=rickg
git-svn-id: svn://10.0.0.236/trunk@52132 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 22:15:18 +00:00
ramiro%fateware.com
a5d3f6cc70 Removing the badly rotten MOZ_STRIP_NOT_EXPORTED hack. We now have a better
way to accomplish the same thing using linker version scripts.
r=cls@seawood.org


git-svn-id: svn://10.0.0.236/trunk@51521 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 07:11:43 +00:00
warren%netscape.com
91a872ec09 Took out redundant MOZ_COUNT_CTOR/DTOR calls.
git-svn-id: svn://10.0.0.236/trunk@51007 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 19:21:53 +00:00
warren%netscape.com
a270067a3a Took out redundant MOZ_COUNT_CTOR/DTOR calls.
git-svn-id: svn://10.0.0.236/trunk@51002 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 19:06:21 +00:00
rjc%netscape.com
9621ab20bf Fix leak in nsXULSortService (found by Boehm GC). Also, remove CTOR_COUNT stuff. Review: waterson@netscape.com
git-svn-id: svn://10.0.0.236/trunk@50798 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 06:27:02 +00:00
waterson%netscape.com
033d3bbd40 Fix compiler warning; r=rjc.
git-svn-id: svn://10.0.0.236/trunk@50784 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 04:26:46 +00:00
waterson%netscape.com
1464bedb39 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
git-svn-id: svn://10.0.0.236/trunk@50771 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 03:36:04 +00:00
hyatt%netscape.com
3e56d44211 Fixing linux bustage. Typo in makefile.
git-svn-id: svn://10.0.0.236/trunk@50674 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 11:18:03 +00:00
hyatt%netscape.com
9259952dca Landing re-architected command dispatcher. r=hangas(XUL/JS), saari(C++)
git-svn-id: svn://10.0.0.236/trunk@50672 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 10:58:25 +00:00
waterson%netscape.com
d69c3be183 Add PR_LOG() calls to aid with debugging.
git-svn-id: svn://10.0.0.236/trunk@50582 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 08:00:14 +00:00
rjc%netscape.com
1978802be8 Add in CTOR/DTOR stuff for leak detection. Review: hyatt@netscape.com
git-svn-id: svn://10.0.0.236/trunk@50076 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 01:51:30 +00:00
bienvenu%netscape.com
9446096dca fix ref count tracing for composite data source bug 666 n/a r=waterson
git-svn-id: svn://10.0.0.236/trunk@49951 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 04:45:14 +00:00
peterl%netscape.com
3dfcb47c99 removed leak of atom
git-svn-id: svn://10.0.0.236/trunk@49638 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-02 01:32:38 +00:00
rjc%netscape.com
aa8041f54e 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
git-svn-id: svn://10.0.0.236/trunk@49541 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 04:07:55 +00:00
slamm%netscape.com
a373d308b7 patch rdf for waterson. Fixed multiple loads of same datasource.
git-svn-id: svn://10.0.0.236/trunk@49348 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 20:25:41 +00:00
waterson%netscape.com
a82ecc3d56 Bug 14754. Shore up unregistration; verify that datasource matches URI to be unregistered. Be 'quiet' if it doesn't.
git-svn-id: svn://10.0.0.236/trunk@48996 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 19:54:36 +00:00
waterson%netscape.com
9b9498aa71 Bug 14755. Guard against multiple simlutaneous 'Refresh()' calls issuing several URL loads. r=rjc, a=chofmann
git-svn-id: svn://10.0.0.236/trunk@48995 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 19:52:42 +00:00
waterson%netscape.com
24a1b2ab2e Make ::Init() barf if the element is not a container, rather than sprinkling around in individual methods.
git-svn-id: svn://10.0.0.236/trunk@48767 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 03:28:32 +00:00
waterson%netscape.com
8ad49bd1e7 Bug 14285. Add some arg checking as we are prone to being called from JS.
git-svn-id: svn://10.0.0.236/trunk@48261 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 19:41:45 +00:00
briano%netscape.com
11d45261bd General cleanup.
git-svn-id: svn://10.0.0.236/trunk@47677 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 23:36:43 +00:00
hyatt%netscape.com
2f65cd7558 Fix build bustage.
git-svn-id: svn://10.0.0.236/trunk@47507 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 02:36:30 +00:00
briano%netscape.com
8d12c9a801 Cleaned it up and fixed the Unix build breakage.
git-svn-id: svn://10.0.0.236/trunk@47506 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 02:33:11 +00:00
hyatt%netscape.com
ffb49d2988 Updating the nsIController interface.
git-svn-id: svn://10.0.0.236/trunk@47503 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 02:16:41 +00:00
waterson%netscape.com
1efa69d325 Make sure all control paths return a value.
git-svn-id: svn://10.0.0.236/trunk@46659 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-10 00:01:27 +00:00
waterson%netscape.com
b29f25f4d2 Bug 13433. Create a one-element URI prefix cache to avoid excessive calls to ProgIDToCLSID(). Cache the default resource factory. Rename ServiceImpl to RDFServiceImpl.
git-svn-id: svn://10.0.0.236/trunk@46648 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-09 22:35:16 +00:00
warren%netscape.com
de60d2685c 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.
git-svn-id: svn://10.0.0.236/trunk@46637 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-09 22:05:05 +00:00
putterman%netscape.com
11dbe59c48 Don't worry about duplicate values.
git-svn-id: svn://10.0.0.236/trunk@46540 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-09 06:58:14 +00:00
waterson%netscape.com
5eca206f61 Bug 13137. Fix broken usage of CBufDescriptor.
git-svn-id: svn://10.0.0.236/trunk@46148 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-07 02:46:08 +00:00
waterson%netscape.com
0be907f1c1 Right-shift two for hash function; inline some obvious stuff.
git-svn-id: svn://10.0.0.236/trunk@46147 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-07 02:44:43 +00:00
waterson%netscape.com
1f4f0cb835 Move APIs to create 'anonymous' resources into the RDF service. Fix stuff that was using it.
git-svn-id: svn://10.0.0.236/trunk@46120 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-06 19:35:41 +00:00
bruce%cybersight.com
0285df2027 Use nsAllocator instead of new[] and nsCRT::free() instead of delete[] for char* data.
git-svn-id: svn://10.0.0.236/trunk@46005 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-04 13:42:15 +00:00
dougt%netscape.com
baeab23036 Changes nsIAtom iterface to return a shared (non-allocated) wstring when
GetUnicode() is called.  (thanks waterson, jband)

Also fixing 12237.  (thanks jband).


git-svn-id: svn://10.0.0.236/trunk@45945 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-03 22:21:29 +00:00
bruce%cybersight.com
4c0aac9a04 Fix some char* deallocation issues. Also remove a couple of static IIDs and includes that aren't needed.
git-svn-id: svn://10.0.0.236/trunk@45834 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-03 06:08:50 +00:00
kipp%netscape.com
5c964dd3e4 Use nsAutoString instead of nsCAutoString to avoid double string copy
git-svn-id: svn://10.0.0.236/trunk@45821 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-03 03:51:56 +00:00