32 Commits

Author SHA1 Message Date
edburns%acm.org
9fb81d2764 First step on allowing JAVADom to run on NativeEventThread. Have no
public native methods.  Have each formerly public native method now be a
package private method with the same name as before, but the string
"native" prepended, and the first letter of the old name capitalized.
Have a new public method with the same name as the old method with a
body that calls through to the corresponding native method, passing args
correctly.

Next step will be to provide a threading solution from webclient.

M dom/classes/org/mozilla/dom/AttrImpl.java
M dom/classes/org/mozilla/dom/CharacterDataImpl.java
M dom/classes/org/mozilla/dom/DOMAccessor.java
M dom/classes/org/mozilla/dom/DOMImplementationImpl.java
M dom/classes/org/mozilla/dom/DocumentImpl.java
M dom/classes/org/mozilla/dom/DocumentTypeImpl.java
M dom/classes/org/mozilla/dom/ElementImpl.java
M dom/classes/org/mozilla/dom/EntityImpl.java
M dom/classes/org/mozilla/dom/NamedNodeMapImpl.java
M dom/classes/org/mozilla/dom/NodeImpl.java
M dom/classes/org/mozilla/dom/NodeListImpl.java
M dom/classes/org/mozilla/dom/NotationImpl.java
M dom/classes/org/mozilla/dom/ProcessingInstructionImpl.java
M dom/classes/org/mozilla/dom/events/EventImpl.java
M dom/classes/org/mozilla/dom/events/MouseEventImpl.java
M dom/classes/org/mozilla/dom/events/UIEventImpl.java
M dom/jni/org_mozilla_dom_AttrImpl.cpp
M dom/jni/org_mozilla_dom_CharacterDataImpl.cpp
M dom/jni/org_mozilla_dom_DOMAccessor.cpp
M dom/jni/org_mozilla_dom_DOMImplementationImpl.cpp
M dom/jni/org_mozilla_dom_DocumentImpl.cpp
M dom/jni/org_mozilla_dom_ElementImpl.cpp
M dom/jni/org_mozilla_dom_EntityImpl.cpp
M dom/jni/org_mozilla_dom_NamedNodeMapImpl.cpp
M dom/jni/org_mozilla_dom_NodeImpl.cpp
M dom/jni/org_mozilla_dom_NodeListImpl.cpp
M dom/jni/org_mozilla_dom_NotationImpl.cpp
M dom/jni/org_mozilla_dom_ProcessingInstructionImpl.cpp
M dom/jni/org_mozilla_dom_events_EventImpl.cpp
M dom/jni/org_mozilla_dom_events_MouseEventImpl.cpp
M dom/jni/org_mozilla_dom_events_UIEventImpl.cpp


git-svn-id: svn://10.0.0.236/trunk@221779 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-12 16:13:03 +00:00
edburns%acm.org
1e8d7ad35d M dist/mcp-test/src/test/java/cardemo/CarDemoTest.java
- this automated test is now a complete example for how to test an ajax
  web application in an automated fashion.

M dom/classes/org/mozilla/dom/NodeImpl.java
M dom/jni/org_mozilla_dom_NodeImpl.cpp

- implement getTextContent() from DOM level 3.

M webclient/build-tests.xml

- add cardemoTest to unit test list as a place-holder until I can write
  a testcase that doesn't require the public Internet.

A webclient/classes_spec/org/mozilla/mcp/AjaxListener.java

- New class.  Docs forthcoming.

M webclient/classes_spec/org/mozilla/mcp/MCP.java

- new methods to support complete ajax automated testing.

M webclient/src_moz/AjaxListener.cpp
M webclient/src_moz/AjaxListener.h

- add mIsObserving flag.  From our dtor, make sure to remove ourselves
  from the EmbedProgress.

M webclient/src_moz/EmbedProgress.cpp
M webclient/src_moz/EmbedProgress.h

