Bug 1483288 - Avoid "as i64" coercion of marionette.port pref value. r=whimboo
authorAndreas Tolfsen <ato@sny.no>
Tue, 14 Aug 2018 18:15:19 +0100
changeset 486800 c8fa2901262d8e063b3b8f4d6c476888666c23ea
parent 486799 0c727114d3642b64f0e8138b0b83b1093d3e03aa
child 486801 cba97273eb10aa51a654d7a802c843b3e149b903
push id9719
push userffxbld-merge
push dateFri, 24 Aug 2018 17:49:46 +0000
treeherdermozilla-beta@719ec98fba77 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerswhimboo
bugs1483288
milestone63.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 1483288 - Avoid "as i64" coercion of marionette.port pref value. r=whimboo
testing/geckodriver/src/marionette.rs
--- a/testing/geckodriver/src/marionette.rs
+++ b/testing/geckodriver/src/marionette.rs
@@ -505,17 +505,17 @@ impl MarionetteHandler {
             prefs.insert("devtools.browsertoolbox.panel", Pref::new("jsdebugger".to_owned()));
             prefs.insert("devtools.debugger.remote-enabled", Pref::new(true));
             prefs.insert("devtools.chrome.enabled", Pref::new(true));
             prefs.insert("devtools.debugger.prompt-connection", Pref::new(false));
             prefs.insert("marionette.debugging.clicktostart", Pref::new(true));
         }
 
         prefs.insert("marionette.log.level", Pref::new(logging::max_level().to_string()));
-        prefs.insert("marionette.port", Pref::new(port as i64));
+        prefs.insert("marionette.port", Pref::new(port));
 
         prefs.write().map_err(|_| WebDriverError::new(ErrorStatus::UnknownError,
                                                       "Unable to write Firefox profile"))
     }
 }
 
 impl WebDriverHandler<GeckoExtensionRoute> for MarionetteHandler {
     fn handle_command(&mut self, _: &Option<Session>,