webdriver_server: rename acceptSslCerts to acceptInsecureCerts

The WebDriver standard never defined acceptSslCerts, but it was used
by legacy Selenium implementations.  The standard does however define a
slightly more negative-sounding capability called acceptInsecureCerts,
which to greater extent warns users about what its consequences are.
This commit is contained in:
Andreas Tolfsen 2017-01-26 17:00:42 +00:00
parent 8653ef77c2
commit e4abc811b9

View file

@ -303,7 +303,7 @@ impl Handler {
let mut capabilities = BTreeMap::new(); let mut capabilities = BTreeMap::new();
capabilities.insert("browserName".to_owned(), "servo".to_json()); capabilities.insert("browserName".to_owned(), "servo".to_json());
capabilities.insert("browserVersion".to_owned(), "0.0.1".to_json()); capabilities.insert("browserVersion".to_owned(), "0.0.1".to_json());
capabilities.insert("acceptSslCerts".to_owned(), false.to_json()); capabilities.insert("acceptInsecureCerts".to_owned(), false.to_json());
let rv = Ok(WebDriverResponse::NewSession( let rv = Ok(WebDriverResponse::NewSession(
NewSessionResponse::new( NewSessionResponse::new(
session.id.to_string(), session.id.to_string(),