[Webkit-unassigned] [Bug 279100] New: [WebDriver][WPE] support setWindowRect capability

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 3 18:54:09 PDT 2024


https://bugs.webkit.org/show_bug.cgi?id=279100

            Bug ID: 279100
           Summary: [WebDriver][WPE] support setWindowRect capability
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebDriver
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: lmoura at igalia.com
                CC: bburg at apple.com

Spec: https://w3c.github.io/webdriver/#dfn-window-dimensioning-positioning

Currently, it's hard-coded as not supported in Source/WebDriver/wpe/WebDriverServiceWPE.cpp::WebDriverService::platformCapabilities()

This affects tests like:

* imported/w3c/webdriver/tests/classic/fullscreen_window/fullscreen.py::test_fullscreen_from_normal_window
* imported/w3c/webdriver/tests/classic/fullscreen_window/fullscreen.py::test_fullscreen_from_maximized_window

As the teardown of the `session` fixture in WebDriverTests/imported/w3c/webdriver/tests/support/helpers.py::_restore_window_state(session) checks for setWindowRect before resetting the window size:

    def _restore_window_state(session):
        """Reset window to an acceptable size.

        This also includes bringing it out of maximized, minimized,
        or fullscreened state.
        """
        if session.capabilities.get("setWindowRect"):
                ...
                session.window.size = defaults.WINDOW_SIZE

Regarding these tests, the actual "set fullscreen" operation is working, as they pass in isolation.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240904/b7901459/attachment.htm>


More information about the webkit-unassigned mailing list