diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:14:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:14:29 +0000 |
commit | fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8 (patch) | |
tree | 4c1ccaf5486d4f2009f9a338a98a83e886e29c97 /devtools/client/debugger/src/selectors/breakpointSources.js | |
parent | Releasing progress-linux version 124.0.1-1~progress7.99u1. (diff) | |
download | firefox-fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8.tar.xz firefox-fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8.zip |
Merging upstream version 125.0.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'devtools/client/debugger/src/selectors/breakpointSources.js')
-rw-r--r-- | devtools/client/debugger/src/selectors/breakpointSources.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/devtools/client/debugger/src/selectors/breakpointSources.js b/devtools/client/debugger/src/selectors/breakpointSources.js index a0daedae21..4867ade82c 100644 --- a/devtools/client/debugger/src/selectors/breakpointSources.js +++ b/devtools/client/debugger/src/selectors/breakpointSources.js @@ -5,7 +5,6 @@ import { createSelector } from "devtools/client/shared/vendor/reselect"; import { getSelectedSource } from "./sources"; import { getBreakpointsList } from "./breakpoints"; -import { getFilename } from "../utils/source"; import { getSelectedLocation } from "../utils/selected-location"; // Returns a list of sources with their related breakpoints: @@ -37,16 +36,15 @@ export const getBreakpointSources = createSelector( sources.set(source, { source, breakpoints: [breakpoint], - filename: getFilename(source), }); } else { sources.get(source).breakpoints.push(breakpoint); } } - // Returns an array of breakpoints info per source, sorted by source's filename + // Returns an array of breakpoints info per source, sorted by source's displayed name return [...sources.values()].sort((a, b) => - a.filename.localeCompare(b.filename) + a.source.shortName.localeCompare(b.source.shortName) ); } ); |