You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by bo...@apache.org on 2013/02/22 01:49:36 UTC

[1/2] android commit: CB-2522: We used buttons in older versions to send the post, not the submit event. Disabled form saving

CB-2522: We used buttons in older versions to send the post, not the submit event.  Disabled form saving


Project: http://git-wip-us.apache.org/repos/asf/cordova-android/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-android/commit/77a8568b
Tree: http://git-wip-us.apache.org/repos/asf/cordova-android/tree/77a8568b
Diff: http://git-wip-us.apache.org/repos/asf/cordova-android/diff/77a8568b

Branch: refs/heads/master
Commit: 77a8568b28b55c2c7be3f2fd7398c1a44d76a39b
Parents: 17b668a
Author: Joe Bowser <bo...@apache.org>
Authored: Thu Feb 21 16:48:57 2013 -0800
Committer: Joe Bowser <bo...@apache.org>
Committed: Thu Feb 21 16:48:57 2013 -0800

----------------------------------------------------------------------
 .../src/org/apache/cordova/CordovaWebView.java     |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-android/blob/77a8568b/framework/src/org/apache/cordova/CordovaWebView.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/CordovaWebView.java b/framework/src/org/apache/cordova/CordovaWebView.java
index 166dcf4..0489a8a 100755
--- a/framework/src/org/apache/cordova/CordovaWebView.java
+++ b/framework/src/org/apache/cordova/CordovaWebView.java
@@ -254,6 +254,10 @@ public class CordovaWebView extends WebView {
             Log.d(TAG, "This should never happen: InvocationTargetException means this isn't Android anymore.");
         }
 
+        //We don't save any form data in the application
+        settings.setSaveFormData(false);
+        settings.setSavePassword(false);
+        
         // Jellybean rightfully tried to lock this down. Too bad they didn't give us a whitelist
         // while we do this
         if (android.os.Build.VERSION.SDK_INT > android.os.Build.VERSION_CODES.ICE_CREAM_SANDWICH_MR1)