Open Bug 1951035 Opened 1 year ago Updated 3 months ago

Unicode in devtools' network panel not rendering correct (seems wrong encoding)

Categories

(DevTools :: Netmonitor, defect, P2)

Firefox 135
defect

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: dragove, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

15 bytes, application/json
Details
Attached file demo.json

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:135.0) Gecko/20100101 Firefox/135.0

Steps to reproduce:

in terminal, create a file contains Chinese characters and open it in firefox.
e.g.

echo '{"name":"我"}' > demo.json
firefox demo.json

open devtools, enter network panel and refresh.
click the row captured by network. And look at the response tab.

Also, when I encountered a big json response with Chinese, in the network panel, some of them are correctly rendered but others are broken. It seems they are the same bug.

Actual results:

The content in response tab shows wrong content. But the content on the firefox main content panel is correct

Expected results:

show the correct Chinese character.

The Bugbug bot thinks this bug should belong to the 'DevTools::Netmonitor' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Netmonitor
Product: Firefox → DevTools

Note that this doesn't reproduce if you load the attachment from Bugzilla, because it serves it as UTF8.
You need to download the attachment, and load it as file:// (or probably you can setup a simple server which doesn't set proper encoding either).

Also we seem to have an old bug around this. STR there might be old

See Also: → 1328203

We should check how Firefox renders the character properly (see if there is some kind of character detection to pick the right encoding), and do the same thing

Severity: -- → S3
Priority: -- → P2
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: