From 76b2df208e2755b7336e15026435f4a1739577c5 Mon Sep 17 00:00:00 2001 From: Bryce Curtis Date: Wed, 29 Jun 2011 18:28:29 -0500 Subject: [PATCH] Add comment --- framework/src/com/phonegap/DroidGap.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/framework/src/com/phonegap/DroidGap.java b/framework/src/com/phonegap/DroidGap.java index 57421649..ec839159 100755 --- a/framework/src/com/phonegap/DroidGap.java +++ b/framework/src/com/phonegap/DroidGap.java @@ -882,6 +882,9 @@ public class DroidGap extends PhonegapActivity { */ @Override 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; if (url.indexOf(this.ctx.baseUrl) == 0) { reqOk = true;