diff --git a/java/webclient/src_moz/NavigationActionEvents.cpp b/java/webclient/src_moz/NavigationActionEvents.cpp index 7a9fb668afd..9082c438ccf 100644 --- a/java/webclient/src_moz/NavigationActionEvents.cpp +++ b/java/webclient/src_moz/NavigationActionEvents.cpp @@ -23,10 +23,11 @@ * Mark Lin * Mark Goddard * Ed Burns - * Jason Mawdsley - * Louis-Philippe Gagnon + * Jason Mawdsley + * Louis-Philippe Gagnon * Brian Satterfield * Anthony Sizer + * Ron Capelli */ /* @@ -158,8 +159,10 @@ wsLoadFromStreamEvent::handleEvent () // Kick off a LoadStream. This will cause // InputStreamShim::Read() to be called, - rv = mInitContext->docShell->LoadStream(mShim, uri, mContentType, - mShim->getContentLength(), + rv = mInitContext->docShell->LoadStream(mShim, uri, + nsDependentCString(mContentType, + mShim->getContentLength()), + NS_LITERAL_CSTRING(""), nsnull); if (mProperties) { JNIEnv *env = (JNIEnv *) JNU_GetEnv(gVm, JNI_VERSION);