summaryrefslogtreecommitdiffstats
path: root/chrome/test/webdriver/webdriver_capabilities_parser.h
diff options
context:
space:
mode:
authorkkania@chromium.org <kkania@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-12 17:06:40 +0000
committerkkania@chromium.org <kkania@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-12 17:06:40 +0000
commit1779440ab9614f4995bc199ab4aa9f5fe390102c (patch)
tree2889041ee9596196164bb8906b1223e335669f20 /chrome/test/webdriver/webdriver_capabilities_parser.h
parentbbadb118c396322c9ed599f60873a16c34519ecf (diff)
downloadchromium_src-1779440ab9614f4995bc199ab4aa9f5fe390102c.zip
chromium_src-1779440ab9614f4995bc199ab4aa9f5fe390102c.tar.gz
chromium_src-1779440ab9614f4995bc199ab4aa9f5fe390102c.tar.bz2
Change chromedriver to set geolocation/notification content setting defaults to allow.
Also disable cert revocation checking. These changes can be overruled by setting the noWebsiteTestingDefaults capability. BUG=none TEST=none Review URL: http://codereview.chromium.org/8890026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114026 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/webdriver/webdriver_capabilities_parser.h')
-rw-r--r--chrome/test/webdriver/webdriver_capabilities_parser.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/test/webdriver/webdriver_capabilities_parser.h b/chrome/test/webdriver/webdriver_capabilities_parser.h
index 8f9320d..4204186 100644
--- a/chrome/test/webdriver/webdriver_capabilities_parser.h
+++ b/chrome/test/webdriver/webdriver_capabilities_parser.h
@@ -49,6 +49,13 @@ struct Capabilities {
// WebKit APIs.
bool native_events;
+ // By default, ChromeDriver configures Chrome in such a way as convenient
+ // for website testing. E.g., it configures Chrome so that sites are allowed
+ // to use the geolocation API without requesting the user's consent.
+ // If this is set to true, ChromeDriver will not modify Chrome's default
+ // behavior.
+ bool no_website_testing_defaults;
+
// Path to a custom profile to use.
FilePath profile;
@@ -83,6 +90,7 @@ class CapabilitiesParser {
Error* ParseLoadAsync(const base::Value* option);
Error* ParseNativeEvents(const base::Value* option);
Error* ParseProfile(const base::Value* option);
+ Error* ParseNoWebsiteTestingDefaults(const base::Value* option);
Error* ParseVerbose(const base::Value* option);
// Decodes the given base64-encoded string, optionally unzips it, and
// writes the result to |path|.