Changeset 248720 in webkit
- Timestamp:
- Aug 15, 2019, 10:15:15 AM (7 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
UserInterface/Models/WebSocketResource.js (modified) (1 diff)
-
UserInterface/Views/ResourceClusterContentView.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r248683 r248720 1 2019-08-15 Devin Rousso <drousso@apple.com> 2 3 Web Inspector: Uncaught Exception: Content request failed. 4 https://bugs.webkit.org/show_bug.cgi?id=200704 5 <rdar://problem/54279372> 6 7 Reviewed by Brian Burg. 8 9 * UserInterface/Models/WebSocketResource.js: 10 (WI.WebSocketResource.prototype.requestContentFromBackend): Added. 11 Add an "assert not reached", as WebSocket resources don't really have "content", instead 12 having a list of send/receive frames. 13 14 * UserInterface/Views/ResourceClusterContentView.js: 15 (WI.ResourceClusterContentView.prototype._tryEnableCustomResponseContentView): 16 Don't attempt to request the content of any `WI.WebSocketResource` for the reason above. 17 1 18 2019-08-14 Devin Rousso <drousso@apple.com> 2 19 -
trunk/Source/WebInspectorUI/UserInterface/Models/WebSocketResource.js
r236891 r248720 86 86 } 87 87 88 // Protected 89 90 requestContentFromBackend() 91 { 92 console.assert(false, "A WebSocket's content was requested. WebSockets do not have content so the request is nonsensical."); 93 94 return super.requestContentFromBackend(); 95 } 96 88 97 // Private 89 98 -
trunk/Source/WebInspectorUI/UserInterface/Views/ResourceClusterContentView.js
r248637 r248720 365 365 return; 366 366 367 // WebSocket resources already use a "custom" response content view. 368 if (this._resource instanceof WI.WebSocketResource) 369 return; 370 367 371 this._resource.requestContent() 368 372 .then(({error, content}) => {
Note:
See TracChangeset
for help on using the changeset viewer.