WebSocket panel crashes in WebConsole
Categories
(DevTools :: Console, defect, P2)
Tracking
(firefox69 fixed)
Tracking | Status | |
---|---|---|
firefox69 | --- | fixed |
People
(Reporter: christoph-wa, Assigned: tanhengyeow)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:69.0) Gecko/20100101 Firefox/69.0
Steps to reproduce:
- Enable 'Requests' in WebConsole
- Select request which is a WebSocket connection
- Select 'WebSocket' Tab
Actual results:
{
"id": "server1.conn2.netEvent892",
"actor": "server1.conn2.netEvent892",
"level": "log",
"isXHR": false,
"request": {
"url": "https://s-usc1c-nss-210.firebaseio.com/...",
"method": "GET",
"headersSize": 515
},
"response": {
"httpVersion": "HTTP/1.1",
"status": "101",
"statusText": "Switching Protocols",
"headersSize": 254,
"remoteAddress": "2600:1901:0:94b6::",
"remotePort": 443,
"content": {
"mimeType": "text/plain"
},
"bodySize": 0,
"transferredSize": 254
},
"source": "network",
"type": "log",
"groupId": null,
"timeStamp": 1561571288618,
"indent": 0,
"updates": [
"requestHeaders",
"requestCookies",
"responseStart",
"eventTimings",
"securityInfo",
"responseHeaders",
"responseCookies",
"responseContent"
],
"openedOnce": true,
"securityInfo": null,
"requestHeadersFromUploadStream": null,
"private": false,
"url": "https://s-usc1c-nss-210.firebaseio.com/....",
"urlDetails": {
"baseNameWithQuery": "...",
"host": "s-usc1c-nss-210.firebaseio.com",
"scheme": "https",
"unicodeUrl": "https://s-usc1c-nss-210.firebaseio.com/....",
"isLocal": null,
"url": "https://s-usc1c-nss-210.firebaseio.com/.,,"
},
"method": "GET",
"cause": {
"type": "websocket",
"loadingDocumentUri": "file:///Users/christophwalch...",
"stacktraceAvailable": false
},
"lastExecutionPoint": {
"point": {
"checkpoint": 0,
"progress": 0
},
"messageCount": 12
}
}
console.error: (new TypeError("state.webSockets is undefined", "resource://devtools/client/netmonitor/src/selectors/web-sockets.js", 8))
Reporter | ||
Updated•5 years ago
|
Comment 1•5 years ago
|
||
@Heng Yeow: can you please take a look at this?
Honza
Assignee | ||
Comment 2•5 years ago
|
||
The WebSocketsPanel
reaches out to the netmonitor's state to fetch WebSocket frames for display in the panel.
I believe the state is not available in the console panel when WebSocketsPanel
is displayed through the console, thus the error. After discussion with @nchevobbe through Slack, the consensus was to not show WebSocketsPanel
in the console panel for now until we figure out a good solution to get the data in the WebSocketsPanel
. Will be submitting a patch for this.
Assignee | ||
Comment 3•5 years ago
|
||
Hide WebSocketsPanel in console.
Updated•5 years ago
|
Updated•5 years ago
|
Pushed by jodvarko@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/89d1a2584683 WebSocket panel crashes in WebConsole. r=nchevobbe,Honza
Comment 5•5 years ago
|
||
bugherder |
Description
•