From 4d136e2412b9a656ff5a4619309c634377771345 Mon Sep 17 00:00:00 2001 From: Alexei Barantsev Date: Mon, 9 Jun 2014 07:23:21 +0400 Subject: [PATCH] Returning less specific platform info from firefox driver. Fixes issue 3354 --- javascript/firefox-driver/js/nsCommandProcessor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/firefox-driver/js/nsCommandProcessor.js b/javascript/firefox-driver/js/nsCommandProcessor.js index d19591c89c889..c0f751b9814d3 100644 --- a/javascript/firefox-driver/js/nsCommandProcessor.js +++ b/javascript/firefox-driver/js/nsCommandProcessor.js @@ -736,7 +736,7 @@ nsCommandProcessor.prototype.getSessionCapabilities = function(response) { 'javascriptEnabled': true, 'nativeEvents': Utils.useNativeEvents(), // See https://developer.mozilla.org/en/OS_TARGET - 'platform': xulRuntime.OS, + 'platform': (xulRuntime.OS == 'WINNT' ? 'WINDOWS' : xulRuntime.OS), 'rotatable': false, 'takesScreenshot': true, 'version': appInfo.version