Closed Bug 1505045 Opened 3 years ago Closed 3 years ago

"store is undefined" exception in webconsole-output-wrapper.js setTimeoutIfNeeded

Categories

(DevTools :: Console, defect, P1)

65 Branch
defect

Tracking

(firefox65 fixed)

RESOLVED FIXED
Firefox 65
Tracking Status
firefox65 --- fixed

People

(Reporter: nchevobbe, Assigned: nchevobbe)

Details

Attachments

(1 file)

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 nchevobbe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b05772bcb6f4
Fix error in setTimeoutIfNeeded when store is not ready yet; r=Honza.
https://hg.mozilla.org/mozilla-central/rev/b05772bcb6f4
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 65
You need to log in before you can comment on or make changes to this bug.