From 12d6fd624ed5a8327de7072f5d1529c9d703487c Mon Sep 17 00:00:00 2001 From: "edburns%acm.org" Date: Fri, 3 Sep 2004 19:04:22 +0000 Subject: [PATCH] This checkin is the start of work for the Http header access feature. Currently, I'm trying to discover what is the best way to expose this API in documents that include frames. I think I'll need more than those two new methods on CurrentPage2. I'll probably have some way to get a list of all URLs that comprise the frameset, including nested framesets. It's true that you could use the DOM to derive this, but that's very complicated. I need something more lightweight. In the meantime, I'll check in what I have. M build-tests.xml - add commented out CurrentPageTest M build.xml - add clean.test target M classes_spec/org/mozilla/webclient/CurrentPage2.java M classes_spec/org/mozilla/webclient/impl/wrapper_native/CurrentPageImpl.java - new methods and no-op impls, so test-first test fails. + public Map getRequestHeaders(); + + public Map getResponseHeaders(); M classes_spec/org/mozilla/webclient/impl/wrapper_native/EventRegistrationImpl.java - swallow exceptions thrown by listeners. M src_moz/EmbedProgress.cpp - test for existence of httpChannel, so we can visit the headers M test/automated/src/classes/org/mozilla/util/THTTPD.java - return a "Server: " header that I can test in the testcase. M test/automated/src/classes/org/mozilla/webclient/DocumentLoadListenerImpl.java - add doStartCheck() method. M test/automated/src/classes/org/mozilla/webclient/NavigationTest.java M test/automated/src/classes/org/mozilla/webclient/WebclientTestCase.java - push THTTPD stuff to superclass. A test/automated/src/classes/org/mozilla/webclient/NavigationTest.java - new testcase, fails. git-svn-id: svn://10.0.0.236/trunk@161722 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/java/webclient/build-tests.xml | 1 + mozilla/java/webclient/build.xml | 4 + .../org/mozilla/webclient/CurrentPage2.java | 8 +- .../impl/wrapper_native/CurrentPageImpl.java | 29 ++- .../wrapper_native/EventRegistrationImpl.java | 8 +- .../java/webclient/src_moz/EmbedProgress.cpp | 14 ++ .../src/classes/org/mozilla/util/THTTPD.java | 5 +- .../mozilla/webclient/CurrentPageTest.java | 198 ++++++++++++++++++ .../webclient/DocumentLoadListenerImpl.java | 7 +- .../org/mozilla/webclient/NavigationTest.java | 28 +-- .../mozilla/webclient/WebclientTestCase.java | 34 ++- 11 files changed, 287 insertions(+), 49 deletions(-) create mode 100644 mozilla/java/webclient/test/automated/src/classes/org/mozilla/webclient/CurrentPageTest.java diff --git a/mozilla/java/webclient/build-tests.xml b/mozilla/java/webclient/build-tests.xml index 70e05e74728..f27e21e6bf4 100644 --- a/mozilla/java/webclient/build-tests.xml +++ b/mozilla/java/webclient/build-tests.xml @@ -160,6 +160,7 @@ +