Skip to content

Commit b2eeb1e

Browse files
author
Selim Gurun
committed
DO NOT MERGE Control access to tts objects
Bug: 7073422 Control access to inherited methods of texttospeech JS objects. Change-Id: Ieae0efaf1267108abd97cdac9e8604f6246cefb9
1 parent a76f1df commit b2eeb1e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/java/android/webkit/AccessibilityInjector.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ private void addTtsApis() {
351351
return;
352352
}
353353
mTextToSpeech = new TextToSpeechWrapper(mContext);
354-
mWebViewClassic.addJavascriptInterface(mTextToSpeech, ALIAS_TTS_JS_INTERFACE, false);
354+
mWebViewClassic.addJavascriptInterface(mTextToSpeech, ALIAS_TTS_JS_INTERFACE, true);
355355
}
356356

357357
/**
@@ -375,7 +375,7 @@ private void addCallbackApis() {
375375
}
376376

377377
mCallback = new CallbackHandler(ALIAS_TRAVERSAL_JS_INTERFACE);
378-
mWebViewClassic.addJavascriptInterface(mCallback, ALIAS_TRAVERSAL_JS_INTERFACE, false);
378+
mWebViewClassic.addJavascriptInterface(mCallback, ALIAS_TRAVERSAL_JS_INTERFACE, true);
379379
}
380380

381381
private void removeCallbackApis() {

0 commit comments

Comments
 (0)