[ChromeDriver] Exit Fullscreen to prepare next tests

The Fullscreen tests leave the window in Fullscreen, which can prevent
later tests from setting window size to expected value. We duplicated
the window size change at the start of each Fullscreen test.

Change-Id: I8a6ab1342cf82e9d19e3ab77eced9c86f81d3a6e
diff --git a/jar/tests-selenium.jar b/jar/tests-selenium.jar
index c224624..5c21370 100644
--- a/jar/tests-selenium.jar
+++ b/jar/tests-selenium.jar
Binary files differ
diff --git a/seleniumHQ.patch b/seleniumHQ.patch
index 2e433a1..893c6f4 100644
--- a/seleniumHQ.patch
+++ b/seleniumHQ.patch
@@ -88,7 +88,7 @@
  
    @Test
 diff --git a/java/client/test/org/openqa/selenium/WindowTest.java b/java/client/test/org/openqa/selenium/WindowTest.java
-index 574a794d52..a5c0e2674f 100644
+index 574a794d52..06fb8bce1f 100644
 --- a/java/client/test/org/openqa/selenium/WindowTest.java
 +++ b/java/client/test/org/openqa/selenium/WindowTest.java
 @@ -107,7 +107,7 @@ public void testSetsThePositionOfTheCurrentWindow() {
@@ -127,16 +127,18 @@
  
      driver.switchTo().frame("iframe1-name");
      enlargeBy(WebDriver.Window::maximize);
-@@ -170,7 +170,7 @@ public void canFullscreenTheWindow() {
+@@ -170,8 +170,9 @@ public void canFullscreenTheWindow() {
      // though others aren't defined in org.openqa.selenium.Platform).
      assumeFalse(TestUtilities.getEffectivePlatform(driver).is(ANDROID));
  
 -    changeSizeTo(new Dimension(640, 323));
 +    changeSizeTo(new Dimension(640, 398));
      enlargeBy(WebDriver.Window::fullscreen);
++    changeSizeTo(new Dimension(640, 398));
    }
  
-@@ -185,7 +185,7 @@ public void canFullscreenTheWindowFromFrame() {
+   @SwitchToTopAfterTest
+@@ -185,10 +186,11 @@ public void canFullscreenTheWindowFromFrame() {
      assumeFalse(TestUtilities.getEffectivePlatform(driver).is(ANDROID));
  
      driver.get(pages.framesetPage);
@@ -145,7 +147,11 @@
  
      driver.switchTo().frame("fourth");
      enlargeBy(WebDriver.Window::fullscreen);
-@@ -202,7 +202,7 @@ public void canFullscreenTheWindowFromIframe() {
++    changeSizeTo(new Dimension(640, 399));
+   }
+ 
+   @SwitchToTopAfterTest
+@@ -202,10 +204,11 @@ public void canFullscreenTheWindowFromIframe() {
      assumeFalse(TestUtilities.getEffectivePlatform(driver).is(ANDROID));
  
      driver.get(pages.iframePage);
@@ -154,6 +160,10 @@
  
      driver.switchTo().frame("iframe1-name");
      enlargeBy(WebDriver.Window::fullscreen);
++    changeSizeTo(new Dimension(640, 400));
+   }
+ 
+   private void changeSizeBy(int deltaX, int deltaY) {
 diff --git a/java/client/test/org/openqa/selenium/chrome/ChromeOptionsFunctionalTest.java b/java/client/test/org/openqa/selenium/chrome/ChromeOptionsFunctionalTest.java
 index 232718f92b..3df6752a3a 100644
 --- a/java/client/test/org/openqa/selenium/chrome/ChromeOptionsFunctionalTest.java