mozilla / ff-tool

INACTIVE - http://mzl.la/ghe-archive - Python CLI tool for downloading desktop Firefox version, managing profiles and test prefs
Mozilla Public License 2.0
4 stars 12 forks source link

Add ability to launch browser w/ specific addon #56

Closed rpappalax closed 7 years ago

rpappalax commented 8 years ago

this would be very handy for gofaster testing. :runner: :hourglass_flowing_sand:

pdehaan commented 8 years ago

Some progress...

  1. Create a new profile via mozprofile:

    $ mozprofile -p peter.panda2 -a http://people.mozilla.org/\~bwinton/TabCenter/tab_center_test-1.9-fx.xpi
  2. Launch Firefox using our custom, local profile:

    $ /Applications/FirefoxDeveloperEdition.app/Contents/MacOS/firefox --profile ./peter.panda2

Unfortunately, that begets the following error/warning in Das Terminal:

addons.xpi-utils    WARN    Disabling foreign installed add-on tabcentertest1@mozilla.com in app-profile

The browser launches as expected, and the add-on is installed in "about:addons", BUT the add-on isn't enabled. Not specific to that XPI, I tried with 2 others (not a great sample size, but "meh"). It's easy enough for me to manually enable that add-on, but for automated tests, that's somewhat amateur hour.

We must go further down the 🐇 hole.

rpappalax commented 7 years ago

per davehunt: you'd need to specify the add-on in your mozprofile

rpappalax commented 7 years ago

@pdehaan this looks promising: http://mozbase.readthedocs.io/en/latest/mozprofile.html#module-mozprofile.addons

install_from_path(path, unpack=False)[source] Installs addon from a filepath, url or directory of addons in the profile.

rpappalax commented 7 years ago

i feel silly, i believe you already tried this @pdehaan