HTML previews in the netmonitor should not download external stylesheets
Categories
(DevTools :: Netmonitor, defect, P3)
Tracking
(Not tracked)
People
(Reporter: jdescottes, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
695.56 KB,
image/png
|
Details |
STRs:
- open devtools > network
- open mozilla.org
- inspect the document's request
- click on the response tab
ER: The preview rendered in the network response tab should not initiate additional network requests for stylesheets, and possibly the content should not look like a fully functional page.
AR: The preview looks exactly like the actual page, but has javascript disabled
For reference, Chrome renders the preview without any style applied. The main use case for this preview tab is usually to read server side errors rendered as HTML, and those should be fine with no stylesheet applied.
Updated•2 years ago
|
Reporter | ||
Comment 1•2 years ago
|
||
The suggestion here is to use a principal which would have very limited privileges and would not be allowed to download resources (maybe null principal?)
Reporter | ||
Updated•2 years ago
|
Comment 2•2 years ago
|
||
I was wondering if the method we are using in jsonviewer could be useful here:
https://searchfox.org/mozilla-central/rev/8cfe1317c14fe6c997193141b8807d58f92c4f48/devtools/client/jsonview/converter-child.js#109-112
Description
•