Bug 274914

Summary: Web Inspector: DebuggerManager. _associateBreakpointsWithSourceCode should only allow updates from the main frame
Product: WebKit Reporter: Qianlang Chen <qianlangchen>
Component: Web InspectorAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Minor CC: inspector-bugzilla-changes, webkit-bug-importer
Priority: P3 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   

Description Qianlang Chen 2024-05-30 11:53:10 PDT
The patch https://github.com/WebKit/WebKit/pull/27000 makes DebuggerManager._associateBreakpointsWithSourceCode always able to update a breakpoint's linked-to source code in order to prevent those source code objects becoming stale when e.g. the page reloads. However, as pointed out [in a code-review comment](https://github.com/WebKit/WebKit/pull/27000/files#r1609384544), this fix might cause issues when there are resources with the same URL/contentIdentifier coming from a sub-frame. Despite that perhaps being quite an unlikely scenario, we should consider improving that resource-updating logic and maybe apply the suggested fix in that comment.
Comment 1 Radar WebKit Bug Importer 2024-05-30 11:53:23 PDT
<rdar://problem/129018314>
Comment 2 Radar WebKit Bug Importer 2024-05-30 11:53:38 PDT
<rdar://problem/129018306>