Here's what I think we should do (and have been doing a little bit already): - "persistent" agents are set when Web Inspector is connected - "enabled" agents are set when that agent is `enable`d, such as if the corresponding tab is visible - "tracking" agents are set when that agent is part of a timeline recording.
Created attachment 401221 [details] Patch
Created attachment 401232 [details] Patch
Committed r262673: <https://trac.webkit.org/changeset/262673> All reviewed patches have been landed. Closing bug and clearing flags on attachment 401232 [details].
<rdar://problem/64067246>