module Capybara::Selenium::Driver::MarionetteDriver

def resize_window_to(handle, width, height)

def resize_window_to(handle, width, height)
  within_given_window(handle) do
    # Don't set the size if already set - See https://github.com/mozilla/geckodriver/issues/643
    if window_size(handle) == [width, height]
      {}
    else
      super
    end
  end
end