620 Commits

Author SHA1 Message Date
rpallath%eng.sun.com
182fd9d0ee *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@63164 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-16 22:16:08 +00:00
rpallath%eng.sun.com
c33fe5ffd7 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@63163 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-16 22:11:53 +00:00
rpallath%eng.sun.com
637c2bb6ce Pluglet API tests
git-svn-id: svn://10.0.0.236/trunk@63162 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-16 22:06:17 +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
edburns%acm.org
f4d7081311 This checkin adds API to cleanly destroy a BrowserControl instance. It
also modifies EmbeddedMozilla so this code is exercised.

I have changed EmbeddedMozilla to be a stub-like class that simply
displays a Frame with a single Button, titled "New Window".  Pressing
this button causes an EMWindow to be created and displayed.  EMWindow is
basically the former EmbeddedMozilla renamed, with modifications to the
WindowListener implementation to call the BrowserControl deallocation
method.

I've added a delete() method to ImplObect:

 * I know Java has automatic garbage collection and all, but explicitly
 * adding a delete method helps the gc algorithm out. <P>

 * Subclasses should override this and call super.delete() at the end of
 * their overridden delete() method.

 * @see org.mozilla.webclient.wrapper_native.ImplObjectNative#delete

and ImplObjectNative:

 * Note how we call super.delete() at the end.  THIS IS VERY IMPORTANT. <P>

 * Also, note how we don't de-allocate nativeWebShell, that is done in
 * the class that owns the nativeWebShell reference, WindowControlImpl.

 * ImplObjectNative subclasses that further override delete() are <P>

<CODE><PRE>
BookmarksImpl.java
EventRegistrationImpl.java
NativeEventThread.java
WindowControlImpl.java
</PRE><CODE> <P>

 * All other ImplObject subclasses don't have any local Ivars and thus
 * don't need to override delete().

I've added a delete() method to BrowserControlImpl:

 * Called from BrowserControlFactory.deleteBrowserControl() <P>

 * The order of deletion of objects is very important! <P>

 * We don't allow deletion if the Canvas is showing. <P>

In BrowserControlImpl's delete(), the important delete()s is for
WindowControlImpl:

 * First, we delete our eventThread, which causes the eventThread to
 * stop running.  Then we call nativeDestroyInitContext(), which
 * deallocates native resources for this window.

As stated above, NativeEventThread.delete() is called:

 * This is a very delicate method, and possibly subject to race
 * condition problems.  To combat this, our first step is to set our
 * browserControlCanvas to null, within a synchronized block which
 * synchronizes on the same object used in the run() method's event
 * loop.  By setting the browserControlCanvas ivar to null, we cause the
 * run method to return.

After all of this deleting, we return from
BrowserControlFactory.delete().


git-svn-id: svn://10.0.0.236/trunk@62772 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-13 18:44:32 +00:00
edburns%acm.org
c4a928699e r=ashuk
a=edburns
bug=31253

This change doesn't impact SeaMonkey.

Move the initialization of the nativeWebShell ptr into a superclass.


git-svn-id: svn://10.0.0.236/trunk@62501 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-09 23:22:52 +00:00
edburns%acm.org
508cc90c1c bug=31123
a=edburns
r=bruce

Folks, don't EVER use NULL in your c++ code.  Use nsnull instead.


git-svn-id: svn://10.0.0.236/trunk@62456 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-09 05:12:42 +00:00
edburns%acm.org
f3317f63ad JAVAH generated header files should not be checked in, since they are generated as a result of the build.
git-svn-id: svn://10.0.0.236/trunk@62452 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-09 04:41:43 +00:00
sherry.shen%sun.com
b14df5fa61 Bug #28281, r=leaf, a=leaf,
Add an option for building Java-supplement and
fix the Java building problem about JDIRS.


git-svn-id: svn://10.0.0.236/trunk@62425 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-09 01:14:22 +00:00
edburns%acm.org
5393e638a0 For win32 builds. If you define
WEBCLIENT_SPEC=1

in your environment before building webclient, the spec-compliant
version of webclient will be built.


git-svn-id: svn://10.0.0.236/trunk@62401 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-08 19:17:16 +00:00
edburns%acm.org
57a27f1d50 Changed NULL to nsnull, so it would build with gcc.
.


