Commit Graph

3 Commits

Author SHA1 Message Date
Jelle Raaijmakers
f326f087fa Tests/LibWeb: Prevent inadvertent cookie expiration
We were testing cookie expiry by setting moving a Date 1000ms to the
future, and then calling `.toUTCString()` on it. However, that method
truncates milliseconds and could cause the actual expiry to be almost
immediately - that makes this test flaky, especially on slower machines.

Fix the issue by using a larger expiry.
2026-03-20 19:31:23 +01:00
Shannon Booth
d6d80e5d52 LibWeb: Load cookies test from HTTP server
Allowing us to remove the internals hook.
2026-02-21 23:00:57 +01:00
Shannon Booth
5bbd3c9d31 Tests/LibWeb: Split cookies test into two
To allow for a future change where one test will be loaded over
HTTP (allowing us to remove the internals hook), and another test
which verifies cookies do not work for file URLs.
2026-02-21 23:00:57 +01:00