Bug: console does not log - Tb 102.2  build 20220816205922
Status: RESOLVED
Priority: --
Resolution: WORKSFORME
Created: 2022-08-17 11:44:50+00:00
Resolved: 2022-08-20 11:58:52+00:00

From latest 102.2 build (20220816205922)

JS Error Console doesn't appear to log so I cannot do performance profiling for  Bug 1778888.

stack trace 1:
console.log("test")
```
Error: Encountered error while waiting for Helper Result: [Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIDocShell.domWindow]"  nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)"  location: "JS frame :: resource://devtools/server/actors/targets/window-global.js :: get window :: line 422"  data: no]
get window@resource://devtools/server/actors/targets/window-global.js:422:5
_getWindowForBrowserConsole@resource://devtools/server/actors/webconsole.js:269:7
get global@resource://devtools/server/actors/webconsole.js:247:19
get evalGlobal@resource://devtools/server/actors/webconsole.js:327:5
getDbgGlobal@resource://devtools/server/actors/webconsole/eval-with-debugger.js:516:20
exports.evalWithDebugger@resource://devtools/server/actors/webconsole/eval-with-debugger.js:130:47
evaluateJS@resource://devtools/server/actors/webconsole.js:1118:38
evaluateJSAsync/<@resource://devtools/server/actors/webconsole.js:1010:35
exports.makeInfallible/<@resource://devtools/shared/ThreadSafeDevToolsUtils.js:103:22
    evaluateJSAsync resource://devtools/server/actors/webconsole.js:1029
    makeInfallible resource://devtools/shared/ThreadSafeDevToolsUtils.js:103
ThreadSafeDevToolsUtils.js:82:13
    reportException resource://devtools/shared/ThreadSafeDevToolsUtils.js:82
    evaluateJSAsync resource://devtools/server/actors/webconsole.js:1029
    makeInfallible resource://devtools/shared/ThreadSafeDevToolsUtils.js:103
```

stack trace 2 - calling console.log from an Add-on:
```
[Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIDocShell.domWindow]"  nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)"  location: "JS frame :: resource://devtools/server/actors/targets/window-global.js :: get window :: line 422"  data: no] window-global.js:422:5
    get window resource://devtools/server/actors/targets/window-global.js:422
    _getWindowForBrowserConsole resource://devtools/server/actors/webconsole.js:269
    get global resource://devtools/server/actors/webconsole.js:247
    makeDebuggeeValue resource://devtools/server/actors/webconsole.js:470
    arguments resource://devtools/server/actors/webconsole.js:2058
    map self-hosted:180
    prepareConsoleMessageForRemote resource://devtools/server/actors/webconsole.js:2057
    onConsoleAPICall resource://devtools/server/actors/webconsole.js:1793
    onConsoleAPICall self-hosted:1115
    onConsoleAPILogEvent resource://devtools/server/actors/webconsole/listeners/console-api.js:115
    onConsoleAPILogEvent self-hosted:1115
    CS_recordEvent resource://gre/modules/ConsoleAPIStorage.jsm:174
    generateMRUlist chrome://quickfolders/content/quickfolders-util.js:1975
    createRecentPopup chrome://quickfolders/content/quickfolders-interface.js:291
    createRecentTab chrome://quickfolders/content/quickfolders-interface.js:351
    onClickRecentCurrentFolderTools chrome://quickfolders/content/quickfolders-interface.js:426
    onclick chrome://messenger/content/messenger.xhtml:1
```