I tried to download the Web Extension Example called Commands and it I can’t get it to run. I was able to run the Your first extension example no problem, but with Commands I get an error when I press the shortcut key in the example i.e. Ctrl+Shift+U (see below). Any thoughts? I’m running Firefox 57.0.2 if that helps. No changes were made to the original code. Thanks in advance.
[Exception… “Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIPrefBranch.setBoolPref]” nsresult: “0x80040111 (NS_ERROR_NOT_AVAILABLE)” location: “JS frame :: jar:file:///C:/Program%20Files%20(x86)/Mozilla%20Firefox/browser/omni.ja!/components/devtools-startup.js :: initDevTools :: line 403” data: no]
Note on Solution: The issue as discovered by erosman has to do with the string “Ctrl+Shift+U”, switching it to “F12” makes the script work correctly.