Open Bug 1409906 Opened 8 years ago Updated 2 years ago

JSON Viewer should default to light for invalid themes

Categories

(DevTools :: JSON Viewer, enhancement, P3)

enhancement

Tracking

(firefox57 fix-optional)

Tracking Status
firefox57 --- fix-optional

People

(Reporter: Oriol, Unassigned)

Details

Set devtools.theme="invalid" in about:config. Load some JSON like data:application/json,123 The JSON Viewer looks wrong because there is no theme applied. It should default to the light theme, just like the devtool toolbox does.
I think add-ons can add new themes, so maybe it shouldn't be a hardcoded list. Could check Cu.import("chrome://devtools-shim/content/DevToolsShim.jsm", {}).DevToolsShim._gDevTools._themes
Product: Firefox → DevTools
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.