[dotnet] [bidi] Adjust proxy configuration for new sessions by nvborisenko · Pull Request #15914 · SeleniumHQ/selenium
Conversation
User description
https://w3c.github.io/webdriver-bidi/#ref-for-cddl-type-sessionmanualproxyconfiguration
- Removed FTP
- Added separate type to represent Socks
- Added no proxy support
🔧 Implementation Notes
💡 Additional Considerations
🔄 Types of changes
- Cleanup (formatting, renaming)
- Bug fix (backwards compatible)
- New feature (non-breaking change which adds functionality and tests!)
- Breaking change (fix or feature that would cause existing functionality to change)
PR Type
Enhancement
Description
• Remove FTP proxy support from BiDi proxy configuration
• Add no proxy list support for bypassing proxy
• Extract SOCKS proxy configuration into separate interface
• Change SOCKS version type from long to int
Changes walkthrough 📝
| Relevant files | |||
|---|---|---|---|
| Enhancement |
|
Need help?
Type /help how to ...in the comments thread for any questions about Qodo Merge usage.Check out the documentation for more information.
PR Reviewer Guide 🔍
Here are some key observations to aid the review process:
| ⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪ |
| 🧪 No relevant tests |
| 🔒 No security concerns identified |
⚡ Recommended focus areas for reviewInterface Design
|
PR Code Suggestions ✨
Explore these optional code suggestions:
| Category | Suggestion | Impact |
| General |
Add range validation for SocksVersionAdd validation to ensure dotnet/src/webdriver/BiDi/Session/ProxyConfiguration.cs [58] -public int? SocksVersion { get; set; } // 0..255 +private int? _socksVersion; +public int? SocksVersion +{ + get => _socksVersion; + set => _socksVersion = value is >= 0 and <= 255 ? value : throw new ArgumentOutOfRangeException(nameof(value), "SocksVersion must be between 0 and 255"); +}
Suggestion importance[1-10]: 7__ Why: The suggestion correctly identifies that the | Medium |
| ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters