Closed Bug 1563845 Opened 5 years ago Closed 5 years ago

Extensions become disabled when using webdriver

Categories

(Testing :: geckodriver, defect)

67 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

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.

You can read more about this bug from the selenium/geckodriver side here: https://github.com/mozilla/geckodriver/issues/1517

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!

Flags: needinfo?(traverse.da)

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

Flags: needinfo?(traverse.da)

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!

Component: Untriaged → geckodriver
Product: Firefox → Testing

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.

https://seleniumhq.github.io/selenium/docs/api/py/webdriver_firefox/selenium.webdriver.firefox.webdriver.html#selenium.webdriver.firefox.webdriver.WebDriver.install_addon

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

Flags: needinfo?(traverse.da)

As of 68.0.1 this is no longer an issue for me.

Flags: needinfo?(traverse.da)
Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → INVALID

Thanks! Good to know. So I assume that also 68.0 works for you.

You need to log in before you can comment on or make changes to this bug.