Skip to content
Permalink
Browse files
Web Inspector: Debugger: blackbox breakpoint evaluations by default
https://bugs.webkit.org/show_bug.cgi?id=241143

Reviewed by Patrick Angle.

According to <https://webkit.org/web-inspector/script-blackboxing/>
> Script blackboxing is the ability to mark a `<script>` in Web Inspector so that it is ignored by
> the JavaScript debugger, meaning that any JavaScript execution pauses that would happen in that
> `<script>` are instead deferred until JavaScript execution has continued outside of that `<script>`.

Based on that, developers will likely expect that breakpoint evaluations fall under the category of
"things that the JavaScript debugger does" and would therefore expect that they're ignored/deferred.

* Source/WebInspectorUI/UserInterface/Base/Setting.js:

Canonical link: https://commits.webkit.org/251170@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@295075 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
dcrousso committed Jun 1, 2022
1 parent b36992d commit 3972e98669b4e226426f5ed9f56236e75a8df53c
Showing 1 changed file with 1 addition and 1 deletion.
@@ -184,7 +184,7 @@ WI.DebugSetting = class DebugSetting extends WI.Setting
};

WI.settings = {
blackboxBreakpointEvaluations: new WI.Setting("blackbox-breakpoint-evaluations", false),
blackboxBreakpointEvaluations: new WI.Setting("blackbox-breakpoint-evaluations", true),
canvasRecordingAutoCaptureEnabled: new WI.Setting("canvas-recording-auto-capture-enabled", false),
canvasRecordingAutoCaptureFrameCount: new WI.Setting("canvas-recording-auto-capture-frame-count", 1),
consoleAutoExpandTrace: new WI.Setting("console-auto-expand-trace", true),

0 comments on commit 3972e98

Please sign in to comment.