87 Commits

Author SHA1 Message Date
edburns%acm.org
af4716a7e3 This change-bundle enables webclient to build and run with mozilla 1.7.
The Preferences unit test currently fails, but the test browser runs.
Next step is to make all the unit tests run, then produce the source and
binary distribution for 2.0 alpha 2.

M dom/jni/javaDOMEventsGlobals.cpp

- use nsString.get() instead of nsString.GetBufferHandle()

M webclient/src_moz/NavigationActionEvents.cpp

- don't use ctor initializer for nsString

M webclient/src_moz/ns_util.cpp

- nsString2.h is gone.


git-svn-id: svn://10.0.0.236/trunk@162977 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-29 22:01:26 +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
9016e169c7 no need for this anymore!
git-svn-id: svn://10.0.0.236/trunk@136211 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-12 07:48:16 +00:00
edburns%acm.org
a0be360e61 Make JavaDOM build with ANT.
git-svn-id: svn://10.0.0.236/trunk@136210 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-12 07:43:38 +00:00
edburns%acm.org
f2a2f5ed08 ra=edburns
Author: Tor Norbye <tor@eng.sun.com>

Changes to make it build on Solaris.


git-svn-id: svn://10.0.0.236/trunk@135977 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-08 05:21:31 +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
dca1ac3c28 Patch contributed by Michal Ceresna and verified by John Marmion.
This patch makes the webclient trunk work with the MOZILLA_0_9_9_BRANCH
on linux.


git-svn-id: svn://10.0.0.236/trunk@122500 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-01 19:11:44 +00:00
edburns%acm.org
579dbe6ec7 M Makefile.win
M dom/jni/javaDOMEventsGlobals.cpp
M dom/jni/makefile.win
M dom/jni/nativeDOMProxyListener.cpp
M dom/jni/nativeDOMProxyListener.h
M dom/jni/org_mozilla_dom_events_EventImpl.cpp
M dom/src/makefile.win
M dom/src/nsJavaDOMImpl.cpp
M webclient/Makefile.win
M webclient/classes_spec/Makefile.win
M webclient/classes_spec/org/mozilla/webclient/wrapper_native/ProfileManagerImpl.java
M webclient/src_moz/CBrowserContainer.cpp
M webclient/src_moz/CurrentPageActionEvents.cpp
M webclient/src_moz/HistoryActionEvents.cpp
M webclient/src_moz/HistoryImpl.cpp
M webclient/src_moz/InputStreamShim.cpp
M webclient/src_moz/Makefile.win
M webclient/src_moz/NativeEventThread.cpp
M webclient/src_moz/NativeEventThreadActionEvents.cpp
M webclient/src_moz/NavigationActionEvents.cpp
M webclient/src_moz/NavigationImpl.cpp
M webclient/src_moz/PreferencesActionEvents.cpp
M webclient/src_moz/PromptActionEvents.cpp
M webclient/src_moz/RDFActionEvents.cpp
M webclient/src_moz/win32/Makefile.win

Changes to make webclient compile and run with MOZILLA_0_9_9_BRANCH.


git-svn-id: svn://10.0.0.236/trunk@118989 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-15 17:38:52 +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
jaggernaut%netscape.com
45023a44cd Remove IsUnicode() check on nsString. nsString is always unicode (these days), so replacing this if/then/else with the then part. r=dbaron, rs=scc
git-svn-id: svn://10.0.0.236/trunk@105383 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-14 04:37:37 +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
c2e9301133 Bug=46725
author=ashuk

Removing Makefile files from java/dom dir


git-svn-id: svn://10.0.0.236/trunk@95762 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-23 01:17:13 +00:00
ashuk%eng.sun.com
2dbf0203f9 Bug=45018
author=ashuk

Files modified
jni/org_mozilla_dom_DocumentImpl.cpp

This fix makes sure that corner case where call to
nsIDOMDocument::CreateEntityReference returns
NS_OK, but a null return value for the
nsIDOMEntityReference is handled properly thro
the exception handling mechanism.


git-svn-id: svn://10.0.0.236/trunk@95735 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-22 23:53:42 +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
ashuk%eng.sun.com
672f92400d Bug=80792
author=ashuk
Files modified
java/webclient/src_moz/CBrowserContainer.cpp
java/dom/jni/org_mozilla_dom_events_MousEventImpl.cpp

This patch allows Webclient and JavaDOM to build with the
mozilla trunk as of 05/14/01


git-svn-id: svn://10.0.0.236/trunk@94906 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-15 00:03:22 +00:00
edburns%acm.org
555ae11e43 For some reason, javadom wouldn't compile today unless I changed
nativeDOMProxyListener.cpp nativeDOMProxyListener.h

To use NS_IMETHODIMP, NS_IMETHOD instead of virtual nsresult.


git-svn-id: svn://10.0.0.236/trunk@94510 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-10 20:46:09 +00:00
edburns%acm.org
6df6f64e66 Removed "^M" chars.
Sorry


