Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit 02ef503

Browse files
committed
Bug 1531826 Part 2 - Frames with source IDs should always be linkable, r=nchevobbe.
--HG-- extra : rebase_source : 2eeb3af85bc0c8456719988bb34ef54ffdc78b17
1 parent 7bdab9d commit 02ef503

File tree

1 file changed

+2
-1
lines changed
  • devtools/client/shared/components

1 file changed

+2
-1
lines changed

devtools/client/shared/components/Frame.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,9 @@ class Frame extends Component {
140140
// to Scratchpad URIs.
141141
// Source mapped sources might not necessary linkable, but they
142142
// are still valid in the debugger.
143+
// If we have a source ID then we can show the source in the debugger.
143144
const isLinkable = !!(isScratchpadScheme(source) || parseURL(source))
144-
|| isSourceMapped;
145+
|| isSourceMapped || sourceId;
145146
const elements = [];
146147
const sourceElements = [];
147148
let sourceEl;

0 commit comments

Comments
 (0)