Bug 197115

Summary: Web Inspector: Timelines: CPU: ensure that tracking stops when disconnecting Web Inspector
Product: WebKit Reporter: Devin Rousso <hi>
Component: Web InspectorAssignee: Devin Rousso <hi>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, ews-watchlist, hi, inspector-bugzilla-changes, joepeck, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch none

Devin Rousso
Reported 2019-04-19 14:02:31 PDT
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.
Attachments
Patch (1.48 KB, patch)
2019-04-19 14:03 PDT, Devin Rousso
no flags
Devin Rousso
Comment 1 2019-04-19 14:02:42 PDT
Devin Rousso
Comment 2 2019-04-19 14:03:33 PDT
Joseph Pecoraro
Comment 3 2019-04-19 16:24:24 PDT
Comment on attachment 367823 [details] Patch r=me. Are there any other agents that could benefit from this?
Devin Rousso
Comment 4 2019-04-19 16:27:15 PDT
(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.
WebKit Commit Bot
Comment 5 2019-04-19 17:33:26 PDT
Comment on attachment 367823 [details] Patch Clearing flags on attachment: 367823 Committed r244478: <https://trac.webkit.org/changeset/244478>
WebKit Commit Bot
Comment 6 2019-04-19 17:33:27 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.