Open Bug 1830756 Opened 3 years ago Updated 1 year ago

Two distinct actions for blackbxing single lines vs a range of lines

Categories

(DevTools :: Debugger, task, P3)

task

Tracking

(Not tracked)

People

(Reporter: bomsy, Unassigned)

References

(Blocks 1 open bug)

Details

Lets have two distinct actions. One toggle with ranges with an explicit boolean and one without ranges, nor boolean.

Ranges are only used from there:
https://searchfox.org/mozilla-central/rev/1f4f99a8f331cce8467a50742178b6d46914ab89/devtools/client/debugger/src/components/Editor/menus/editor.js#162-167
May be we could craft a dedicated toggleBlackBoxLine.
https://searchfox.org/mozilla-central/rev/1f4f99a8f331cce8467a50742178b6d46914ab89/devtools/client/debugger/src/components/Editor/menus/editor.js#217-222
May be we could craft a dedicated toggleBlackBoxRange while moving findBlackBoxRange to the action and having the logic to toggle the encapsulated range to the action.
https://searchfox.org/mozilla-central/source/devtools/client/debugger/src/actions/sources/newSources.js#194
This one may be the only one, at the end, with a fixed true boolean.

Blocks: dbg-blackbox
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.