summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webpreferences.cc
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.cc
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.cc')
-rw-r--r--webkit/glue/webpreferences.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/webkit/glue/webpreferences.cc b/webkit/glue/webpreferences.cc
index 70ed31a..de2fc07 100644
--- a/webkit/glue/webpreferences.cc
+++ b/webkit/glue/webpreferences.cc
@@ -67,7 +67,8 @@ WebPreferences::WebPreferences()
accelerated_video_enabled(false),
accelerated_2d_canvas_enabled(false),
accelerated_plugins_enabled(false),
- memory_info_enabled(false) {
+ memory_info_enabled(false),
+ interactive_form_validation_enabled(true) {
}
WebPreferences::~WebPreferences() {
@@ -185,4 +186,7 @@ void WebPreferences::Apply(WebView* web_view) const {
// Tabs to link is not part of the settings. WebCore calls
// ChromeClient::tabsToLinks which is part of the glue code.
web_view->setTabsToLinks(tabs_to_links);
+
+ settings->setInteractiveFormValidationEnabled(
+ interactive_form_validation_enabled);
}