Open Bug 905863 Opened 9 years ago Updated 1 year ago

Implement a blackbox source map directive

Categories

(DevTools :: Debugger, enhancement, P5)

25 Branch
x86
macOS
enhancement

Tracking

(Not tracked)

People

(Reporter: fitzgen, Unassigned)

References

(Blocks 2 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
You need to log in before you can comment on or make changes to this bug.