- We need to add ourselves as an observer both from SetCapturePageInfo
  and SetEventRegistration.

M webclient/src_moz/NativeBrowserControl.cpp

- Unit testing found a bug!  We can't call mWindow->ReleaseChildren()
  until after we remove ourself as a listener.


git-svn-id: svn://10.0.0.236/trunk@221594 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-09 04:34:24 +00:00
edburns%acm.org
3fd0db98ed Thanks again to Michael Klepikov for these fixes.
M dom/jni/org_mozilla_dom_NodeImpl.cpp

- code around the absence of LowerCaseEqualsLiteral in nsTAString.h.
  I'm surprised the unit tests worked for me all aloung though.

M webclient/build.xml

- make run.test.browser depend on "main"

M webclient/src_moz/EmbedProgress.cpp

- deal with null URL passed to ::OnStateChange

M webclient/src_moz/HistoryImpl.cpp

- Don't cast to PRBool* when you don't need to.

M webclient/test/manual/src/classes/org/mozilla/webclient/test/TestBrowser.java

- don't swallow the exception from setAppData().


git-svn-id: svn://10.0.0.236/trunk@160299 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-03 17:16:57 +00:00
cbiesinger%web.de
ebfeb346a9 fixing build bustage
git-svn-id: svn://10.0.0.236/trunk@159619 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-21 22:09:39 +00:00
cbiesinger%web.de
9ab54454e8 Bug 113243 Get rid of (Compare|Equals)WithConversion
r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@159612 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-21 20:18:39 +00:00
edburns%acm.org
ca91238f57 Make Webclient compile and run on GNU/Linux with Mozilla 1.0.1.
Continue migration to ant.

Start out some JUnit tests.


git-svn-id: svn://10.0.0.236/trunk@130858 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-01 00:39:31 +00:00
edburns%acm.org
33493ef450 bug: 119680
Changes to make webclient compile and minimally run with
Netscape 6.2.1.


git-svn-id: svn://10.0.0.236/trunk@112073 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 18:04:48 +00:00
edburns%acm.org
49fd6e2f59 ra=ashuk
bug=79427.

This checkin adds the following behavior:

On GetValue, if a checkbox or radio button, it returns "CHECKED" or "UNCHECKED".

On SetValue, any string not equal to the empty string causes the checkbox
to be set.


git-svn-id: svn://10.0.0.236/trunk@96927 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-12 18:30:56 +00:00
ashuk%eng.sun.com
6e175c40bf Bug=81484
author=ashuk
Patch provided by Harshal (keeda@hotpop.com)

This patch introduces explicit (jchar*) static
casts in calls to JNIEnv_::NewString in the
JavaDOM code. This is needed for compliance
with the strict type-checking og gcc 2.96+.

Modified files are:
M jni/org_mozilla_dom_AttrImpl.cpp
M jni/org_mozilla_dom_CharacterDataImpl.cpp
M jni/org_mozilla_dom_DocumentTypeImpl.cpp
M jni/org_mozilla_dom_ElementImpl.cpp
M jni/org_mozilla_dom_EntityImpl.cpp
M jni/org_mozilla_dom_NodeImpl.cpp
M jni/org_mozilla_dom_NotationImpl.cpp
M jni/org_mozilla_dom_ProcessingInstructionImpl.cpp
M jni/org_mozilla_dom_events_EventImpl.cpp
M src/nsJavaDOMImpl.cpp


git-svn-id: svn://10.0.0.236/trunk@95726 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-22 23:22:58 +00:00
edburns%acm.org
e1c0680de4 bug=79427
ra=ashk

this fix modifies {Get,Set}NodeValue to check for whether the node is actually an instance
of a class that responds to {Get,Set}Value(String).  If so, do it.

 * This macro assumes the hard coded set of interfaces below all have a
 * method in common, the name of which is specified by the _funcName
 * param.  Furthermore, it assumes the _funcName method takes a single
 * argument, specified by the _funcArg param.


