mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-06 20:11:38 +08:00
This change updates the DebuggerPlugin class's decorationByBreakpoint map to key on both Breakpoint and UILocation when adding and removing breakpoing decorators in the UI. Before this change, if a Breakpoint was associated with multiple UILocations, then attempting to remove that breakpoint would not update all of its decorators correctly. This is because the first breakpointRemoved event that was received would remove the Breakpoint entry from decorationByBreakpoint, and then any subsequent breakpointRemoved events for the same Breakpoint with a different UILocation would have no effect. After the change, breakpoints with multiple UILocations and decorators are updated correctly. An e2e test has been added to verify this. Bug: 1251675 Change-Id: Ia33593af5a3efcb08cf219d2e21932406760f3fd Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3205603 Reviewed-by: Simon Zünd <szuend@chromium.org> Reviewed-by: Benedikt Meurer <bmeurer@chromium.org> Commit-Queue: Brandon Walderman <brwalder@microsoft.com>
7 lines
145 B
HTML
7 lines
145 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<body>
|
|
<script src="sourcemap-disjoint-1.js"></script>
|
|
<script src="sourcemap-disjoint-2.js"></script>
|
|
</body>
|
|
</html> |