Skip to content

Commit

Permalink
fix crash in IEDriverServer
Browse files Browse the repository at this point in the history
it seems IUIAutomationElement can return with success despite not returning an Array

issue: #6976

Signed-off-by: Jim Evans <james.h.evans.jr@gmail.com>
  • Loading branch information
reinsch82 authored and jimevans committed Mar 1, 2019
1 parent 7fdf318 commit 2a91fe5
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 8 deletions.
6 changes: 6 additions & 0 deletions cpp/iedriver/CommandHandlers/SendKeysCommandHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,12 @@ bool SendKeysCommandHandler::GetFileSelectionDialogCandidates(std::vector<HWND>
LOGHR(WARN, hr) << "Process of finding child dialogs of parent window failed";
continue;
}

if (!current_dialog_candidates) {
LOGHR(WARN, hr) << "Found no dialogs as children of parent window (null candidates)";
continue;
}

hr = current_dialog_candidates->get_Length(&window_array_length);
if (FAILED(hr)) {
LOGHR(WARN, hr) << "Could not get length of list of child dialogs of parent window";
Expand Down
8 changes: 4 additions & 4 deletions cpp/iedriver/IEDriver.rc
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ END
//

VS_VERSION_INFO VERSIONINFO
FILEVERSION 3,141,5,10
PRODUCTVERSION 3,141,5,10
FILEVERSION 3,141,5,11
PRODUCTVERSION 3,141,5,11
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
Expand All @@ -68,12 +68,12 @@ BEGIN
BEGIN
VALUE "CompanyName", "Software Freedom Conservancy"
VALUE "FileDescription", "Driver library for the IE driver"
VALUE "FileVersion", "3.141.5.10"
VALUE "FileVersion", "3.141.5.11"
VALUE "InternalName", "IEDriver.dll"
VALUE "LegalCopyright", "Copyright (C) 2019"
VALUE "OriginalFilename", "IEDriver.dll"
VALUE "ProductName", "Selenium WebDriver"
VALUE "ProductVersion", "3.141.5.10"
VALUE "ProductVersion", "3.141.5.11"
END
END
BLOCK "VarFileInfo"
Expand Down
5 changes: 5 additions & 0 deletions cpp/iedriverserver/CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ available via the project downloads page. Changes in "revision" field indicate
private releases checked into the prebuilts directory of the source tree, but
not made generally available on the downloads page.

v3.151.5.11
===========
* (on behalf of Reinhold Degenfellner) Fixed crash when attempting to
upload files. Fixes issue #6976.

v3.141.5.10
===========
* (on behalf of Ben Kucera) Updated proxy settings to set proxy bypass
Expand Down
8 changes: 4 additions & 4 deletions cpp/iedriverserver/IEDriverServer.rc
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ END
//

VS_VERSION_INFO VERSIONINFO
FILEVERSION 3,141,5,10
PRODUCTVERSION 3,141,5,10
FILEVERSION 3,141,5,11
PRODUCTVERSION 3,141,5,11
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
Expand All @@ -68,12 +68,12 @@ BEGIN
BEGIN
VALUE "CompanyName", "Software Freedom Conservancy"
VALUE "FileDescription", "Command line server for the IE driver"
VALUE "FileVersion", "3.141.5.10"
VALUE "FileVersion", "3.141.5.11"
VALUE "InternalName", "IEDriverServer.exe"
VALUE "LegalCopyright", "Copyright (C) 2019"
VALUE "OriginalFilename", "IEDriverServer.exe"
VALUE "ProductName", "Selenium WebDriver"
VALUE "ProductVersion", "3.141.5.10"
VALUE "ProductVersion", "3.141.5.11"
END
END
BLOCK "VarFileInfo"
Expand Down
Binary file modified cpp/prebuilt/Win32/Release/IEDriverServer.exe
Binary file not shown.
Binary file modified cpp/prebuilt/x64/Release/IEDriverServer.exe
Binary file not shown.

0 comments on commit 2a91fe5

Please sign in to comment.