fix for bug 22532
git-svn-id: svn://10.0.0.236/trunk@60266 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -347,6 +347,8 @@ NS_IMETHODIMP nsJavaDOMImpl::OnStartURLLoad(nsIDocumentLoader* loader,
|
||||
char* contentType = (char*) "";
|
||||
if (channel)
|
||||
channel->GetContentType(&contentType);
|
||||
if (!contentType)
|
||||
contentType = (char*) "";
|
||||
jstring jContentType = env->NewStringUTF(contentType);
|
||||
if (!jContentType) return NS_ERROR_FAILURE;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user