This regressed by bug 222279 (https://commits.webkit.org/r273329) since many places log directly through Document::addConsoleMessage() directly, they do not go through Document::didLogMessage().
Created attachment 431569 [details] Patch
Created attachment 431570 [details] Patch
<rdar://problem/79407076>
Committed r278947 (238876@main): <https://commits.webkit.org/238876@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 431570 [details].