[Webkit-unassigned] [Bug 196872] New: Web Driver: Set Cookie endpoint does not correctly set subdomain cookies

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Apr 12 11:27:58 PDT 2019


https://bugs.webkit.org/show_bug.cgi?id=196872

            Bug ID: 196872
           Summary: Web Driver: Set Cookie endpoint does not correctly set
                    subdomain cookies
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebDriver
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: drousso at apple.com
                CC: bburg at apple.com

```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").

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190412/0dbbf0f0/attachment.html>


More information about the webkit-unassigned mailing list