mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 749917 - crash in mozilla::AndroidBridge::CheckURIVisited r=kats
This commit is contained in:
parent
92a88764b8
commit
9e9c410591
@ -1644,8 +1644,10 @@ AndroidBridge::CheckURIVisited(const nsAString& aURI)
|
||||
if (!env)
|
||||
return;
|
||||
|
||||
AutoLocalJNIFrame jniFrame(env);
|
||||
AutoLocalJNIFrame jniFrame(env, 1);
|
||||
jstring jstrURI = env->NewString(nsPromiseFlatString(aURI).get(), aURI.Length());
|
||||
// If creating the string fails, just bail
|
||||
if (!jniFrame.CheckForException())
|
||||
env->CallStaticVoidMethod(mGeckoAppShellClass, jCheckUriVisited, jstrURI);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user