-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[dotnet] [bidi] Adjust cookie expiry type according spec (unix seconds) #16218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[dotnet] [bidi] Adjust cookie expiry type according spec (unix seconds) #16218
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||||
User description
https://w3c.github.io/webdriver/#dfn-cookie-expiry-time
It is not milliseconds, it is seconds.
💥 What does this PR do?
Add custom json converter especially for cookie expiry only.
🔄 Types of changes
PR Type
Bug fix
Description
Fix cookie expiry time format from milliseconds to seconds per WebDriver spec
Add new DateTimeOffsetSecondsConverter for proper unix timestamp handling
Remove unused TimeSpanConverter and update Cookie model
Update test assertions to validate expiry time correctly
Diagram Walkthrough
File Walkthrough
Broker.cs
Remove unused TimeSpanConverter registrationdotnet/src/webdriver/BiDi/Communication/Broker.cs
DateTimeOffsetConverter.cs
Add seconds-based DateTimeOffset converterdotnet/src/webdriver/BiDi/Communication/Json/Converters/DateTimeOffsetConverter.cs
TimeSpanConverter.cs
Remove unused TimeSpanConverter classdotnet/src/webdriver/BiDi/Communication/Json/Converters/TimeSpanConverter.cs
Cookie.cs
Update Cookie model expiry typedotnet/src/webdriver/BiDi/Network/Cookie.cs
SetCookieCommand.cs
Apply converter to SetCookie commanddotnet/src/webdriver/BiDi/Storage/SetCookieCommand.cs
StorageTest.cs
Update cookie expiry test validationdotnet/test/common/BiDi/Storage/StorageTest.cs