SessionFileInternal.getWriter() called too early in new identity
While debugging #42085 (closed), Patrick from Whonix took a log from the Tor Browser JS console after the fixes from @pierov's testbuild were applied. There are still a few errors showing up in the log. Neither Patrick nor I am confident about whether they're harmless, so probably someone should investigate them.
The most concerning (to my untrained eye) log entries are:
NS_ERROR_NOT_IMPLEMENTED: Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIAppStartup.secondsSinceLastOSRestart]
_collectStartupConditionsTelemetry resource:///modules/BrowserGlue.sys.mjs:1649
BG__onFirstWindowLoaded resource:///modules/BrowserGlue.sys.mjs:1759
BG_observe resource:///modules/BrowserGlue.sys.mjs:981
_delayedStartup chrome://browser/content/browser.js:2106
BrowserGlue.sys.mjs:1658:15
uncaught exception: SessionFileInternal.getWriter() called too early! Please read the session file from disk first. 2
TypeError: this.client is undefined
RemoteSecuritySettings.sys.mjs:538:7
See the above forum link for full context on where the errors show up in the log. I have no idea whether these errors also show up in non-Whonix environments. To be clear, Patrick isn't observing any actually-wrong behavior, so probably everything is OK... but seems better to check than assume.
Edited by JeremyRand