-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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] Annotate nullability on JavaScriptEngine
and related types
#15218
[dotnet] Annotate nullability on JavaScriptEngine
and related types
#15218
Conversation
PR Reviewer Guide 🔍(Review updated until commit bea599b)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to bea599b
Previous suggestionsSuggestions up to commit 8defe2d
|
ScriptCallbackBindings
, annotate nullability on JavaScriptEngine
JavaScriptEngine
and related types
Test failures are unrelated to this PR //java/test/org/openqa/selenium/mobile:NetworkConnectionTest
//java/test/org/openqa/selenium/remote:RemoteWebDriverScreenshotTest
//java/test/org/openqa/selenium/remote:RemoteWebDriverScreenshotTest-firefox-beta
//rb/spec/integration/selenium/webdriver:network-firefox-beta-bidi
//rb/spec/integration/selenium/webdriver:network-firefox-bidi |
User description
Thanks for contributing to Selenium!
A PR well described will help maintainers to quickly review and merge it
Before submitting your PR, please check our contributing guidelines.
Avoid large PRs, help reviewers by making them as simple and short as possible.
Annotate nullability on
JavaScriptEngine
and all related types (some types are modernized without nullability annotations - the refactorings are crucial to nullability onJavaScriptEngine
, but the specific properties are not relevant to this PR and require further investigation.Motivation and Context
Contributes to #14640
Also bugfix.
Types of changes
Checklist
PR Type
Enhancement, Bug fix
Description
Annotated nullability for
JavaScriptEngine
and related types.Refactored constructors and properties for immutability and clarity.
Added null checks and exception handling for improved robustness.
Fixed
JavaScriptEngine.ScriptCallbackBindings
to include new bindings.Changes walkthrough 📝
DomMutatedEventArgs.cs
Refactor `DomMutatedEventArgs` for immutability
dotnet/src/webdriver/DomMutatedEventArgs.cs
AttributeData
property to be immutable.DomMutatedEventArgs
.DomMutationData.cs
Refactor `DomMutationData` properties for immutability
dotnet/src/webdriver/DomMutationData.cs
JsonIgnore
attribute forElement
property.ToString
method to use new property structure.IJavaScriptEngine.cs
Add nullability annotations to `IJavaScriptEngine`
dotnet/src/webdriver/IJavaScriptEngine.cs
InitializationScript.cs
Refactor `InitializationScript` for immutability
dotnet/src/webdriver/InitializationScript.cs
JavaScriptCallbackExecutedEventArgs.cs
Refactor `JavaScriptCallbackExecutedEventArgs` for clarity
dotnet/src/webdriver/JavaScriptCallbackExecutedEventArgs.cs
JavaScriptConsoleApiCalledEventArgs.cs
Refactor `JavaScriptConsoleApiCalledEventArgs` for clarity
dotnet/src/webdriver/JavaScriptConsoleApiCalledEventArgs.cs
JavaScriptEngine.cs
Refactor `JavaScriptEngine` for nullability and robustness
dotnet/src/webdriver/JavaScriptEngine.cs
ScriptCallbackBindings
to include new bindings.JavaScriptExceptionThrownEventArgs.cs
Refactor `JavaScriptExceptionThrownEventArgs` for clarity
dotnet/src/webdriver/JavaScriptExceptionThrownEventArgs.cs
Message
property.Message
.