Closed Bug 905863 Opened 11 years ago Closed 1 year ago

Implement a blackbox source map directive

Categories

(DevTools :: Debugger, enhancement, P5)

25 Branch
x86
macOS
enhancement

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1824705

People

(Reporter: fitzgen, Unassigned)

References

(Blocks 3 open bugs)

Details

These would be ordered indices into the `sources` list and parsed `mappings` property respectively.

For example,

{
  sources: ["foo.js", "bar.js", "blackboxed.js"],
  xBlackBoxedSources: [0, 2],
  // rest of the source map
}

would say that "foo.js" and "blackboxed.js" should be black boxed by default.

We could do the same thing for the mappings, although we wouldn't really have any UI to turn the black boxing off, so it would be pretty permanent.
I suggest `xBlackBoxedSources: { 0: "backbone", 2: "backbone" }` so that multiple sources could be grouped into a single checkbox in the UI?
I'm not a huge fan of adding blackboxing from the (web) server without a way to disable that in our tools.

The idea of having a single checkbox to turn off all xBlackBoxedSources is a nice suggestion.
Priority: -- → P3
Summary: Extend the source map format with xBlackBoxedSources and xBlackBoxedMappings → Implement a blackbox directive for source maps
Summary: Implement a blackbox directive for source maps → Implement a blackbox source map directive
Reasonable but not a priority.
Priority: P3 → P5
Product: Firefox → DevTools
Type: defect → enhancement
Severity: normal → S3

Implemented as part of Bug 1824705

Status: NEW → RESOLVED
Closed: 1 year ago
Duplicate of bug: 1824705
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.