bug=47357

a=edburns
r=edburns
author=avm

This fix adds a length parameter to the loading of URLs.  It also adds a new util function util_getStringLength().


git-svn-id: svn://10.0.0.236/trunk@76157 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
edburns%acm.org
2000-08-11 21:58:56 +00:00
parent 4113e0d3f3
commit 1968a5ae56
7 changed files with 36 additions and 7 deletions

View File

@@ -49,6 +49,7 @@ JNIEXPORT void JNICALL Java_org_mozilla_webclient_wrapper_1native_NavigationImpl
PRUnichar * urlStringChars = (PRUnichar *) ::util_GetStringChars(env,
urlString);
PRInt32 urlLength = (PRInt32) ::util_GetStringLength(env, urlString);
if (::util_ExceptionOccurred(env)) {
::util_ThrowExceptionToJava(env, "raptorWebShellLoadURL Exception: unable to extract Java string");
@@ -67,7 +68,7 @@ JNIEXPORT void JNICALL Java_org_mozilla_webclient_wrapper_1native_NavigationImpl
}
if (initContext->initComplete) {
wsLoadURLEvent * actionEvent = new wsLoadURLEvent(initContext->webNavigation, urlStringChars);
wsLoadURLEvent * actionEvent = new wsLoadURLEvent(initContext->webNavigation, urlStringChars, urlLength);
PLEvent * event = (PLEvent*) *actionEvent;
::util_PostEvent(initContext, event);