[Webkit-unassigned] [Bug 217206] New: [WebDriver] Some commands check only for the current top level browsing context instead of the current browsing context

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Oct 1 23:02:50 PDT 2020


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

            Bug ID: 217206
           Summary: [WebDriver] Some commands check only for the current
                    top level browsing context instead of the current
                    browsing context
           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

After the latest update, a number of browsing context tests are failing:

imported/w3c/webdriver/tests/execute_async_script/execute_async.py::test_no_browsing_context
imported/w3c/webdriver/tests/get_element_tag_name/get.py::test_no_browsing_context
imported/w3c/webdriver/tests/switch_to_window/switch.py::test_no_browsing_context
imported/w3c/webdriver/tests/find_elements/find.py::test_no_browsing_context
imported/w3c/webdriver/tests/execute_script/execute.py::test_no_browsing_context
imported/w3c/webdriver/tests/get_element_rect/get.py::test_no_browsing_context
imported/w3c/webdriver/tests/delete_cookie/delete.py::test_no_browsing_context
imported/w3c/webdriver/tests/switch_to_frame/switch.py::test_no_browsing_context[0]
imported/w3c/webdriver/tests/switch_to_frame/switch.py::test_no_browsing_context[id2]
imported/w3c/webdriver/tests/get_element_property/get.py::test_no_browsing_context
imported/w3c/webdriver/tests/get_page_source/source.py::test_no_browsing_context
imported/w3c/webdriver/tests/find_element_from_element/find.py::test_no_browsing_context
imported/w3c/webdriver/tests/element_click/click.py::test_no_browsing_context
imported/w3c/webdriver/tests/close_window/close.py::test_no_browsing_context
imported/w3c/webdriver/tests/element_send_keys/send_keys.py::test_no_browsing_context
imported/w3c/webdriver/tests/add_cookie/add.py::test_no_browsing_context
imported/w3c/webdriver/tests/delete_all_cookies/delete.py::test_no_browsing_context
imported/w3c/webdriver/tests/get_element_text/get.py::test_no_browsing_context
imported/w3c/webdriver/tests/get_element_attribute/get.py::test_no_browsing_context
imported/w3c/webdriver/tests/is_element_enabled/enabled.py::test_no_browsing_context
imported/w3c/webdriver/tests/get_named_cookie/get.py::test_no_browsing_context
imported/w3c/webdriver/tests/find_element/find.py::test_no_browsing_context
imported/w3c/webdriver/tests/perform_actions/none.py::test_no_browsing_context
imported/w3c/webdriver/tests/perform_actions/key.py::test_no_browsing_context
imported/w3c/webdriver/tests/perform_actions/pointer.py::test_no_browsing_context
imported/w3c/webdriver/tests/get_element_css_value/get.py::test_no_browsing_context
imported/w3c/webdriver/tests/get_active_element/get.py::test_no_browsing_context
imported/w3c/webdriver/tests/find_elements_from_element/find.py::test_no_browsing_context
imported/w3c/webdriver/tests/is_element_selected/selected.py::test_no_browsing_context
imported/w3c/webdriver/tests/element_clear/clear.py::test_no_browsing_context

These tests have in common that they usually go in pair with a "test_no_top_browsing_context",
both raising "no such window".

It was updated in WPT from this mozilla bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1493108

In fact, in the spec[1], these commands check for the current browsing context while the current code in Session.cpp usually checks only for the current *top level* context and use m_currentBrowsingContext only in the context of frame switching, etc.


[1] https://www.w3.org/TR/2020/WD-webdriver2-20200610/#get-element-rect

-- 
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/20201002/d8d789db/attachment-0001.htm>


More information about the webkit-unassigned mailing list