RESOLVED FIXED 170036
Web Inspector: Adding a WebSocket message may change the currently selected resource
https://bugs.webkit.org/show_bug.cgi?id=170036
Summary Web Inspector: Adding a WebSocket message may change the currently selected r...
Nikita Vasilyev
Reported 2017-03-23 16:46:04 PDT
Created attachment 305243 [details] [Animated GIF] Bug Steps: 1. Open Network tab. 2. Navigate to http://www.websocket.org/echo.html. 3. On this web page, click "Connect" button. 4. In the Network left sidebar, select "echo.websocket.org" by clicking the right arrow icon right next to it. 5. On the web page, click "Send" to send a Web Socket message. Actual: Some seemingly random resource get selected. Expected: "echo.websocket.org" is still the selected resource. Notes: To reproduce this, you must have more than one resource visible in the Network sidebar.
Attachments
[Animated GIF] Bug (235.26 KB, image/gif)
2017-03-23 16:46 PDT, Nikita Vasilyev
no flags
Patch (2.25 KB, patch)
2017-03-24 13:52 PDT, Nikita Vasilyev
no flags
Radar WebKit Bug Importer
Comment 1 2017-03-23 16:46:19 PDT
Nikita Vasilyev
Comment 2 2017-03-23 16:58:15 PDT
Exception that happens at the same time: [Error] Unknown tree element – undefined _treeSelectionDidChange (NetworkGridContentView.js:372) dispatch (Object.js:170) dispatchEventToListeners (Object.js:177) deselect (TreeElement.js:543) removeChildAtIndex (TreeOutline.js:244) removeChild (TreeOutline.js:285) _refreshDirtyDataGridNodes (TimelineDataGrid.js:272) _refreshDirtyDataGridNodes --- requestAnimationFrame --- dataGridNodeNeedsRefresh (TimelineDataGrid.js:198) _needsRefresh (ResourceTimelineDataGridNode.js:270) dispatch (Object.js:170) dispatchEventToListeners (Object.js:177) increaseSize (Resource.js:602) addFrame (WebSocketsResource.js:67) ...
Nikita Vasilyev
Comment 3 2017-03-24 12:12:56 PDT
Something happens in WebInspector.TimelineDataGrid that this.selectedNode no longer corresponds to an actual selected node. Also, resource selection changes for every resource, not just a WebSocket type, when increaseSize gets called. This is just wasn't as noticeable for other resource types.
Nikita Vasilyev
Comment 4 2017-03-24 13:52:47 PDT
Joseph Pecoraro
Comment 5 2017-03-24 14:05:28 PDT
Comment on attachment 305322 [details] Patch r=me
WebKit Commit Bot
Comment 6 2017-03-24 16:43:59 PDT
Comment on attachment 305322 [details] Patch Clearing flags on attachment: 305322 Committed r214387: <http://trac.webkit.org/changeset/214387>
WebKit Commit Bot
Comment 7 2017-03-24 16:44:04 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.