Skip to content

Commit

Permalink
Make sure Ruby properly kills Firefox process if silent startup times…
Browse files Browse the repository at this point in the history
… out.

Thanks to birtic for the patch.
Fixes issue 7392.
  • Loading branch information
jarib committed May 28, 2014
1 parent 6a7bb83 commit 1fcb06c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
6 changes: 6 additions & 0 deletions rb/CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2.43.0 (???)
============

* Firefox
- Make sure browser process is properly killed if silent startup hangs (#7392)

2.42.0 (2014-05-23)
===================

Expand Down
9 changes: 8 additions & 1 deletion rb/lib/selenium/webdriver/firefox/binary.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,14 @@ def quit
end

def wait
@process.poll_for_exit(WAIT_TIMEOUT) if @process
return unless @process

begin
@process.poll_for_exit(WAIT_TIMEOUT)
rescue ChildProcess::TimeoutError => e
@process.stop
raise e
end
end

private
Expand Down

0 comments on commit 1fcb06c

Please sign in to comment.