Bug 1519053 - Set window handle for 'Switch To Window' also as 'handle'. r=whimboo
authorKriti Singh <kritisingh1.ks@gmail.com>
Tue, 12 Mar 2019 21:42:31 +0000
changeset 521607 44fee8919949e9b0411ff723443a7b3ff6ae8b86
parent 521606 da793f0fe362720f58903a2ea16d674e50feaa2b
child 521608 f87b1c69a88d995473d2351fa55247774be9c395
push id10867
push userdvarga@mozilla.com
push dateThu, 14 Mar 2019 15:20:45 +0000
treeherdermozilla-beta@abad13547875 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerswhimboo
bugs1519053
milestone67.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
Bug 1519053 - Set window handle for 'Switch To Window' also as 'handle'. r=whimboo Differential Revision: https://phabricator.services.mozilla.com/D23169
testing/geckodriver/src/marionette.rs
--- a/testing/geckodriver/src/marionette.rs
+++ b/testing/geckodriver/src/marionette.rs
@@ -1471,16 +1471,20 @@ impl ToMarionette for SwitchToFrameParam
 
 impl ToMarionette for SwitchToWindowParameters {
     fn to_marionette(&self) -> WebDriverResult<Map<String, Value>> {
         let mut data = Map::new();
         data.insert(
             "name".to_string(),
             serde_json::to_value(self.handle.clone())?,
         );
+        data.insert(
+            "handle".to_string(),
+            serde_json::to_value(self.handle.clone())?,
+        );
         Ok(data)
     }
 }
 
 impl ToMarionette for TimeoutsParameters {
     fn to_marionette(&self) -> WebDriverResult<Map<String, Value>> {
         Ok(try_opt!(
             serde_json::to_value(self)?.as_object(),