6

I'm using Firefox for Ubuntu, version 39.0. I'm trying to debug an add-on and would like to run some JavaScript under chrome privileges. According to this page I should be able to do this in the Browser Console.

If I click on Tools -> Web Developer -> Browser Console in the Firefox menu, I get the Browser Console:

enter image description here

Only problem is, I can't evaluate anything. My question is: where's the prompt? Apparently this window should have a prompt. Things I have tried:

  • Restarting Firefox with add-ons disabled (safe mode)
  • Starting Firefox as a sudo user

Any tips?

sammy34
  • 5,312
  • 5
  • 29
  • 42
  • 1
    You have to enable developer preferences: https://developer.mozilla.org/en-US/Add-ons/Setting_up_extension_development_environment?redirectlocale=en-US&redirectslug=Setting_up_extension_development_environment#Development_preferences – Noitidart Jul 28 '15 at 13:28
  • 1
    Legend, I set devtools.chrome.enabled to true and that was it. Submit an answer if you like and I'll mark it as accepted. – sammy34 Jul 28 '15 at 14:44
  • 1
    Awesome Sammy thanks for that specific preference share, I didn't know it was exactly that one. – Noitidart Jul 29 '15 at 03:46

1 Answers1

6

You have to enable developer preferences:

"Setting up an extension development environment" MDN page from

Thanks to your research it looks like it was the devtools.chrome.enabled preference.

Noitidart
  • 35,443
  • 37
  • 154
  • 323