Closed Bug 1948719 Opened 6 months ago Closed 6 months ago

Bump up string cropLimit in JSONViewer

Categories

(DevTools :: JSON Viewer, task)

task

Tracking

(firefox137 fixed)

RESOLVED FIXED
137 Branch
Tracking Status
firefox137 --- fixed

People

(Reporter: nchevobbe, Assigned: nchevobbe)

Details

Attachments

(1 file)

The limit is at 50 now https://searchfox.org/mozilla-release/rev/0b40e2935f3edfdd97e9d1a0b70dd87b9137248d/devtools/client/jsonview/components/JsonPanel.js#100-102,105,107

  return Rep(
    Object.assign({}, props, {
      cropLimit: 50,
...
    })
...
}

WE have plenty of room in the JSONViewer, so we can bump that quite a bit to save clicks

The string length limit was done in 2 places:

  • when creating the Rep, with the cropLimit prop
  • but it was also hardcoded in the TreeView in isLongString

So here we bump up cropLimit, and we add a new maxStringLength
prop to the TreeView that will control the length at which
a given string should get a twisty.

Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Attachment #9466752 - Attachment description: Bug 1948719 - [devtools] Bum up string crop limit in JSON Viewer. r=#devtools. → Bug 1948719 - [devtools] Bump up string crop limit in JSON Viewer. r=#devtools.
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ee1ffe0a80eb [devtools] Bump up string crop limit in JSON Viewer. r=devtools-reviewers,jdescottes.
Status: ASSIGNED → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
Target Milestone: --- → 137 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: