[Webkit-unassigned] [Bug 176508] New: WebDriver: ensure we close all windows handles when closing the session

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 7 05:22:03 PDT 2017


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

            Bug ID: 176508
           Summary: WebDriver: ensure we close all windows handles when
                    closing the session
           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: cgarcia at igalia.com
                CC: bburg at apple.com

The spec says that when closing the session all top level browsing contexts should be closed. We are currently checking if we have an active top level browsing context and then we try to close it before trying with the rest. It can happen that we are in an inconsistent state, for example if the current top level browsing context has been closed by JavaScript or another action and the user didn't switch to another one before closing the session. In such case, closing the session will fail with NoSuchwindow and any other window open will not be closed. It's safer to always as for all window handles and close them, which is what the spec says too.

-- 
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/20170907/188074f5/attachment.html>


More information about the webkit-unassigned mailing list