webdriver: Merge pull request #49 from vkatsikaros/286/allow_status_without_sessionid
authorVangelis Katsikaros <vkatsikaros@gmail.com>
Thu, 10 Nov 2016 17:17:32 +0000
changeset 428090 407b87f5bfd43d2e4aa64d4685ba413058cfa930
parent 428089 40f837f9392b46220102ea85ab44c339cf8ca3e0
child 428091 fc2ded84e2f7dc28c26d6cca443e2a2c87df3f25
push id7761
push userjlund@mozilla.com
push dateFri, 15 Sep 2017 00:19:52 +0000
treeherdermozilla-beta@c38455951db4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
milestone57.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
webdriver: Merge pull request #49 from vkatsikaros/286/allow_status_without_sessionid Allow command Status without session id Source-Repo: https://github.com/mozilla/webdriver-rust Source-Revision: f36bdfc86217c0c694b4d42aba629697351a8368
testing/webdriver/src/server.rs
--- a/testing/webdriver/src/server.rs
+++ b/testing/webdriver/src/server.rs
@@ -114,16 +114,17 @@ impl <T: WebDriverHandler<U>,
                     },
                     None => Ok(())
                 }
             },
             None => {
                 match self.session {
                     Some(_) => {
                         match msg.command {
+                            WebDriverCommand::Status => Ok(()),
                             WebDriverCommand::NewSession(_) => {
                                 Err(WebDriverError::new(
                                     ErrorStatus::SessionNotCreated,
                                     "Session is already started"))
                             },
                             _ => {
                                 //This should be impossible
                                 error!("Got a message with no session id");