git-svn-id: svn://10.0.0.236/trunk@95147 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-16 22:10:47 +00:00
ashuk%eng.sun.com
227adf22c6 Bug=81023
author=ashuk
ra=edburns

Files modified -
mozilla/java/dom/classes/org/mozilla/dom/NodeImpl.java
mozilla/java/dom/classes/org/mozilla/dom/events/MutationEventImpl.java
mozilla/java/dom/jni/org_mozilla_dom_NodeImpl.cpp

This Fix brings JavaDOM upto sync with the latest w3c.dom
interfaces built on 5/16/01 and checked into java/external
as dom2.jar


git-svn-id: svn://10.0.0.236/trunk@95145 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-16 21:13:46 +00:00
edburns%acm.org
447399fb12 // replace nsString::Recycle with nsMemory::Free
java/dom/jni/org_mozilla_dom_events_MouseEventImpl.cpp
java/dom/jni/org_mozilla_dom_events_UIEventImpl.cpp
java/dom/jni/org_mozilla_dom_events_EventImpl.cpp
java/dom/jni/org_mozilla_dom_ProcessingInstructionImpl.cpp
java/dom/jni/org_mozilla_dom_NodeImpl.cpp
java/dom/jni/org_mozilla_dom_NamedNodeMapImpl.cpp
java/dom/jni/org_mozilla_dom_ElementImpl.cpp
java/dom/jni/org_mozilla_dom_DOMImplementationImpl.cpp
java/dom/jni/org_mozilla_dom_DocumentImpl.cpp
java/dom/jni/org_mozilla_dom_CharacterDataImpl.cpp
java/dom/jni/org_mozilla_dom_AttrImpl.cpp
java/dom/jni/javaDOMEventsGlobals.cpp

// On*DocumentLoad() now takes an nsIRequest instead of an nsIChannel.
// nsIChannel extends nsIRequest.
java/dom/src/nsJavaDOMImpl.cpp
java/dom/src/nsJavaDOMImpl.h
java/dom/src/nsIJavaDOM.h

// nsIChannel instances replaced with nsIRequest. Removed ShowModal(),
// ExitModalLoop(), FindNamedBrowserItem().  Parameter changes for
// {Set,Get}Persistence().  Add DestroyBrowserWindow(), IsWindowModal().
// supports weak references
java/webclient/src_moz/CBrowserContainer.h
java/webclient/src_moz/CBrowserContainer.cpp

// GetProfileList now returns an array of profile names.  Need to use
// nsIProfileInternal instead of nsIProfile for StartupWithArgs.
java/webclient/src_moz/NativeEventThread.cpp

// Remove -lxpfelocation_s
java/webclient/src_moz/Makefile.in

// Don't include appfilelocprovider_s
java/webclient/src_moz/Makefile.win

// Don't assert thread safe, cause we are thread safe
java/webclient/src_moz/InputStreamShim.cpp


git-svn-id: svn://10.0.0.236/trunk@91060 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-02 22:48:33 +00:00
edburns%acm.org
496cf20121 bug=47878
r=edburns
a=edburns
author=rmv@sparc.spb.su


git-svn-id: svn://10.0.0.236/trunk@79785 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-22 00:06:21 +00:00
edburns%acm.org
ef806124bd This bug is about JavaDOM building on the tip. These changes make it so
you can build JavaDOM with the tip as of 20 Sept 2000.

M dom/jni/javaDOMGlobals.h

  changed nsString2 to nsString

M dom/jni/org_mozilla_dom_NodeImpl.cpp

  nsIDOMNode::Supports is now nsIDOMNode::IsSupported().


git-svn-id: svn://10.0.0.236/trunk@79657 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-20 21:47:42 +00:00
sdv%sparc.spb.su
b11df9429d added support of namespaces
git-svn-id: svn://10.0.0.236/trunk@72543 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-19 15:09:47 +00:00
sdv%sparc.spb.su
010e6705be support of latest w3c dom spec changes
fixed a bug with unicode strings


git-svn-id: svn://10.0.0.236/trunk@72133 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-13 21:22:35 +00:00
sdv%sparc.spb.su
c8e55c815c changes to support unicode strings
git-svn-id: svn://10.0.0.236/trunk@71527 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-05 18:08:39 +00:00
sdv%sparc.spb.su
5059f31b04 addon fix to bug 13338 (return null according to the
dom spec instead of throwing exception)


git-svn-id: svn://10.0.0.236/trunk@60967 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-15 23:57:27 +00:00
sdv%sparc.spb.su
003d45e5fc addon fix to bug 13338.
git-svn-id: svn://10.0.0.236/trunk@60556 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-12 01:11:48 +00:00
sdv%sparc.spb.su
df8ad6f69f changed fix to bug 13338.
now check for null pointers in Java DOM instead of
passing null references to coreDOM


git-svn-id: svn://10.0.0.236/trunk@60464 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-11 07:58:12 +00:00
sdv%sparc.spb.su
368a6b77c8 fix for bug 24723
git-svn-id: svn://10.0.0.236/trunk@60268 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-10 01:13:57 +00:00
dmose%mozilla.org
ce50f7d151 updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@52900 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-06 02:47:15 +00:00
akhil.arora%sun.com
4e94fff191 r=akhil.arora@sun.com, fix by Denis Sharypov <sdv@sparc.spb.su>
13271: the wrong method was being called in ProcessingInstructionImpl.cpp
13338: handle null input arguments gracefully without crashing


git-svn-id: svn://10.0.0.236/trunk@52307 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-30 02:14:28 +00:00
akhil.arora%sun.com
bb01f7852c 15579 r=akhil.arora@sun.com Checkin by Igor Nekrestyanov <nis@sparc.spb.su>
Implementation of DOM Events from the W3c DOM Level 2 current working draft


git-svn-id: svn://10.0.0.236/trunk@51761 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 22:42:40 +00:00
akhil.arora%sun.com
b931259907 16427 r=akhil.arora@sun.com fixed by Denis Sharypov <sdv@sparc.spb.su>
Found some more instances where the DOM spec says that it is not an error
  to return a NULL. Do not throw exceptions in these cases.


git-svn-id: svn://10.0.0.236/trunk@51035 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 21:53:20 +00:00
akhil.arora%sun.com
143c1894fc Denis Sharypov <sdv@sparc.spb.su> implemented DOMExceptions
git-svn-id: svn://10.0.0.236/trunk@49023 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-25 02:35:56 +00:00
akhil.arora%sun.com
5e44536585 use unicode for dom strings
git-svn-id: svn://10.0.0.236/trunk@47388 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-14 21:25:47 +00:00
akhil.arora%sun.com
7dd82adad9 replace nsString.ToNewCString with GetBuffer
git-svn-id: svn://10.0.0.236/trunk@46860 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-10 22:57:12 +00:00
akhil.arora%sun.com
1cb4db0707 Nikolay Igotti <inn@sparc.spb.su> found a bug in the implementation of equals
git-svn-id: svn://10.0.0.236/trunk@45944 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-03 22:19:40 +00:00
akhil.arora%sun.com
9a95e53b25 Timothy Tully implemented equals and hashCode methods for Node.
git-svn-id: svn://10.0.0.236/trunk@44405 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 23:54:26 +00:00
akhil.arora%sun.com
419d2df4df 1. Keep up with interface change in nsIDocumentLoaderObserver.
2. Fix lots of bugs.
3. Implement Entities and Notations.


git-svn-id: svn://10.0.0.236/trunk@44160 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 19:27:48 +00:00
akhil.arora%sun.com
10d25b3cb8 initial check-in of the java dom api (not part of regular build)
git-svn-id: svn://10.0.0.236/trunk@42384 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 00:28:53 +00:00