forked from mirrors/gecko-dev
https://w3c.github.io/webdriver/#dfn-get-current-url says: > For each cookie in all associated cookies of session's > current browsing context's active document ... However, the cookie implementations in driver.sys.mjs called _getCurrentURL which returned the URL of the _top level browsing context_ as specified in https://w3c.github.io/webdriver/#dfn-get-current-url As a consequence, the cookie tests that set and deleted cookies inside an iframe used the top level path for deleting cookies instead of the path of the iframe, so they failed to find any cookies applicable to that path. For example running cookies/encoding/charset.html would set cookies by calling `fetch('/cookies/resources/cookie.py?...')` then it would try to delete cookies by calling getAndExpireCookiesForDefaultPathTest which opened an iframe to /cookies/resources/echo-cookie.html This iframe would call `setTestContextUsingRootWindow()` then call `await test_driver.delete_all_cookies();` - but this call attempted to delete cookies for the top level browing context's path - /cookies/encoding/ Differential Revision: https://phabricator.services.mozilla.com/D211434 |
||
|---|---|---|
| .. | ||
| awsy | ||
| condprofile | ||
| config | ||
| crashtest | ||
| docs | ||
| extensions | ||
| firefox-ui | ||
| geckodriver | ||
| gtest | ||
| jsshell | ||
| marionette | ||
| mochitest | ||
| modules | ||
| mozbase | ||
| mozharness | ||
| perfdocs | ||
| performance | ||
| profiles | ||
| raptor | ||
| runtimes | ||
| specialpowers | ||
| talos | ||
| test | ||
| tools | ||
| tps | ||
| web-platform | ||
| webcompat | ||
| webdriver | ||
| xpcshell | ||
| addtest.py | ||
| cppunittest.toml | ||
| mach_commands.py | ||
| moz.build | ||
| parse_build_tests_ccov.py | ||
| README.txt | ||
| remotecppunittests.py | ||
| runcppunittests.py | ||
| skipfails.py | ||
| testinfo.py | ||
| testsuite-targets.mk | ||
Common testing tools for mozilla codebase projects, test suite definitions for automated test runs, tests that don't fit anywhere else, and other fun stuff