Closed Bug 1505045 Opened 3 years ago Closed 3 years ago
"store is undefined" exception in webconsole-output-wrapper
.js set Timeout If Needed
47 bytes, text/x-phabricator-request
|Details | Review|
This is an error I get from time to time in the browser console. This happened here: https://searchfox.org/mozilla-central/rev/7c848ac7630df5baf1314b0c03e015683599efb9/devtools/client/webconsole/webconsole-output-wrapper.js#442,451 The function gets called while the store isn't initialized yet, causing the exception.
In some cases, the setTimeoutIfNeeded function can be called before the store is initialized, which is causing an exception when we try to dispatch the messages. With this patch, we check if the store is not ready, and re-schedule a timeout so messages can be handled properly when the store is ready.
Pushed by firstname.lastname@example.org: https://hg.mozilla.org/integration/autoland/rev/b05772bcb6f4 Fix error in setTimeoutIfNeeded when store is not ready yet; r=Honza.
You need to log in before you can comment on or make changes to this bug.