mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-01 02:12:58 +08:00
Add comment
This commit is contained in:
parent
9643314553
commit
76b2df208e
@ -882,6 +882,9 @@ public class DroidGap extends PhonegapActivity {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean onJsPrompt(WebView view, String url, String message, String defaultValue, JsPromptResult result) {
|
public boolean onJsPrompt(WebView view, String url, String message, String defaultValue, JsPromptResult result) {
|
||||||
|
|
||||||
|
// Security check to make sure any requests are coming from the page initially
|
||||||
|
// loaded in webview and not another loaded in an iframe.
|
||||||
boolean reqOk = false;
|
boolean reqOk = false;
|
||||||
if (url.indexOf(this.ctx.baseUrl) == 0) {
|
if (url.indexOf(this.ctx.baseUrl) == 0) {
|
||||||
reqOk = true;
|
reqOk = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user