Bug 205994 - Test imported/w3c/webdriver/tests/switch_to_frame/cross_origin.py::test_nested_cross_origin_iframe fails
Summary: Test imported/w3c/webdriver/tests/switch_to_frame/cross_origin.py::test_neste...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebDriver (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-09 02:29 PST by Carlos Garcia Campos
Modified: 2020-01-09 10:18 PST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carlos Garcia Campos 2020-01-09 02:29:09 PST
The test actually works when running it with wpt, but we don't support the subdomains configuration.

_______________________ test_nested_cross_origin_iframe ________________________

session = <Session d5ffbfd7-664c-4646-aa76-8b8e5dc7f58f>
server_config = {'browser_host': 'localhost', 'doc_root': '/home/slave/webkitgtk/gtk-linux-64-release-tests/build/LayoutTests/imported/w3c/web-platform-tests', 'domains': {'': {'': 'localhost'}, 'alt': {'': '127.0.0.1'}}, 'ports': {'http': ['8802']}}

    def test_nested_cross_origin_iframe(session, server_config):
>       frame2 = iframe("", domain="alt", subdomain="www")

server_config = {'browser_host': 'localhost', 'doc_root': '/home/slave/webkitgtk/gtk-linux-64-release-tests/build/LayoutTests/imported/w3c/web-platform-tests', 'domains': {'': {'': 'localhost'}, 'alt': {'': '127.0.0.1'}}, 'ports': {'http': ['8802']}}
session    = <Session d5ffbfd7-664c-4646-aa76-8b8e5dc7f58f>

WebDriverTests/imported/w3c/webdriver/tests/switch_to_frame/cross_origin.py:42: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
WebDriverTests/imported/w3c/webdriver/tests/support/inline.py:67: in iframe
    return "<iframe src='{}'></iframe>".format(inline(src, **kwargs))
WebDriverTests/imported/w3c/webdriver/tests/support/inline.py:62: in inline
    **kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

path = '/webdriver/tests/support/inline.py', protocol = 'http', domain = 'alt'
subdomain = 'www'
query = 'doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0A&charset=UTF-8&mime=text%2Fhtml'
fragment = ''

    def inner(path, protocol="http", domain="", subdomain="", query="", fragment=""):
>       domain = server_config["domains"][domain][subdomain]
E       KeyError: 'www'

domain     = 'alt'
fragment   = ''
path       = '/webdriver/tests/support/inline.py'
protocol   = 'http'
query      = 'doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0A&charset=UTF-8&mime=text%2Fhtml'
server_config = {'browser_host': 'localhost', 'doc_root': '/home/slave/webkitgtk/gtk-linux-64-release-tests/build/LayoutTests/imported/w3c/web-platform-tests', 'domains': {'': {'': 'localhost'}, 'alt': {'': '127.0.0.1'}}, 'ports': {'http': ['8802']}}
subdomain  = 'www'