It may be possible to UAF the `InspectorCPUProfilerAgent`, since it adds itself (via a C++ lambda) as an observer to another object. If the inspector disconnects while actively recording, we currently don't remove that.
<rdar://problem/49877875>
Created attachment 367823 [details] Patch
Comment on attachment 367823 [details] Patch r=me. Are there any other agents that could benefit from this?
(In reply to Joseph Pecoraro from comment #3) > r=me. Are there any other agents that could benefit from this? I checked the other timelines agents, and all of them either weren't susceptible or already had a "fix" for this issue.
Comment on attachment 367823 [details] Patch Clearing flags on attachment: 367823 Committed r244478: <https://trac.webkit.org/changeset/244478>
All reviewed patches have been landed. Closing bug.