Extensions become disabled when using webdriver
Categories
(Testing :: geckodriver, defect)
Tracking
(Not tracked)
People
(Reporter: traverse.da, Unassigned)
References
()
Details
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:67.0) Gecko/20100101 Firefox/67.0
Steps to reproduce:
Created a custom firefox profile
Installed the "ublock-origin" extension to that profile
Used selenium to set proxy settings to a custom proxy
Used selenium to open a web page
Actual results:
Before the browser loads the web page I can see the ublock-origin icon in the toolbar. When the page starts loading the add-on bar ublock icon disappears. Ublock doesn't work.
In about:addons
the ublock-origin extension is shown as enabled, although the "preferences" button is missing. Upon clicking "disable" the extension is correctly shown as disabled. When you then click "enable" the extension work normally.
Expected results:
The extensions should work normally.
Reporter | ||
Comment 1•5 years ago
|
||
You can read more about this bug from the selenium/geckodriver side here: https://github.com/mozilla/geckodriver/issues/1517
Comment 2•5 years ago
|
||
I would like to address this issue of yours, but I need more detailed steps to reproduce. I have to reproduce this issue myself in order to confirm it, but I do not know how to use Selenium or set proxy settings to a custom proxy.
Can you detail the steps written in the description?
Thank you for your contribution!
Reporter | ||
Comment 3•5 years ago
|
||
Thanks, you can reproduce the problem using this code snippet under python.
Please not that "./seleniumFirefox" must point to a firefox profile that has ublock-origin enabled.
from selenium import webdriver
profile = webdriver.FirefoxProfile("./seleniumFirefox")
driver = webdriver.Firefox(firefox_profile=profile)
while True:
time.sleep(1)
Installing selenium is distro-specific, but in general it's something like pip install --user selenium
then somehow install geckodriver: https://github.com/mozilla/geckodriver
Comment 4•5 years ago
|
||
This is still too ambiguous for me to attempt to reproduce. I can see that the issue is already being discussed in GitHub. I will attempt to set a component to it. If incorrect, please give it a more appropriate component. Thanks!
Comment 5•5 years ago
|
||
Traverse can you please use the vendor specific end-point to install the extension instead of letting Selenium create a custom profile? Maybe this is a problem of Selenium and not Firefox.
If that works you should close this bug as invalid, and file an issue against Selenium.
Also if a failure still happens, make sure to attach a trace level log to this bug.
https://firefox-source-docs.mozilla.org/testing/geckodriver/TraceLogs.html
Updated•5 years ago
|
Reporter | ||
Comment 6•5 years ago
|
||
As of 68.0.1 this is no longer an issue for me.
Reporter | ||
Updated•5 years ago
|
Comment 7•5 years ago
|
||
Thanks! Good to know. So I assume that also 68.0 works for you.
Description
•