-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[dotnet] [bidi] Protect DTO types from inheritance #15919
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
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨No code suggestions found for the PR. |
Thanks Nick, protecting types is good. |
User description
Classes/records in BiDi namespace are not supposed to be inherited.
💥 What does this PR do?
Adds
sealed
modifier for them.🔧 Implementation Notes
💡 Additional Considerations
🔄 Types of changes
PR Type
Other
Description
• Add
sealed
modifier to BiDi DTO classes and records• Prevent inheritance of BiDi namespace types
• Improve type safety across Browser, BrowsingContext, Input, Log, Network, Script, Session, and Storage modules
Changes walkthrough 📝
72 files
Add sealed modifier to ClientWindow record
Add sealed modifier to ClientWindowInfo record
Add sealed modifier to CloseCommand and CloseOptions
Add sealed modifier to CreateUserContext types
Add sealed modifier to GetClientWindows types
Add sealed modifier to GetUserContexts types
Add sealed modifier to RemoveUserContext types
Add sealed modifier to UserContext class
Add sealed modifier to UserContextInfo record
Add sealed modifier to Activate types
Add sealed modifier to BrowsingContext class
Add sealed modifier to BrowsingContextInfo record
Add sealed modifier to BrowsingContextInputModule class
Add sealed modifier to BrowsingContextLogModule class
Add sealed modifier to BrowsingContextModule class
Add sealed modifier to BrowsingContextNetworkModule and options
Add sealed modifier to BrowsingContextScriptModule class
Add sealed modifier to BrowsingContextStorageModule class
Add sealed modifier to CaptureScreenshot types
Add sealed modifier to Close types
Add sealed modifier to Create types
Add sealed modifier to GetTree types
Add sealed modifier to HandleUserPrompt types
Add sealed modifier to HistoryUpdatedEventArgs record
Add sealed modifier to LocateNodes types
Add sealed modifier to Locator types
Add sealed modifier to Navigate types
Add sealed modifier to Navigation record
Add sealed modifier to NavigationInfo record
Add sealed modifier to Print types
Add sealed modifier to Reload types
Add sealed modifier to SetViewport types
Add sealed modifier to TraverseHistory types
Add sealed modifier to UserPromptClosedEventArgs record
Add sealed modifier to UserPromptOpenedEventArgs record
Add sealed modifier to Key record comment
Add sealed modifier to Origin types
Add sealed modifier to PerformActions types
Add sealed modifier to ReleaseActions types
Add sealed modifier to SetFiles types
Add sealed modifier to SourceActions types
Add sealed modifier to LogEntry types
Add sealed modifier to AddIntercept types
Add sealed modifier to AuthChallenge record
Add sealed modifier to AuthCredentials record
Add sealed modifier to BytesValue types
Add sealed modifier to ContinueRequest types
Add sealed modifier to ContinueResponse types
Add sealed modifier to ContinueWithAuth types
Add sealed modifier to Cookie record
Add sealed modifier to CookieHeader record
Add sealed modifier to FailRequest types
Add sealed modifier to FetchErrorEventArgs record
Add sealed modifier to FetchTimingInfo record
Add sealed modifier to Header record
Add sealed modifier to Initiator record
Add sealed modifier to Intercept class
Add sealed modifier to NetworkModule high-level types
Add sealed modifier to ProvideResponse types
Add sealed modifier to RemoveIntercept types
Add sealed modifier to Request class
Add sealed modifier to RequestData record
Add sealed modifier to ResponseCompletedEventArgs record
Add sealed modifier to ResponseContent record
Add sealed modifier to SetCacheBehavior types
Add sealed modifier to SetCookieHeader record
Add sealed modifier to UrlPattern types
Add sealed modifier to AddPreloadScript types
Add sealed modifier to CallFunction types
Add sealed modifier to Channel record
Add sealed modifier to ChannelProperties record
Add sealed modifier to Disown types
2 files
Format ResponseData record parameters
Format ResponseStartedEventArgs record parameters
34 files