2

Is it possible? I'd like to experiment with some functions in a REPL.

Makyen
  • 31,849
  • 12
  • 86
  • 121
user
  • 23,260
  • 9
  • 113
  • 101
  • @JJJ, I rolled back your edit and am against the close vote. You probably don't aware what the Browser Console is, it is a specific instrument inside Firefox, similar to [tag:web-console], but which works in a browser context instead of a tab context, see the link in the answer for details. – user Feb 05 '17 at 17:53

1 Answers1

4

You can not do so from the Browser Console.

However, you can if are debugging your WebExtension (accessed though about:debugging➞Debug) using the Add-on Debugger and your WebExtension has a background page (i.e. you have a defined a page or script in a background entry in your manifest.json):

Using chrome APIs in Add-on Debugger

Makyen
  • 31,849
  • 12
  • 86
  • 121
  • Thanks. A background script was enough. Took [this](https://github.com/mdn/webextensions-examples/tree/master/commands) as a basis, added needed permissions, and got the desired console with `browser`. – user Feb 03 '17 at 06:04