If you use ubuntu-repo firefox, maybe you’ll get this error
I found, amongst many curious posts, that such behaviour is caused by Unity Desktop Integration (have a look in Firefox extensions)…
So, it’s easy, just disable it and restart Firefox
then try to add a plugin, from Mycroft site for instance
And it works!