Skip to content

TestDriver bug in /cookies/partitioned-cookies/partitioned-cookies-samesite-attribute.https.html #53320

@bvandersloot-mozilla

Description

@bvandersloot-mozilla

In particular the embedded test. There are a couple issues that make it not work in non-chrome browsers.

First, creating the iframe and appending it on document.body.onload is racy. fetch_tests_from_window should be called inline to prevent this. We should be able to just define the iframe inline above the script tag in the main document.

Second, test_driver.set_test_context is supposed to update test_driver's context- in this case to window.top. That means that subsequent calls to test_driver.get_all_cookies which "get details for all cookies in the current context" should get cookies from the perspective of the top document, no? That seems to be how Safari implements it as well based upon their failure.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions