Ronald Capelli contributed this fix to make it work with Mozilla

1.3b.
This commit is contained in:
edburns%acm.org 2003-03-11 18:13:22 +00:00
Родитель bb0cf4e75a
Коммит b7ddb28024
1 изменённых файлов: 7 добавлений и 4 удалений

Просмотреть файл

@ -23,10 +23,11 @@
* Mark Lin <mark.lin@eng.sun.com> * Mark Lin <mark.lin@eng.sun.com>
* Mark Goddard * Mark Goddard
* Ed Burns <edburns@acm.org> * Ed Burns <edburns@acm.org>
* Jason Mawdsley <jason@macadamian.com> * Jason Mawdsley <jason@macadamian.com>
* Louis-Philippe Gagnon <louisphilippe@macadamian.com> * Louis-Philippe Gagnon <louisphilippe@macadamian.com>
* Brian Satterfield <bsatterf@atl.lmco.com> * Brian Satterfield <bsatterf@atl.lmco.com>
* Anthony Sizer <sizera@yahoo.com> * Anthony Sizer <sizera@yahoo.com>
* Ron Capelli <capelli@acm.org>
*/ */
/* /*
@ -158,8 +159,10 @@ wsLoadFromStreamEvent::handleEvent ()
// Kick off a LoadStream. This will cause // Kick off a LoadStream. This will cause
// InputStreamShim::Read() to be called, // InputStreamShim::Read() to be called,
rv = mInitContext->docShell->LoadStream(mShim, uri, mContentType, rv = mInitContext->docShell->LoadStream(mShim, uri,
mShim->getContentLength(), nsDependentCString(mContentType,
mShim->getContentLength()),
NS_LITERAL_CSTRING(""),
nsnull); nsnull);
if (mProperties) { if (mProperties) {
JNIEnv *env = (JNIEnv *) JNU_GetEnv(gVm, JNI_VERSION); JNIEnv *env = (JNIEnv *) JNU_GetEnv(gVm, JNI_VERSION);