Skip to content

Commit 53bb2c4

Browse files
committed
Fixing execution of user JavaScript in IE to allow comment at end of line
1 parent 7c9ca8e commit 53bb2c4

7 files changed

Lines changed: 14 additions & 10 deletions

File tree

cpp/iedriver/CommandHandlers/ExecuteAsyncScriptCommandHandler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ void ExecuteAsyncScriptCommandHandler::ExecuteInternal(
100100
async_script += L"if (document.__$webdriverAsyncExecutor.asyncScriptResult !== undefined) {\n";
101101
async_script += L" delete document.__$webdriverAsyncExecutor.asyncScriptResult;\n";
102102
async_script += L"}\n";
103-
async_script += L"(function() {" + script_body + L"}).apply(null, argsArray);\n";
103+
async_script += L"(function() {\n" + script_body + L"\n}).apply(null, argsArray);\n";
104104
async_script += L"};})();";
105105

106106
std::wstring polling_script = L"(function() { return function(){\n";

cpp/iedriver/CommandHandlers/ExecuteScriptCommandHandler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ void ExecuteScriptCommandHandler::ExecuteInternal(
6060
}
6161

6262
std::string script_body = script_parameter_iterator->second.asString();
63-
const std::string script_source = "(function() { return function(){" + script_body + "};})();";
63+
const std::string script_source = "(function() { return function(){\n" + script_body + "\n};})();";
6464

6565
Json::Value json_args(args_parameter_iterator->second);
6666

cpp/iedriver/IEDriver.rc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ END
5050
//
5151

5252
VS_VERSION_INFO VERSIONINFO
53-
FILEVERSION 3,141,5,12
54-
PRODUCTVERSION 3,141,5,12
53+
FILEVERSION 3,141,5,13
54+
PRODUCTVERSION 3,141,5,13
5555
FILEFLAGSMASK 0x3fL
5656
#ifdef _DEBUG
5757
FILEFLAGS 0x1L
@@ -68,12 +68,12 @@ BEGIN
6868
BEGIN
6969
VALUE "CompanyName", "Software Freedom Conservancy"
7070
VALUE "FileDescription", "Driver library for the IE driver"
71-
VALUE "FileVersion", "3.141.5.12"
71+
VALUE "FileVersion", "3.141.5.13"
7272
VALUE "InternalName", "IEDriver.dll"
7373
VALUE "LegalCopyright", "Copyright (C) 2019"
7474
VALUE "OriginalFilename", "IEDriver.dll"
7575
VALUE "ProductName", "Selenium WebDriver"
76-
VALUE "ProductVersion", "3.141.5.12"
76+
VALUE "ProductVersion", "3.141.5.13"
7777
END
7878
END
7979
BLOCK "VarFileInfo"

cpp/iedriverserver/CHANGELOG

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ available via the project downloads page. Changes in "revision" field indicate
99
private releases checked into the prebuilts directory of the source tree, but
1010
not made generally available on the downloads page.
1111

12+
v3.151.5.13
13+
===========
14+
* Fixed execution of user JavaScript to allow comment at end of line.
15+
1216
v3.151.5.12
1317
===========
1418
* (on behalf of Reinhold Degenfellner) Updated to allow retries for finding

cpp/iedriverserver/IEDriverServer.rc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ END
5050
//
5151

5252
VS_VERSION_INFO VERSIONINFO
53-
FILEVERSION 3,141,5,12
54-
PRODUCTVERSION 3,141,5,12
53+
FILEVERSION 3,141,5,13
54+
PRODUCTVERSION 3,141,5,13
5555
FILEFLAGSMASK 0x3fL
5656
#ifdef _DEBUG
5757
FILEFLAGS 0x1L
@@ -68,12 +68,12 @@ BEGIN
6868
BEGIN
6969
VALUE "CompanyName", "Software Freedom Conservancy"
7070
VALUE "FileDescription", "Command line server for the IE driver"
71-
VALUE "FileVersion", "3.141.5.12"
71+
VALUE "FileVersion", "3.141.5.13"
7272
VALUE "InternalName", "IEDriverServer.exe"
7373
VALUE "LegalCopyright", "Copyright (C) 2019"
7474
VALUE "OriginalFilename", "IEDriverServer.exe"
7575
VALUE "ProductName", "Selenium WebDriver"
76-
VALUE "ProductVersion", "3.141.5.12"
76+
VALUE "ProductVersion", "3.141.5.13"
7777
END
7878
END
7979
BLOCK "VarFileInfo"
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)