[dotnet] [bidi] Add DisownData command in Network module#17436
Conversation
Review Summary by QodoAdd network.disownData BiDi command to .NET WebDriver
WalkthroughsDescription• Adds network.disownData BiDi command support to .NET WebDriver • Implements DisownDataParameters, DisownDataOptions, DisownDataResult types • Registers DisownDataCommand in NetworkModule with async execution method • Adds JSON serialization support for new parameter and result types • Includes test verifying disown data command functionality Diagramflowchart LR
A["DisownData.cs<br/>New Types"] -->|Parameters & Result| B["NetworkModule.cs<br/>Command Registration"]
B -->|Implements| C["INetworkModule.cs<br/>DisownDataAsync Method"]
B -->|Serialization| D["NetworkModule.cs<br/>JsonSerializable Attributes"]
C -->|Tested by| E["NetworkTests.cs<br/>CanDisownData Test"]
File Changes1. dotnet/src/webdriver/BiDi/Network/DisownData.cs
|
Code Review by Qodo
1. INetworkModule adds DisownDataAsync
|
|
Persistent review updated to latest commit bb03ed1 |
https://w3c.github.io/webdriver-bidi/#command-network-disownData
💥 What does this PR do?
This pull request adds support for the
network.disownDatacommand to the BiDi Network module in the .NET WebDriver implementation. This allows users to explicitly disown network data that was previously collected, improving resource management and control over network data lifecycles. The changes include the introduction of new command parameter/result types, updates to the network module interface and implementation, serialization support, and a new test to verify the feature.New BiDi Command Support:
DisownDataParameters,DisownDataOptions, andDisownDataResultrecord types inDisownData.csto represent the parameters and results of the new command.DisownDataCommandinNetworkModuleand implemented theDisownDataAsyncmethod to execute the command. [1] [2]INetworkModuleinterface to expose the newDisownDataAsyncmethod.Serialization and Testing:
DisownDataParametersandDisownDataResultto the list of types handled by source generation for serialization.CanDisownDatato verify that the disown data command works as expected.🤖 AI assistance
🔄 Types of changes