erplibre/script/selenium
Mathieu Benoit aff0d50972 [FIX] selenium : accorder le privé aux extensions sans about:addons
Firefox refuse la navigation vers about:addons depuis le contexte contenu, et
le contexte chrome exige -remote-allow-system-access, que geckodriver refuse
via les capabilities : les deux voies vers la case « Exécuter dans les
fenêtres privées » sont fermées.

La permission s'accorde à l'installation, par le champ allowPrivateBrowsing de
/moz/addon/install ; 46 lignes de clics XPath disparaissent. Un geckodriver qui
ignore le champ installe sans la permission au lieu d'interrompre la session.
Vérifié : sombre en fenêtre privée, blanc sans extension, repli servi.

--- EN ---

Firefox refuses navigation to about:addons from the content context, and the
chrome context demands -remote-allow-system-access, which geckodriver rejects
through capabilities: both routes to the « Run in Private Windows » checkbox
are closed.

The permission is now granted at install time, through the allowPrivateBrowsing
field of /moz/addon/install; 46 lines of XPath clicking are gone. A geckodriver
that ignores the field installs without the permission instead of killing the
session. Checked: dark in a private window, white with no addon, fallback hit.

Assisted-by: Claude Opus 5
2026-09-14 05:10:46 -04:00
..
scenario [IMP] script: update copyright year to 2026 2026-03-11 23:16:05 -04:00
__init__.py [ADD] selenium script 2023-12-02 14:14:23 -05:00
combine_video.sh [ADD] script selenium video support 2025-04-12 17:06:09 -04:00
darkreader-firefox.xpi [UPD] script selenium update darkreader-firefox.xpi 2026-08-07 02:32:03 -04:00
install.base.md [ADD] Multilingual translation of all documentation (EN/FR) 2026-03-04 22:23:52 -05:00
install.fr.md [ADD] Multilingual translation of all documentation (EN/FR) 2026-03-04 22:23:52 -05:00
install.md [ADD] Multilingual translation of all documentation (EN/FR) 2026-03-04 22:23:52 -05:00
odoo_debug-4.0.xpi [ADD] selenium script 2023-12-02 14:14:23 -05:00
README.base.md [UPD] support: drop Ubuntu 20.04/22.04, add AlmaLinux and Rocky 2026-08-16 23:33:49 -04:00
README.fr.md [UPD] support: drop Ubuntu 20.04/22.04, add AlmaLinux and Rocky 2026-08-16 23:33:49 -04:00
README.md [UPD] support: drop Ubuntu 20.04/22.04, add AlmaLinux and Rocky 2026-08-16 23:33:49 -04:00
requirements.txt [UPD] erplibre pip requirement missing tldextract and PyYAML 2026-03-08 18:59:00 -04:00
selenium_lib.py [FIX] selenium : accorder le privé aux extensions sans about:addons 2026-09-14 05:10:46 -04:00
selenium_video.py [FIX] selenium video: firefox windows size 2025-11-08 23:53:07 -05:00
web_login.py [FIX] security: the KeePass password leaves the command line too 2026-08-23 02:11:50 -04:00

Installation Ubuntu 24.04

sudo apt install libcairo2-dev