Bug 46224 shows a stack where a call to WebInspectorClient::sendMessageToFrontend() causes script to run, resulting in bad things happening. This seems bad. Why isn't WebInspectorClient::sendMessageToFrontend() async?
I'm referring to WebInspectorClientCF here.
I'll fix this via bug 46224. *** This bug has been marked as a duplicate of bug 46224 ***