gecko-dev/java/webclient/src_moz
edburns%acm.org a50968cb0e This checkin makes DocumentLoadListener be fully functional for the
file:/// and LoadFromStream cases.  There were some problems:

1. RandomHTMLInputStream was never returning -1 from available, even
   when there was no more data to be read.

2. the available ivars in InputStreamShim were PRUint32, and needed to
   be PRInt32 to accomodate the -1.

3. InputStreamShim wasn't looking for the -1 from java, and it was
   incorrectly returning NS_ERROR_NOT_AVAILABLE in that case, when it
   should have been returning NS_OK if there was more data for Mozilla.

4. The testcase had a deadlock: it tried to remove the
   DocumentLoadListener from the DocumentLoadListener callback.  I had
   to move this outside of the listener callback.

M src_moz/InputStreamShim.cpp
M src_moz/InputStreamShim.h

- make available be a signed int.

- correctly handle the case when java says, "no more data available".

M test/automated/src/classes/org/mozilla/webclient/NavigationTest.java

- avoid deadlock by moving the call to removeDocumentLoadListener()
   outside of the listener itself.

M test/automated/src/classes/org/mozilla/webclient/RandomHTMLInputStream.java

- make sure to return -1 from available() when we have no more data.
2004-06-14 15:34:42 +00:00
..
gtk M build.xml 2004-04-23 14:52:21 +00:00
motif This is a checkpoint milestone for webclient 2.0. Webclient currently 2003-09-28 06:29:22 +00:00
win32 M build-tests.xml 2004-04-20 16:17:43 +00:00
.cvsignore ignore 2001-07-27 20:05:04 +00:00
BookmarksImpl.cpp The churn continues. After this checkin, BrowserControlFactoryTest 2004-04-15 22:58:08 +00:00
CBrowserContainer.cpp - rename initContext to NativeBrowserControl, at both the native and 2004-04-10 21:50:39 +00:00
CBrowserContainer.h - rename initContext to NativeBrowserControl, at both the native and 2004-04-10 21:50:39 +00:00
CurrentPageActionEvents.cpp - rename initContext to NativeBrowserControl, at both the native and 2004-04-10 21:50:39 +00:00
CurrentPageActionEvents.h - rename initContext to NativeBrowserControl, at both the native and 2004-04-10 21:50:39 +00:00
CurrentPageImpl.cpp This Change-bundle verifies that loadURL works as expected. Next will 2004-04-28 14:39:54 +00:00
dom_util.cpp Make webclient compile with Mozilla 1.6. Unit tests still don't run. 2004-02-23 06:26:54 +00:00
dom_util.h
EmbedProgress.cpp M classes_spec/org/mozilla/webclient/impl/wrapper_native/EventRegistrationImpl.java 2004-06-14 01:44:33 +00:00
EmbedProgress.h This checkin is the next step for getting DocumentLoadListener to work. 2004-06-11 15:55:48 +00:00
EmbedWindow.cpp This checkin is the first step to making DocumentLoadListener work 2004-06-10 16:30:00 +00:00
EmbedWindow.h This checkin is the first step to making DocumentLoadListener work 2004-06-10 16:30:00 +00:00
HistoryActionEvents.cpp - rename initContext to NativeBrowserControl, at both the native and 2004-04-10 21:50:39 +00:00
HistoryActionEvents.h - rename initContext to NativeBrowserControl, at both the native and 2004-04-10 21:50:39 +00:00
HistoryImpl.cpp - rename initContext to NativeBrowserControl, at both the native and 2004-04-10 21:50:39 +00:00
InputStreamShim.cpp This checkin makes DocumentLoadListener be fully functional for the 2004-06-14 15:34:42 +00:00
InputStreamShim.h This checkin makes DocumentLoadListener be fully functional for the 2004-06-14 15:34:42 +00:00
install_win32.js
ISupportsPeer.cpp This is a checkpoint milestone for webclient 2.0. Webclient currently 2003-09-28 06:29:22 +00:00
Makefile.in This checkin is the first step to making DocumentLoadListener work 2004-06-10 16:30:00 +00:00
NativeBrowserControl.cpp This checkin enables the StartDocumentLoadEvent. Now adding the rest of 2004-06-12 05:46:48 +00:00
NativeBrowserControl.h This checkin is the next step for getting DocumentLoadListener to work. 2004-06-11 15:55:48 +00:00
NativeEventThread.cpp The churn continues. After this checkin, BrowserControlFactoryTest 2004-04-15 22:58:08 +00:00
NativeEventThreadActionEvents.cpp - rename initContext to NativeBrowserControl, at both the native and 2004-04-10 21:50:39 +00:00
NativeEventThreadActionEvents.h - rename initContext to NativeBrowserControl, at both the native and 2004-04-10 21:50:39 +00:00
NativeWrapperFactory.cpp M dom/src/Makefile.in 2004-04-16 19:02:21 +00:00
NativeWrapperFactory.h The churn continues. After this checkin, BrowserControlFactoryTest 2004-04-15 22:58:08 +00:00
NavigationActionEvents.cpp This change-bundle is the start of loadFromStream(). Currently, I'm 2004-04-28 16:40:15 +00:00
NavigationActionEvents.h This change-bundle is the start of loadFromStream(). Currently, I'm 2004-04-28 16:40:15 +00:00
NavigationImpl.cpp This change-bundle is the start of loadFromStream(). Currently, I'm 2004-04-28 16:40:15 +00:00
ns_globals.h This checkin is the next step for getting DocumentLoadListener to work. 2004-06-11 15:55:48 +00:00
ns_util_export.cpp
ns_util.cpp This change-bundle is the start of loadFromStream(). Currently, I'm 2004-04-28 16:40:15 +00:00
ns_util.h This change-bundle is the start of loadFromStream(). Currently, I'm 2004-04-28 16:40:15 +00:00
nsActions.cpp
nsActions.h
PreferencesImpl.cpp M classes_spec/org/mozilla/webclient/impl/WrapperFactory.java 2004-04-17 21:25:12 +00:00
ProfileManagerImpl.cpp The churn continues. After this checkin, BrowserControlFactoryTest 2004-04-15 22:58:08 +00:00
PromptActionEvents.cpp - rename initContext to NativeBrowserControl, at both the native and 2004-04-10 21:50:39 +00:00
PromptActionEvents.h - rename initContext to NativeBrowserControl, at both the native and 2004-04-10 21:50:39 +00:00
rdf_progids.h
rdf_util.cpp The churn continues. After this checkin, BrowserControlFactoryTest 2004-04-15 22:58:08 +00:00
rdf_util.h This is a checkpoint milestone for webclient 2.0. Webclient currently 2003-09-28 06:29:22 +00:00
RDFEnumeration.cpp The churn continues. After this checkin, BrowserControlFactoryTest 2004-04-15 22:58:08 +00:00
RDFTreeNode.cpp The churn continues. After this checkin, BrowserControlFactoryTest 2004-04-15 22:58:08 +00:00
wcIBrowserContainer.h
WindowControlActionEvents.cpp - rename initContext to NativeBrowserControl, at both the native and 2004-04-10 21:50:39 +00:00
WindowControlActionEvents.h - rename initContext to NativeBrowserControl, at both the native and 2004-04-10 21:50:39 +00:00
WindowControlImpl.cpp This checkin is the next step for getting DocumentLoadListener to work. 2004-06-11 15:55:48 +00:00
WindowCreator.cpp - rename initContext to NativeBrowserControl, at both the native and 2004-04-10 21:50:39 +00:00
WindowCreator.h - rename initContext to NativeBrowserControl, at both the native and 2004-04-10 21:50:39 +00:00
WrapperFactoryImpl.cpp This checkin is the next step for getting DocumentLoadListener to work. 2004-06-11 15:55:48 +00:00
wsRDFObserver.cpp r=edburns 2003-07-13 04:23:49 +00:00
wsRDFObserver.h