summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webpreferences.h
diff options
context:
space:
mode:
authortkent@chromium.org <tkent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-20 02:03:09 +0000
committertkent@chromium.org <tkent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-20 02:03:09 +0000
commit04227967490f7a55661d19382d9a5683489acaac (patch)
tree2f14094920d3f7a3aaa96e9323649724dad090eb /webkit/glue/webpreferences.h
parent51ac040769ee6aaaccc0d6e3d80459d115622c49 (diff)
downloadchromium_src-04227967490f7a55661d19382d9a5683489acaac.zip
chromium_src-04227967490f7a55661d19382d9a5683489acaac.tar.gz
chromium_src-04227967490f7a55661d19382d9a5683489acaac.tar.bz2
* Add WebPreference::interactive_form_validation_enabled
The default value is true. * Add --disable-interactive-form-validation flag and about:flags interface The interactive form validation feature might cause web site compatibility issues. So we provide a way to disable it just in case. BUG=45804,54368 TEST=manual; Open the URL "data:text/html,<form><input required></form>", click the input field, and press ENTER key. - A validation message is shown by default - If you run Chrome with --disable-interactive-form-validation, no validation message is shown and the form is submitted. - If you enable "Disable HTML5 interacrive form validation" flag on about:flags, no validation message is shown and the form is submitted. Review URL: http://codereview.chromium.org/6329005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71902 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webpreferences.h')
-rw-r--r--webkit/glue/webpreferences.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/webkit/glue/webpreferences.h b/webkit/glue/webpreferences.h
index f6e000d..63c95c8 100644
--- a/webkit/glue/webpreferences.h
+++ b/webkit/glue/webpreferences.h
@@ -5,8 +5,8 @@
// A struct for managing webkit's settings.
//
// Adding new values to this class probably involves updating
-// WebKit::WebSettings, common/render_messages.h, and
-// browser/profile.cc.
+// WebKit::WebSettings, common/render_messages.cc, browser/tab_contents/
+// render_view_host_delegate_helper.cc, and browser/profiles/profile.cc.
#ifndef WEBKIT_GLUE_WEBPREFERENCES_H__
#define WEBKIT_GLUE_WEBPREFERENCES_H__
@@ -74,6 +74,7 @@ struct WebPreferences {
bool accelerated_2d_canvas_enabled;
bool accelerated_plugins_enabled;
bool memory_info_enabled;
+ bool interactive_form_validation_enabled;
// We try to keep the default values the same as the default values in
// chrome, except for the cases where it would require lots of extra work for