[Webkit-unassigned] [Bug 230928] New: WebExtension cookie storage expiration date is of by 30 years
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Sep 28 18:13:57 PDT 2021
https://bugs.webkit.org/show_bug.cgi?id=230928
Bug ID: 230928
Summary: WebExtension cookie storage expiration date is of by
30 years
Product: WebKit
Version: Other
Hardware: iPhone / iPad
OS: Other
Status: NEW
Severity: Critical
Priority: P2
Component: WebKit Misc.
Assignee: webkit-unassigned at lists.webkit.org
Reporter: maikudou at gmail.com
Steps to reproduce
1. Create a web extension for iOS 15
2. In context of WebExtension's background page set a cookie for a domain:
window.browser.cookies.set({
name: 'mycookie',
value: '123',
url: "https://www.example.com",
domain: ".example.com",
expirationDate: Date.now()/1000 + 60*60
})
Expected outcome:
A cookie "mycookie" is set with expiration date of now + 1 hour for the example.com domain
Real outcome:
A cookie with expiration date exactly 30 years in the future + 1 hour is created
(year 2052 as at the time of this bug is filed)
--
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/20210929/02d9f3b1/attachment-0001.htm>
More information about the webkit-unassigned
mailing list