git-svn-id: svn://10.0.0.236/trunk@62399 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-08 18:54:00 +00:00
ashuk%eng.sun.com
9daf7a540c a=edburns
r=edburns
author=ashuk
bug=28407

Made fix for new BookmarksImpl.java file -- Ashu K.


git-svn-id: svn://10.0.0.236/trunk@62398 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-08 18:49:36 +00:00
ashuk%eng.sun.com
6c6385f95e a=edburns
r=edburns
author=ashuk
bug=28407

Made fix for changed BookmarksImpl.cpp file in the Stubs file -- Ashu K.


git-svn-id: svn://10.0.0.236/trunk@62397 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-08 18:41:01 +00:00
ashuk%eng.sun.com
4ad2fcb8e0 a=edburns
r=edburns
author=ashuk
bug=28407

New native code for spec-compliant impl ported to solaris -- Ashu K.


git-svn-id: svn://10.0.0.236/trunk@62345 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-07 22:45:37 +00:00
ashuk%eng.sun.com
06ad7dc35e a=edburns
r=edburns
author=ashuk
bug=28407

Moved this file to java/webclient/classes_new/org/mozilla/webclient/wrapper_native -- Ashu K.


git-svn-id: svn://10.0.0.236/trunk@62344 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-07 22:39:11 +00:00
ashuk%eng.sun.com
dbbd9a87d7 a=edburns
r=edburns
author=ashuk
bug=28407

New native code for spec-compliant impl ported to solaris -- Ashu K.


git-svn-id: svn://10.0.0.236/trunk@62342 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-07 22:33:38 +00:00
edburns%acm.org
57c1e905c2 NOT IN SeaMonkey
Added // PENDING comment


git-svn-id: svn://10.0.0.236/trunk@62341 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-07 22:32:27 +00:00
ashuk%eng.sun.com
d60410b769 a=edburns
r=edburns
author=ashuk
bug=28407

New run script for spec-compliant impl -- Ashu K.


git-svn-id: svn://10.0.0.236/trunk@62339 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-07 22:19:20 +00:00
ashuk%eng.sun.com
0e1f237edc a=edburns
r=edburns
author=ashuk
bug=28407

New solaris Makefile for spec-compliant impl -- Ashu K.


git-svn-id: svn://10.0.0.236/trunk@62338 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-07 22:18:17 +00:00
ashuk%eng.sun.com
f746427b55 a=edburns
r=edburns
author=ashuk
bug=28407

New java code for spec-compliant impl ported to solaris -- Ashu K.


git-svn-id: svn://10.0.0.236/trunk@62337 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-07 22:16:07 +00:00
ashuk%eng.sun.com
7c6e50cbd3 a=edburns
r=edburns
author=ashuk
bug=28407

New java code for spec-compliant impl ported to solaris -- Ashu K.


git-svn-id: svn://10.0.0.236/trunk@62336 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-07 22:10:08 +00:00
ashuk%eng.sun.com
ccd51ccc8c a=edburns
r=edburns
author=ashuk
bug=28407

makefile for Java code - spec compliant impl -- Ashu K


git-svn-id: svn://10.0.0.236/trunk@62334 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-07 22:03:57 +00:00
laa%sparc.spb.su
cfb35bc8bd Cleaned up pluglet examples sources (bug ID 17316).
Reviewed by idk@eng.sun.com


git-svn-id: svn://10.0.0.236/trunk@62300 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-07 08:33:54 +00:00
edburns%acm.org
2471024921 a=edburns
r=ashuk
bug=2069

Native code for spec compliant webclient impl.


git-svn-id: svn://10.0.0.236/trunk@62196 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-04 01:37:20 +00:00
edburns%acm.org
530e00a191 a=edburns
r=ashuk
bug=2069

Java classes for spec compliant webclient impl.


git-svn-id: svn://10.0.0.236/trunk@62193 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-04 01:10:58 +00:00
idk%eng.sun.com
03b4b80e4d Fix for 27690
Converted "path" to canonical form
a=avm@sparc.spb.su
r=idk@eng.sun.com


