| Summary: | WebDriver: Set Cookie endpoint does not correctly set subdomain cookies | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Devin Rousso <hi> | ||||
| Component: | WebDriver | Assignee: | Devin Rousso <hi> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | bburg, commit-queue, hi, joepeck, webkit-bug-importer | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | WebKit Nightly Build | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Attachments: |
|
||||||
Created attachment 367336 [details]
Patch
Comment on attachment 367336 [details]
Patch
r=me
Comment on attachment 367336 [details] Patch Clearing flags on attachment: 367336 Committed r244281: <https://trac.webkit.org/changeset/244281> All reviewed patches have been landed. Closing bug. |
```py from selenium import webdriver driver = webdriver.Safari(executable_path='$build/Release/safaridriver') driver.get("https://apple.com") driver.add_cookie({ 'name': 'testfromotherdomain', 'value': '42', 'domain': 'school.apple.com', }) driver.get("https://school.apple.com") driver.add_cookie({ 'name': 'testfromsamedomain', 'value': '42', 'domain': 'school.apple.com', }) ``` After running the above, stop the active session and inspect <https://school.apple.com>. There should be two cookies ("testfromotherdomain" and "testfromsamedomain"), but there's only one ("testfromsamedomain").