WebSocket Chinese JSON data displays correctly in Chrome but appears garbled in Firefox DevTools
Categories
(DevTools :: Netmonitor, defect, P3)
Tracking
(Not tracked)
People
(Reporter: ba1183752006, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
|
75.48 KB,
image/png
|
Details |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:150.0) Gecko/20100101 Firefox/150.0
Steps to reproduce:
The WebSocket API returns JSON data containing Chinese characters.
Actual results:
When inspecting the WebSocket messages using browser DevTools (F12), Chrome correctly displays the Chinese text, but in Firefox the same messages appear as garbled/incorrect characters.
The WebSocket API returns JSON data containing Chinese characters. In Chrome DevTools (F12), the WebSocket messages are displayed correctly. In Firefox, the Console output of the same WebSocket data correctly shows Chinese characters, but the Network panel displays the same WebSocket frames as garbled or incorrectly encoded text. This indicates the issue is likely limited to Firefox Network panel’s decoding/rendering of WebSocket payloads, rather than the actual data or transport layer.
Expected results:
The expected behavior is that Firefox Network panel should display the same readable Chinese text as Chrome
Comment 1•2 days ago
|
||
The Bugbug bot thinks this bug should belong to the 'DevTools::General' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 2•23 hours ago
•
|
||
Adding an easy STR
- Open https://echo.websocket.org/.ws
- Open the netmonitor
- Reload the page to see the websocket request
- Select the request and go to the Response side panel
- Click "pause messages" on the Webpage (This just reduces the messages noise)
- Enter "網站有中、英文版本,也有繁、簡體版,可通過每頁左上角的連結隨時調整" into the message box and click "Send message"
- See the message in the Response Panel
Updated•22 hours ago
|
Description
•