git-svn-id: svn://10.0.0.236/trunk@61681 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-25 21:16:18 +00:00
edburns%acm.org
cdc1a79633 Put #include <unistd.h> inside #ifdef XP_UNIX
git-svn-id: svn://10.0.0.236/trunk@61308 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-18 19:33:28 +00:00
edburns%acm.org
df661e89b7 Removed import org.mozilla.webclient.motif.*
git-svn-id: svn://10.0.0.236/trunk@61307 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-18 19:32:22 +00:00
edburns%acm.org
b31ba12625 author=Ashutosh Kulkarni
r=edburns
approver=edburns
bug=28407

THIS CODE IS NOT MOZILLA CODE!

This code change allows webclient to work with GTKSUPERWIN.


git-svn-id: svn://10.0.0.236/trunk@61306 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-18 19:16:27 +00:00
sdv%sparc.spb.su
edaf56e8c7 added a new example pluglet:
DOMViewer
a=idk@eng.sun.com, sdv@sparc.spb.su
r=idk@eng.sun.com, sdv@sparc.spb.su


git-svn-id: svn://10.0.0.236/trunk@61229 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-17 21:56:55 +00:00
rpallath%eng.sun.com
a2bf5ec695 Added try/catch block
git-svn-id: svn://10.0.0.236/trunk@61161 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-17 01:33:09 +00:00
rpallath%eng.sun.com
387329ab2d Changed the null check condition.
For HTML, doctype is alwasy null


git-svn-id: svn://10.0.0.236/trunk@61159 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-17 01:13:03 +00:00
leila.garin%eng.sun.com
8bf65f2960 Removed DocumenTypeImpl test cases from HTML.ORIG
Added DocumentTypeImpl_xml test case into XML.ORIG


git-svn-id: svn://10.0.0.236/trunk@61157 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-17 00:56:15 +00:00
rpallath%eng.sun.com
42aaa18836 Added getDocType_xml test case for XML for HTML it is null.
modified Makefiles to reflect the same


git-svn-id: svn://10.0.0.236/trunk@61155 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-17 00:54:57 +00:00
rpallath%eng.sun.com
efbd428f1a Added entries for new test cases.
git-svn-id: svn://10.0.0.236/trunk@61146 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-16 23:17:53 +00:00
rpallath%eng.sun.com
ca6ac3335b New Test Cases for all UNSUPPORTED methods
git-svn-id: svn://10.0.0.236/trunk@61142 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-16 22:58:27 +00:00
leila.garin%eng.sun.com
c27e519001 hanged made to these file
Added new api test entries in BWTestClass files
Added UNSUPPORTED methods in BWBaseTest/TestLoader
Update DoucmentImpl accroding to java DOM version.
Did correct check for retrun values in ElementImpl_removeAttribute_String_1.java
ElementImpl_setAttributeNode_Attr_1.java NamedNodeMapImpl_setNamedItem_Node_1.java


git-svn-id: svn://10.0.0.236/trunk@61141 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-16 22:53:33 +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
idk%eng.sun.com
b41e3abee5 Added new method :
public Object PlugletTagInfo.getDOMElement();
(It is possible to use JavaDOM from pluglets now.)
a=idk@eng.sun.com
r=sdv@sparc.spb.su


git-svn-id: svn://10.0.0.236/trunk@60968 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-16 00:03:38 +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
leila.garin%eng.sun.com
76ce17d83f Replaced old TestLoader with new TestLoader
git-svn-id: svn://10.0.0.236/trunk@60910 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-15 18:57:28 +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
leila.garin%eng.sun.com
a9df051ed0 Added getElementById method due to change in JavaDOM adhering to W3C specs.
git-svn-id: svn://10.0.0.236/trunk@60539 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-12 00:08:52 +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
sdv%sparc.spb.su
aa76a177aa fix for bug 22532
git-svn-id: svn://10.0.0.236/trunk@60266 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-10 01:12:21 +00:00
idk%eng.sun.com
7cca0630ac Fixed problem with loadaing pluglets.
changed "file://" to "file:"


git-svn-id: svn://10.0.0.236/trunk@60193 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-09 03:39:45 +00:00
idk%eng.sun.com
818eb6a8db Fixed crasher bug.
Now PlugletEngine do not crache mozilla
in  case of missing jvm


git-svn-id: svn://10.0.0.236/trunk@60166 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-09 00:34:54 +00:00
sdv%sparc.spb.su
5eb678a20a fix for bug 26895
git-svn-id: svn://10.0.0.236/trunk@60053 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-08 03:05:04 +00:00