git-svn-id: svn://10.0.0.236/trunk@94267 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 20:54:14 +00:00
edburns%acm.org
df9807ce08 bug 79278
This checkin migrates javaDOM to use the new nsIWebProgressListener
interface, removing its dependency on the now non-existant
nsIDocumentLoaderObserver.

It has only been tested inside webclient.  QA needs to do the standalone
javaDOM tests.

The following files are in this bugfix:

dom/jni/org_mozilla_dom_DOMAccessor.cpp
dom/src/nsIJavaDOM.h
dom/src/nsJavaDOMImpl.cpp
dom/src/nsJavaDOMImpl.h
webclient/classes_spec/org/mozilla/webclient/test/EMWindow.java
webclient/classes_spec/org/mozilla/webclient/wrapper_native/CurrentPageImpl.java


git-svn-id: svn://10.0.0.236/trunk@94264 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 20:34:31 +00:00
edburns%acm.org
960a520571 Don't try to free an automatic variable.
git-svn-id: svn://10.0.0.236/trunk@91064 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-02 23:27:44 +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
ashuk%eng.sun.com
e483742f91 Merging JAVADEV_RTM_20001102 into Trunk
_Ashu


git-svn-id: svn://10.0.0.236/trunk@91051 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-02 21:18:06 +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
5f5d17aedf fix for bug=44196
git-svn-id: svn://10.0.0.236/trunk@73755 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 08:01:07 +00:00
sdv%sparc.spb.su
75efb3494b fix for bug=41494
removed headers generated by javah
updated makefiles


git-svn-id: svn://10.0.0.236/trunk@73077 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 17:14:11 +00:00
sdv%sparc.spb.su
7a90f857bc fix for bug=43293
git-svn-id: svn://10.0.0.236/trunk@73060 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 14:09:19 +00:00
sdv%sparc.spb.su
d4b0a9436d fix for bug=43473
git-svn-id: svn://10.0.0.236/trunk@73055 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 13:17:29 +00:00
sdv%sparc.spb.su
4e33cfefc1 fix for bug=43290
git-svn-id: svn://10.0.0.236/trunk@72755 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 12:20:08 +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
5fd3575052 addon to fix a bug=42336
git-svn-id: svn://10.0.0.236/trunk@72304 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-15 11:14:47 +00:00
sdv%sparc.spb.su
b12debbf5d added workaround for bug=30927
git-svn-id: svn://10.0.0.236/trunk@72216 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-14 12:16:29 +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
edburns%acm.org
240b20481f a=drapeau
author=edburns
bug=41492

This change adds the following methods:

public static native void org.mozilla.dom.DOMAccessor.initialize();

The implementation of this method is:

JNIEXPORT void JNICALL Java_org_mozilla_dom_DOMAccessor_initialize
(JNIEnv *env, jclass)
{
  if (!JavaDOMGlobals::log) {
    JavaDOMGlobals::Initialize(env);
  }

}

This method is necessary for external clients that want to use JavaDOM,
but don't want to use the nsIDocumentLoaderObserver instance provided by
JavaDOM.

Please see http://bugzilla.mozilla.org/show_bug.cgi?id=41497 for an
additional bug for which there is a workaround.

Ed


git-svn-id: svn://10.0.0.236/trunk@71488 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-04 20:25:20 +00:00
sdv%sparc.spb.su
2ba656b678 implemented some w3c event interfaces methods
git-svn-id: svn://10.0.0.236/trunk@65195 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-04 17:55:34 +00:00
sdv%sparc.spb.su
d77fde69c8 A major update:
- reduces a number of c++<--> java calls
- added NULL checks
- made DOMAccessor to be secure
- added util and tests packages
- wrote test applets
- updated README


git-svn-id: svn://10.0.0.236/trunk@64644 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-30 23:52:19 +00:00
sdv%sparc.spb.su
0280522e44 removed java files which were placed
to classes dir


git-svn-id: svn://10.0.0.236/trunk@64417 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-29 01:07:03 +00:00
sdv%sparc.spb.su
aaa4ececa4 put classes to a single dir
updated makefiles


git-svn-id: svn://10.0.0.236/trunk@64410 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-29 00:41:22 +00:00
sdv%sparc.spb.su
904f0a8db8 keeping track with mozilla interface changes
git-svn-id: svn://10.0.0.236/trunk@64325 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-28 04:55:38 +00:00
sdv%sparc.spb.su
6ead812d57 added new methods from the recent w3c
java binding


git-svn-id: svn://10.0.0.236/trunk@64299 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-28 02:11:13 +00:00
sdv%sparc.spb.su
3381a0c4c8 added target to make java classes on windows
git-svn-id: svn://10.0.0.236/trunk@62785 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-13 23:03:07 +00:00
sdv%sparc.spb.su
aca12d2ebf addon fix to bug 13338
git-svn-id: svn://10.0.0.236/trunk@60981 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-16 00:45:37 +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
e70a4a7b50 - added method to enable access to pluglets and
changed the way java dom registers itself


git-svn-id: svn://10.0.0.236/trunk@60790 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-15 03:50:35 +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