Open Bug 1843438 Opened 3 years ago Updated 3 months ago

Use an actual HTML file for JSON Viewer

Categories

(DevTools :: JSON Viewer, task, P3)

task

Tracking

(Not tracked)

People

(Reporter: ochameau, Unassigned)

References

Details

Attachments

(1 external file)

With work from bug 1792803, we should be able to replace the HTML string with an actual HTML file:
https://searchfox.org/mozilla-central/rev/1cfd3a3bc76a8d09cb4266576f30802753a80c83/devtools/client/jsonview/converter-child.js#324-355

This would better align with how PDF.JS is implemented and reduce the implementation differences between the two codebases.

This avoid having to build up the HTML page as a string in the converter.
This aligns JSON Viewer with PDF.js.

The main issue is that the JSON file request runs in parallel with the JSON Viewer HTML page load.
So we have to coordinate the two via tryFlushingDataToJsonViewerDocument.

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

Attachment

General

Created:
Updated:
Size: