Is it possible? I'd like to experiment with some functions in a REPL.
Asked
Active
Viewed 408 times
2
-
@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 Answers
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):

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