Skip to content

Commit

Permalink
Fixing bug in IE screenshot handling due to Windows hook refactor.
Browse files Browse the repository at this point in the history
  • Loading branch information
jimevans committed Jul 8, 2015
1 parent 5e73475 commit 2051f9a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cpp/iedriver/CommandHandlers/ScreenshotCommandHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,13 @@ class ScreenshotCommandHandler : public IECommandHandler {

HookProcessor hook;
hook.Initialize(hook_settings);

hook.PushData(sizeof(max_image_dimensions), &max_image_dimensions);
browser->SetWidth(max_image_dimensions.right);

// Must re-push data because the resize causes a message to the
// IE window, and reading the data clears the buffer.
hook.PushData(sizeof(max_image_dimensions), &max_image_dimensions);
browser->SetHeight(max_image_dimensions.bottom);

// Capture the window's canvas to a DIB.
Expand Down
4 changes: 4 additions & 0 deletions cpp/iedriverserver/CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ 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.

v2.46.0.8
=========
* Fixed bug in screenshot handling due to Windows hook refactor.

v2.46.0.7
=========
* Fixed cookie delete bug for related domains.
Expand Down
Binary file modified cpp/iedriverserver/IEDriverServer.rc
Binary file not shown.
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 2051f9a

Please sign in to comment.