Find a way to label uses of processNextEvent from JS

NEW
Unassigned

Status

()

Core
XPCOM
2 years ago
a year ago

People

(Reporter: Yoric, Unassigned)

Tracking

(Blocks: 1 bug)

Firefox Tracking Flags

(Not tracked)

Details

Every so often, we need to analyze code that spins the event loop from JS. For instance, bug 1248819 shows that some such code causes a shutdown hang/crash, but we have no idea which JS code is running.

It would be great to have a way to instrument `nsIThread.processNextEvent`, when it is called from JS, to somehow label it with the JS stack.
Noting we have a top crash on a couple of releases running (45 and 46) that fit this criteria.
You need to log in before you can comment on or make changes to this bug.