mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-29 08:11:13 +00:00
693af180dd
Cookies are typically deleted by setting their expiry time to an ancient time stamp (i.e. this is how WebDriver is required to delete cookies). Previously, we would update the cookie in the cookie jar, which would mark the cookie as dirty. We would then purge expired cookies from the jar's transient storage, which removed the cookie from the dirty list. If the cookie was also in the persisted storage, it would never become expired there as it was no longer in the dirty list when the timer for synchronization fired. Now, we don't remove any cookies from the transient dirty list when we purge expired cookies. We hold onto the dirty cookie until sync time, where we now update the cookie in the persisted storage *before* we delete expired cookies. |
||
---|---|---|
.. | ||
Libraries | ||
Services | ||
Utilities |