Closed Bug 1801045 Opened 2 years ago Closed 2 years ago

Don't use ObjectInspector to render custom formatted values

Categories

(DevTools :: Object Inspector, task)

task

Tracking

(firefox109 fixed)

RESOLVED FIXED
109 Branch
Tracking Status
firefox109 --- fixed

People

(Reporter: nchevobbe, Assigned: sebo)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

The methods we use to get and display the children of a given object don't match with how custom formatter body works, so it should be handled separately

Assignee: nobody → sebastianzartner
Status: NEW → ASSIGNED
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ff58ef6ef9ae Replaced ObjectInspector handling for custom formatter output by separate one. r=nchevobbe

Backed out along with Bug 1801040 for causing failures on browser_webconsole_object_inspector_custom_formatters.js

[task 2022-11-17T10:09:22.056Z] 10:09:22     INFO - TEST-PASS | devtools/client/webconsole/test/browser/browser_webconsole_object_inspector_custom_formatters.js | The custom formatting of the header is correct - 
[task 2022-11-17T10:09:22.057Z] 10:09:22     INFO - Simple test for custom formatted header with body
[task 2022-11-17T10:09:22.057Z] 10:09:22     INFO - Buffered messages finished
[task 2022-11-17T10:09:22.059Z] 10:09:22     INFO - TEST-UNEXPECTED-FAIL | devtools/client/webconsole/test/browser/browser_webconsole_object_inspector_custom_formatters.js | The message is custom formatted - 
[task 2022-11-17T10:09:22.060Z] 10:09:22     INFO - Stack trace:
[task 2022-11-17T10:09:22.060Z] 10:09:22     INFO - chrome://mochikit/content/browser-test.js:test_ok:1457
[task 2022-11-17T10:09:22.061Z] 10:09:22     INFO - chrome://mochitests/content/browser/devtools/client/webconsole/test/browser/browser_webconsole_object_inspector_custom_formatters.js:testCustomFormatting:87
[task 2022-11-17T10:09:22.061Z] 10:09:22     INFO - chrome://mochitests/content/browser/devtools/client/webconsole/test/browser/browser_webconsole_object_inspector_custom_formatters.js:testObjectWithFormattedHeaderAndBody:64
[task 2022-11-17T10:09:22.062Z] 10:09:22     INFO - chrome://mochitests/content/browser/devtools/client/webconsole/test/browser/browser_webconsole_object_inspector_custom_formatters.js:null:25
[task 2022-11-17T10:09:22.062Z] 10:09:22     INFO - chrome://mochikit/content/browser-test.js:handleTask:1045
[task 2022-11-17T10:09:22.063Z] 10:09:22     INFO - chrome://mochikit/content/browser-test.js:_runTaskBasedTest:1117
[task 2022-11-17T10:09:22.063Z] 10:09:22     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1252
[task 2022-11-17T10:09:22.063Z] 10:09:22     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:1034
[task 2022-11-17T10:09:22.064Z] 10:09:22     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1036
[task 2022-11-17T10:09:22.064Z] 10:09:22     INFO - TEST-PASS | devtools/client/webconsole/test/browser/browser_webconsole_object_inspector_custom_formatters.js | The variable 'formatted' must be unchanged - 0 == 0 - 
Flags: needinfo?(sebastianzartner)

my bad, I'll have a look at those

Flags: needinfo?(sebastianzartner)
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7d0360568cfa Replaced ObjectInspector handling for custom formatter output by separate one. r=nchevobbe
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 109 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: