You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FTP proxy support was deprecated in Selenium 4.34.2 (#15906). This PR removes the code and tests completely from the Python bindings.
🔄 Types of changes
Cleanup (formatting, renaming)
Breaking change (fix or feature that would cause existing functionality to change)
PR Type
Bug fix, Other
Description
Remove deprecated FTP proxy support from Python bindings
Delete ftpProxy attribute and ftp_proxy descriptor
Remove deprecation warnings and related TODO comments
Update proxy tests to remove FTP proxy references
Diagram Walkthrough
flowchart LR
A["Proxy class with ftpProxy"] -->|Remove deprecated attribute| B["Proxy class without ftpProxy"]
C["Deprecation warnings"] -->|Remove| D["Clean codebase"]
E["FTP proxy tests"] -->|Remove| F["Updated test suite"]
Loading
File Walkthrough
Relevant files
Bug fix
proxy.py
Remove FTP proxy attribute and deprecation logic
py/selenium/webdriver/common/proxy.py
Removed import warnings statement
Deleted deprecation warning logic from _ProxyTypeDescriptor.__set__ method
Removed ftpProxy class attribute initialization
Removed ftp_proxy descriptor definition and documentation
Removed FTP proxy handling from __init__ method
Removed ftpProxy from proxy capabilities list in to_capabilities method
Objective: To create a detailed and reliable record of critical system actions for security analysis and compliance.
Status: No audit scope: The new code only removes deprecated FTP proxy support and does not introduce or modify any critical actions that would require audit logging, so compliance cannot be assessed from this diff alone.
Referred Code
def__init__(self, raw=None):
"""Creates a new Proxy. Args: raw: Raw proxy data. If None, default class values are used. """ifraw:
if"proxyType"inrawandraw["proxyType"]:
self.proxy_type=ProxyType.load(raw["proxyType"])
if"httpProxy"inrawandraw["httpProxy"]:
self.http_proxy=raw["httpProxy"]
if"noProxy"inrawandraw["noProxy"]:
self.no_proxy=raw["noProxy"]
if"proxyAutoconfigUrl"inrawandraw["proxyAutoconfigUrl"]:
self.proxy_autoconfig_url=raw["proxyAutoconfigUrl"]
if"sslProxy"inrawandraw["sslProxy"]:
self.sslProxy=raw["sslProxy"]
if"autodetect"inrawandraw["autodetect"]:
self.auto_detect=raw["autodetect"]
if"socksProxy"inrawandraw["socksProxy"]:
self.socks_proxy=raw["socksProxy"]
... (clipped36lines)
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
User description
🔗 Related Issues
#15905
#15906
💥 What does this PR do?
FTP proxy support was deprecated in Selenium 4.34.2 (#15906). This PR removes the code and tests completely from the Python bindings.
🔄 Types of changes
PR Type
Bug fix, Other
Description
Remove deprecated FTP proxy support from Python bindings
Delete
ftpProxyattribute andftp_proxydescriptorRemove deprecation warnings and related TODO comments
Update proxy tests to remove FTP proxy references
Diagram Walkthrough
File Walkthrough
proxy.py
Remove FTP proxy attribute and deprecation logicpy/selenium/webdriver/common/proxy.py
import warningsstatement_ProxyTypeDescriptor.__set__method
ftpProxyclass attribute initializationftp_proxydescriptor definition and documentation__init__methodftpProxyfrom proxy capabilities list into_capabilitiesmethod
proxy_tests.py
Remove FTP proxy test cases and assertionspy/test/selenium/webdriver/common/proxy_tests.py
ftpProxyentry fromMANUAL_PROXYtest dictionarytest_can_add_manual_proxy_to_optionstest
test_can_init_manual_proxytesttest_can_init_empty_proxytest