diff options
author | tkent@chromium.org <tkent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-20 02:03:09 +0000 |
---|---|---|
committer | tkent@chromium.org <tkent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-20 02:03:09 +0000 |
commit | 04227967490f7a55661d19382d9a5683489acaac (patch) | |
tree | 2f14094920d3f7a3aaa96e9323649724dad090eb /chrome/common/chrome_switches.cc | |
parent | 51ac040769ee6aaaccc0d6e3d80459d115622c49 (diff) | |
download | chromium_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 'chrome/common/chrome_switches.cc')
-rw-r--r-- | chrome/common/chrome_switches.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc index 3c6476f..1a86bcd 100644 --- a/chrome/common/chrome_switches.cc +++ b/chrome/common/chrome_switches.cc @@ -263,6 +263,10 @@ const char kDisableHistoryURLProvider[] = "disable-history-url-provider"; // Disable the Indexed Database API. const char kDisableIndexedDatabase[] = "disable-indexed-database"; +// Disables HTML5 Forms interactive validation. +const char kDisableInteractiveFormValidation[] = + "disable-interactive-form-validation"; + // Disable the internal Flash Player. const char kDisableInternalFlash[] = "disable-internal-flash"; |