WebDriver: fix typo in EnterFullscreen.js in error-handling code
authorbburg@apple.com <bburg@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 12 Apr 2019 23:45:20 +0000 (23:45 +0000)
committerbburg@apple.com <bburg@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 12 Apr 2019 23:45:20 +0000 (23:45 +0000)
https://bugs.webkit.org/show_bug.cgi?id=196882
<rdar://problem/49867122>

Reviewed by Devin Rousso.

* UIProcess/Automation/atoms/EnterFullscreen.js:
(enterFullscreen):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244236 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit/ChangeLog
Source/WebKit/UIProcess/Automation/atoms/EnterFullscreen.js

index 342ef5d..641473e 100644 (file)
@@ -1,3 +1,14 @@
+2019-04-12  Brian Burg  <bburg@apple.com>
+
+        WebDriver: fix typo in EnterFullscreen.js in error-handling code
+        https://bugs.webkit.org/show_bug.cgi?id=196882
+        <rdar://problem/49867122>
+
+        Reviewed by Devin Rousso.
+
+        * UIProcess/Automation/atoms/EnterFullscreen.js:
+        (enterFullscreen):
+
 2019-04-12  Ross Kirsling  <ross.kirsling@sony.com>
 
         Unreviewed fix for non-unified build.
index 57451c6..2ed1da7 100644 (file)
@@ -56,7 +56,7 @@ function enterFullscreen() {
 
         document.removeEventListener("webkitfullscreenchange", fullscreenChangeListener);
         document.documentElement.removeEventListener("webkitfullscreenerror", fullscreenErrorListener);
-        callback(document.webkitIsFullscreen);
+        callback(!!document.webkitIsFullScreen);
     };
 
     // The document fires change events, but the fullscreen element fires error events.