diff --git a/testing/marionette/harness/marionette_harness/tests/unit/test_window_rect.py b/testing/marionette/harness/marionette_harness/tests/unit/test_window_rect.py index 844b9ec14a5f..e51cc9835635 100644 --- a/testing/marionette/harness/marionette_harness/tests/unit/test_window_rect.py +++ b/testing/marionette/harness/marionette_harness/tests/unit/test_window_rect.py @@ -4,8 +4,11 @@ from __future__ import absolute_import, print_function +import sys + from marionette_driver.errors import InvalidArgumentException from marionette_harness import MarionetteTestCase +from unittest import skipIf class TestWindowRect(MarionetteTestCase): @@ -299,6 +302,17 @@ class TestWindowRect(MarionetteTestCase): self.assertEqual(result_size["width"], expected_size["width"]) self.assertEqual(result_size["height"], expected_size["height"]) + # marionette attempts to exit fullscreen before minimizing the window. + # To do this, it waits on a sizemode event, but that event is sent at + # the beginning of the fullscreen transition. For macOS native + # fullscreen, it's rejected to try to minimize the window during the + # transition, and there is *no* event sent at the end of transition. + # This puts marionette in an impossible position. So for now, we + # skip this test on macOS. Bug 1802192. + @skipIf( + sys.platform.startswith("darwin"), + "Bug 1802192 - macOS fullscreen windows can't be resized.", + ) def test_resize_while_fullscreen(self): self.marionette.fullscreen() expected_size = self.marionette.set_window_rect( diff --git a/testing/web-platform/meta/webdriver/tests/minimize_window/minimize.py.ini b/testing/web-platform/meta/webdriver/tests/minimize_window/minimize.py.ini index 282a56555da9..49ad17781517 100644 --- a/testing/web-platform/meta/webdriver/tests/minimize_window/minimize.py.ini +++ b/testing/web-platform/meta/webdriver/tests/minimize_window/minimize.py.ini @@ -4,3 +4,7 @@ [test_no_top_browsing_context] expected: if (os == "linux") and fission and not debug: [PASS, ERROR] + [test_fully_exit_fullscreen] + bug: 1802192 + expected: + if os == "mac": FAIL diff --git a/testing/web-platform/meta/webdriver/tests/set_window_rect/set.py.ini b/testing/web-platform/meta/webdriver/tests/set_window_rect/set.py.ini index 14b69901ee42..637103fbe7fa 100644 --- a/testing/web-platform/meta/webdriver/tests/set_window_rect/set.py.ini +++ b/testing/web-platform/meta/webdriver/tests/set_window_rect/set.py.ini @@ -14,3 +14,8 @@ [test_y_as_current] expected: if not fission and not swgl and not debug: [PASS, FAIL] + + [test_fully_exit_fullscreen] + bug: 1802192 + expected: + if os == "mac": FAIL