TBBinary: drop FirefoxBinary and manage Tor Browser process directly#221
TBBinary: drop FirefoxBinary and manage Tor Browser process directly#221IamYipi wants to merge 1 commit intowebfp:mainfrom
Conversation
Selenium's FirefoxBinary is deprecated and breaks/produces warnings with Selenium 4.40+, impacting Tor Browser startup and lifecycle handling. Replace the FirefoxBinary dependency with a standalone TBBinary that launches and manages the Tor Browser process via subprocess for simpler, more reliable process control. Keep kill() for backwards compatibility, since callers rely on it to force-terminate the browser when it becomes unresponsive. Fixes webfp#220
|
Tested successfully in a Debian Bookworm–based Docker environment The change was built and validated using the following setup:
Tor Browser launches correctly, process lifecycle management works as Dockerfile used for validation: entrypoint.sh main.py not provided but is a simple python fastapi main file for test tbselenium |
|
@IamYipi Thanks so much for the pull request. I'm planning to get rid of the |
Selenium's FirefoxBinary is deprecated and breaks/produces warnings with Selenium 4.40+, impacting Tor Browser startup and lifecycle handling.
Replace the FirefoxBinary dependency with a standalone TBBinary that launches and manages the Tor Browser process via subprocess for simpler, more reliable process control.
Keep kill() for backwards compatibility, since callers rely on it to force-terminate the browser when it becomes unresponsive.
Fixes #220