mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Upgrade Hyper
This commit is contained in:
parent
5df705a41f
commit
a48a111cee
42 changed files with 872 additions and 891 deletions
|
@ -4,7 +4,7 @@
|
|||
|
||||
use serde_json::{Map, Value};
|
||||
use webdriver::capabilities::{BrowserCapabilities, Capabilities};
|
||||
use webdriver::error::WebDriverResult;
|
||||
use webdriver::error::{WebDriverError, WebDriverResult};
|
||||
|
||||
pub struct ServoCapabilities {
|
||||
pub browser_name: String,
|
||||
|
@ -71,9 +71,16 @@ impl BrowserCapabilities for ServoCapabilities {
|
|||
Ok(self.accept_custom)
|
||||
}
|
||||
|
||||
fn validate_custom(&self, _: &str, _: &Value) -> WebDriverResult<()> {
|
||||
fn validate_custom(&mut self, _: &str, _: &Value) -> WebDriverResult<()> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn web_socket_url(
|
||||
&mut self,
|
||||
_: &serde_json::Map<std::string::String, Value>,
|
||||
) -> Result<bool, WebDriverError> {
|
||||
todo!()
|
||||
}
|
||||
}
|
||||
|
||||
fn get_platform_name() -> Option<String> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue