geckodriver: Merge pull request #70 from mozilla/delete_session_quit

Send quitApplication command when deleting a session.

Source-Repo: https://github.com/mozilla/geckodriver
Source-Revision: 4cbbc79ad487a7b1d8defd66be2923af6febf33e

--HG--
extra : rebase_source : 3207e480fb4ed25d51c9bc3af2944aafb4f32352
This commit is contained in:
James Graham 2016-06-06 19:23:37 +01:00
Родитель 01ed739e80
Коммит c593002d6c
1 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -804,7 +804,11 @@ impl MarionetteCommand {
debug!("Creating NewSession message");
(Some("newSession"), Some(Ok(data)))
},
DeleteSession => (Some("deleteSession"), None),
DeleteSession => {
let mut body = BTreeMap::new();
body.insert("flags".to_owned(), vec!["eForceQuit".to_json()].to_json());
(Some("quitApplication"), Some(Ok(body)))
},
Get(ref x) => (Some("get"), Some(x.to_marionette())),
GetCurrentUrl => (Some("getCurrentUrl"), None),
GoBack => (Some("goBack"), None),