mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-28 14:02:51 +00:00
This ensures we cannot set or get cookies on non-HTTP(S) origins. Since this would prevent our ability to test cookies during LibWeb tests, this also adds an internals API to allow cookie access on file:// URLs.
29 lines
1.2 KiB
Text
29 lines
1.2 KiB
Text
Cookie averse test: ""
|
|
Basic test: "cookie=value"
|
|
Multiple cookies: "cookie1=value1; cookie2=value2; cookie3=value3"
|
|
Nameless cookie: "value"
|
|
Valueless cookie: "cookie="
|
|
Nameless and valueless cookie: ""
|
|
Invalid control character: ""
|
|
Non-ASCII domain: ""
|
|
Default path: "cookie1=value; cookie2=value"
|
|
Secure cookie prefix: ""
|
|
Host cookie prefix: ""
|
|
Large value: "cookie=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
|
|
Overly large value: ""
|
|
HTTP only: ""
|
|
Public suffix: ""
|
|
SameSite=Lax: "cookie=value"
|
|
SameSite=Strict: "cookie=value"
|
|
SameSite=None: ""
|
|
Max-Age (before expiration): "cookie-max-age1=value; cookie-max-age2=value"
|
|
Max-Age (after expiration): "cookie-max-age2=value"
|
|
Max-Age in past: ""
|
|
Expires (before expiration): "cookie-expires=value"
|
|
Expires (after expiration): ""
|
|
Expires in past: ""
|
|
Invalid expiry (date does not exist): "cookie=value"
|
|
Invalid expiry (missing time): "cookie=value"
|
|
Invalid expiry (missing day): "cookie=value"
|
|
Invalid expiry (missing month): "cookie=value"
|
|
Invalid expiry (missing year): "cookie=value"
|