Closed Bug 1936800 Opened 2 months ago Closed 2 months ago

Perma /webdriver/tests/bidi/storage/delete_cookies/partition.py | test_partition_context_iframe[cross_origin] - AssertionError when Gecko 135 merges to beta on 2025-01-06

Categories

(Remote Protocol :: WebDriver BiDi, defect, P2)

defect
Points:
1

Tracking

(firefox-esr115 unaffected, firefox-esr128 unaffected, firefox133 unaffected, firefox134 unaffected, firefox135+ verified)

VERIFIED FIXED
135 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr128 --- unaffected
firefox133 --- unaffected
firefox134 --- unaffected
firefox135 + verified

People

(Reporter: SerbanS, Assigned: Sasha)

References

(Regression)

Details

(Keywords: regression, Whiteboard: [webdriver:m14])

Attachments

(1 file)

Central-as-beta-simulation

How to run these simulations

Failure log

[task 2024-12-12T12:57:59.310Z] 12:57:59     INFO - TEST-PASS | /webdriver/tests/bidi/storage/delete_cookies/partition.py | test_partition_context_iframe[same_origin] 
[task 2024-12-12T12:57:59.310Z] 12:57:59     INFO - TEST-UNEXPECTED-FAIL | /webdriver/tests/bidi/storage/delete_cookies/partition.py | test_partition_context_iframe[cross_origin] - AssertionError
[task 2024-12-12T12:57:59.310Z] 12:57:59     INFO - bidi_session = <webdriver.bidi.client.BidiSession object at 0x70382a286e30>
[task 2024-12-12T12:57:59.310Z] 12:57:59     INFO - new_tab = {'context': '6cfaabc0-a53b-45e7-8938-23682595ea5e'}
[task 2024-12-12T12:57:59.310Z] 12:57:59     INFO - inline = <function inline.<locals>.inline at 0x70382a23b880>
[task 2024-12-12T12:57:59.310Z] 12:57:59     INFO - domain_value = <function domain_value.<locals>.domain_value at 0x70382a2983a0>
[task 2024-12-12T12:57:59.310Z] 12:57:59     INFO - domain = 'alt'
[task 2024-12-12T12:57:59.310Z] 12:57:59     INFO - set_cookie = <function set_cookie.<locals>.set_cookie at 0x70382a2980d0>
[task 2024-12-12T12:57:59.310Z] 12:57:59     INFO - 
[task 2024-12-12T12:57:59.310Z] 12:57:59     INFO -     @pytest.mark.parametrize("domain", ["", "alt"], ids=["same_origin", "cross_origin"])
[task 2024-12-12T12:57:59.310Z] 12:57:59     INFO -     async def test_partition_context_iframe(
[task 2024-12-12T12:57:59.310Z] 12:57:59     INFO -         bidi_session, new_tab, inline, domain_value, domain, set_cookie
[task 2024-12-12T12:57:59.310Z] 12:57:59     INFO -     ):
[task 2024-12-12T12:57:59.310Z] 12:57:59     INFO -         iframe_url = inline("<div id='in-iframe'>foo</div>", domain=domain)
[task 2024-12-12T12:57:59.310Z] 12:57:59     INFO -         page_url = inline(f"<iframe src='{iframe_url}'></iframe>")
[task 2024-12-12T12:57:59.310Z] 12:57:59     INFO -         await bidi_session.browsing_context.navigate(
[task 2024-12-12T12:57:59.310Z] 12:57:59     INFO -             context=new_tab["context"], url=page_url, wait="complete"
[task 2024-12-12T12:57:59.310Z] 12:57:59     INFO -         )
[task 2024-12-12T12:57:59.310Z] 12:57:59     INFO -     
[task 2024-12-12T12:57:59.310Z] 12:57:59     INFO -         contexts = await bidi_session.browsing_context.get_tree(root=new_tab["context"])
[task 2024-12-12T12:57:59.310Z] 12:57:59     INFO -         iframe_context = contexts[0]["children"][0]
[task 2024-12-12T12:57:59.310Z] 12:57:59     INFO -     
[task 2024-12-12T12:57:59.310Z] 12:57:59     INFO -         cookie_name = "foo"
[task 2024-12-12T12:57:59.310Z] 12:57:59     INFO -         cookie_value = "bar"
[task 2024-12-12T12:57:59.310Z] 12:57:59     INFO -         frame_partition = BrowsingContextPartitionDescriptor(iframe_context["context"])
[task 2024-12-12T12:57:59.310Z] 12:57:59     INFO -         await set_cookie(
[task 2024-12-12T12:57:59.310Z] 12:57:59     INFO -             cookie=create_cookie(
[task 2024-12-12T12:57:59.310Z] 12:57:59     INFO -                 domain=domain_value(domain),
[task 2024-12-12T12:57:59.310Z] 12:57:59     INFO -                 name=cookie_name,
[task 2024-12-12T12:57:59.310Z] 12:57:59     INFO -                 value=NetworkStringValue(cookie_value),
[task 2024-12-12T12:57:59.311Z] 12:57:59     INFO -             ),
[task 2024-12-12T12:57:59.311Z] 12:57:59     INFO -             partition=frame_partition,
[task 2024-12-12T12:57:59.311Z] 12:57:59     INFO -         )
[task 2024-12-12T12:57:59.311Z] 12:57:59     INFO -     
[task 2024-12-12T12:57:59.311Z] 12:57:59     INFO -         result = await bidi_session.storage.delete_cookies(partition=frame_partition)
[task 2024-12-12T12:57:59.311Z] 12:57:59     INFO -         await assert_partition_key(bidi_session, actual=result["partitionKey"], context=iframe_context["context"])
[task 2024-12-12T12:57:59.311Z] 12:57:59     INFO -     
[task 2024-12-12T12:57:59.311Z] 12:57:59     INFO - >       await assert_cookies_are_not_present(bidi_session, frame_partition)
[task 2024-12-12T12:57:59.311Z] 12:57:59     INFO - 
[task 2024-12-12T12:57:59.311Z] 12:57:59     INFO - bidi_session = <webdriver.bidi.client.BidiSession object at 0x70382a286e30>
[task 2024-12-12T12:57:59.311Z] 12:57:59     INFO - contexts   = [{'children': [{'children': [],
[task 2024-12-12T12:57:59.311Z] 12:57:59     INFO -                 'context': '40802189313',
[task 2024-12-12T12:57:59.311Z] 12:57:59     INFO -                 'originalOpener': None,
[task 2024-12-12T12:57:59.311Z] 12:57:59     INFO -                 'url': 'https://not-web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0A%3Cdiv+id%3D%27in-iframe%27%3Efoo%3C%2Fdiv%3E&mime=text%2Fhtml&charset=UTF-8',
[task 2024-12-12T12:57:59.311Z] 12:57:59     INFO -                 'userContext': 'default'}],
[task 2024-12-12T12:57:59.311Z] 12:57:59     INFO -   'context': '6cfaabc0-a53b-45e7-8938-23682595ea5e',
[task 2024-12-12T12:57:59.311Z] 12:57:59     INFO -   'originalOpener': None,
[task 2024-12-12T12:57:59.311Z] 12:57:59     INFO -   'parent': None,
[task 2024-12-12T12:57:59.311Z] 12:57:59     INFO -   'url': 'https://web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0A%3Ciframe+src%3D%27https%3A%2F%2Fnot-web-platform.test%3A8443%2Fwebdriver%2Ftests%2Fsupport%2Finline.py%3Fdoc%3D%253C%2521doctype%2Bhtml%253E%250A%253Cmeta%2Bcharset%253DUTF-8%253E%250A%253Cdiv%2Bid%253D%2527in-iframe%2527%253Efoo%253C%252Fdiv%253E%26mime%3Dtext%252Fhtml%26charset%3DUTF-8%27%3E%3C%2Fiframe%3E&mime=text%2Fhtml&charset=UTF-8',
[task 2024-12-12T12:57:59.311Z] 12:57:59     INFO -   'userContext': 'default'}]
[task 2024-12-12T12:57:59.311Z] 12:57:59     INFO - cookie_name = 'foo'
[task 2024-12-12T12:57:59.311Z] 12:57:59     INFO - cookie_value = 'bar'
[task 2024-12-12T12:57:59.311Z] 12:57:59     INFO - domain     = 'alt'
[task 2024-12-12T12:57:59.311Z] 12:57:59     INFO - domain_value = <function domain_value.<locals>.domain_value at 0x70382a2983a0>
[task 2024-12-12T12:57:59.311Z] 12:57:59     INFO - frame_partition = {'context': '40802189313', 'type': 'context'}
[task 2024-12-12T12:57:59.311Z] 12:57:59     INFO - iframe_context = {'children': [],
[task 2024-12-12T12:57:59.311Z] 12:57:59     INFO -  'context': '40802189313',
[task 2024-12-12T12:57:59.311Z] 12:57:59     INFO -  'originalOpener': None,
[task 2024-12-12T12:57:59.311Z] 12:57:59     INFO -  'url': 'https://not-web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0A%3Cdiv+id%3D%27in-iframe%27%3Efoo%3C%2Fdiv%3E&mime=text%2Fhtml&charset=UTF-8',
[task 2024-12-12T12:57:59.312Z] 12:57:59     INFO -  'userContext': 'default'}
[task 2024-12-12T12:57:59.312Z] 12:57:59     INFO - iframe_url = 'https://not-web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0A%3Cdiv+id%3D%27in-iframe%27%3Efoo%3C%2Fdiv%3E&mime=text%2Fhtml&charset=UTF-8'
[task 2024-12-12T12:57:59.312Z] 12:57:59     INFO - inline     = <function inline.<locals>.inline at 0x70382a23b880>
[task 2024-12-12T12:57:59.312Z] 12:57:59     INFO - new_tab    = {'context': '6cfaabc0-a53b-45e7-8938-23682595ea5e'}
[task 2024-12-12T12:57:59.312Z] 12:57:59     INFO - page_url   = 'https://web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0A%3Ciframe+src%3D%27https%3A%2F%2Fnot-web-platform.test%3A8443%2Fwebdriver%2Ftests%2Fsupport%2Finline.py%3Fdoc%3D%253C%2521doctype%2Bhtml%253E%250A%253Cmeta%2Bcharset%253DUTF-8%253E%250A%253Cdiv%2Bid%253D%2527in-iframe%2527%253Efoo%253C%252Fdiv%253E%26mime%3Dtext%252Fhtml%26charset%3DUTF-8%27%3E%3C%2Fiframe%3E&mime=text%2Fhtml&charset=UTF-8'
[task 2024-12-12T12:57:59.312Z] 12:57:59     INFO - result     = {'partitionKey': {'sourceOrigin': 'https://not-web-platform.test:8443',
[task 2024-12-12T12:57:59.312Z] 12:57:59     INFO -                   'userContext': 'default'}}
[task 2024-12-12T12:57:59.312Z] 12:57:59     INFO - set_cookie = <function set_cookie.<locals>.set_cookie at 0x70382a2980d0>
[task 2024-12-12T12:57:59.312Z] 12:57:59     INFO - 
[task 2024-12-12T12:57:59.312Z] 12:57:59     INFO - tests/web-platform/tests/webdriver/tests/bidi/storage/delete_cookies/partition.py:137: 
[task 2024-12-12T12:57:59.312Z] 12:57:59     INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[task 2024-12-12T12:57:59.312Z] 12:57:59     INFO - 
[task 2024-12-12T12:57:59.312Z] 12:57:59     INFO - bidi_session = <webdriver.bidi.client.BidiSession object at 0x70382a286e30>
[task 2024-12-12T12:57:59.312Z] 12:57:59     INFO - filter = {'type': 'context', 'context': '40802189313'}, partition = None
[task 2024-12-12T12:57:59.312Z] 12:57:59     INFO - 
[task 2024-12-12T12:57:59.312Z] 12:57:59     INFO -     async def assert_cookies_are_not_present(bidi_session, filter=None, partition=None):
[task 2024-12-12T12:57:59.312Z] 12:57:59     INFO -         result = await bidi_session.storage.get_cookies(filter=filter, partition=partition)
[task 2024-12-12T12:57:59.312Z] 12:57:59     INFO - >       assert result["cookies"] == []
[task 2024-12-12T12:57:59.312Z] 12:57:59     INFO - E       AssertionError
[task 2024-12-12T12:57:59.312Z] 12:57:59     INFO - 
[task 2024-12-12T12:57:59.312Z] 12:57:59     INFO - bidi_session = <webdriver.bidi.client.BidiSession object at 0x70382a286e30>
[task 2024-12-12T12:57:59.312Z] 12:57:59     INFO - filter     = {'context': '40802189313', 'type': 'context'}
[task 2024-12-12T12:57:59.312Z] 12:57:59     INFO - partition  = None
[task 2024-12-12T12:57:59.312Z] 12:57:59     INFO - result     = {'cookies': [{'domain': 'not-web-platform.test',
[task 2024-12-12T12:57:59.312Z] 12:57:59     INFO -               'httpOnly': False,
[task 2024-12-12T12:57:59.312Z] 12:57:59     INFO -               'name': 'foo',
[task 2024-12-12T12:57:59.312Z] 12:57:59     INFO -               'path': '/',
[task 2024-12-12T12:57:59.313Z] 12:57:59     INFO -               'sameSite': 'none',
[task 2024-12-12T12:57:59.313Z] 12:57:59     INFO -               'secure': True,
[task 2024-12-12T12:57:59.313Z] 12:57:59     INFO -               'size': 6,
[task 2024-12-12T12:57:59.313Z] 12:57:59     INFO -               'value': {'type': 'string', 'value': 'bar'}}],
[task 2024-12-12T12:57:59.313Z] 12:57:59     INFO -  'partitionKey': {}}
[task 2024-12-12T12:57:59.313Z] 12:57:59     INFO - 
[task 2024-12-12T12:57:59.313Z] 12:57:59     INFO - tests/web-platform/tests/webdriver/tests/bidi/storage/delete_cookies/__init__.py:3: AssertionError
[task 2024-12-12T12:57:59.314Z] 12:57:59     INFO - ....
[task 2024-12-12T12:57:59.314Z] 12:57:59     INFO - TEST-OK | /webdriver/tests/bidi/storage/delete_cookies/partition.py | took 12305ms
Flags: needinfo?(aborovova)
Attachment #9443218 - Flags: approval-mozilla-beta?
Assignee: nobody → aborovova
Status: NEW → ASSIGNED
Flags: needinfo?(aborovova)
Attachment #9443218 - Flags: approval-mozilla-beta?
Pushed by aborovova@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0ba4c7d9c438 Disable "storage.deleteCookies" partition test for iframe beyond Nightly. r=webdriver-reviewers,whimboo

Patch is working as seen in today's central as beta simulation

Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 135 Branch

This is verified fixed as seen in today's central as beta simulation.

Status: RESOLVED → VERIFIED
Points: --- → 1
Priority: -- → P2
Whiteboard: [webdriver:m14]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: