This checkin adds request header sniffing. Not sure how useful this is,
but I wanted it for completeness with respect to response header sniffing. M webclient/src_moz/EmbedProgress.cpp - visit request headers on startUrlLoad. M webclient/test/automated/src/classes/org/mozilla/webclient/DocumentLoadListenerTest.java M webclient/test/manual/src/classes/org/mozilla/webclient/test/TestBrowser.java - exercise new code. git-svn-id: svn://10.0.0.236/trunk@164074 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -164,6 +164,14 @@ EmbedProgress::OnStateChange(nsIWebProgress *aWebProgress,
|
||||
if ((aStateFlags & STATE_START) && (aStateFlags & STATE_IS_REQUEST)) {
|
||||
PR_LOG(prLogModuleInfo, PR_LOG_DEBUG,
|
||||
("EmbedProgress::OnStateChange: START_URL_LOAD\n"));
|
||||
if (channel && mCapturePageInfo) {
|
||||
HttpHeaderVisitorImpl *visitor =
|
||||
new HttpHeaderVisitorImpl(env,
|
||||
properties, (jobject)
|
||||
&(mOwner->GetWrapperFactory()->shareContext));
|
||||
channel->VisitRequestHeaders(visitor);
|
||||
delete visitor;
|
||||
}
|
||||
|
||||
util_SendEventToJava(nsnull,
|
||||
mEventRegistration,
|
||||
|
||||
Reference in New Issue
Block a user