⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 248720 in webkit


Ignore:
Timestamp:
Aug 15, 2019, 10:15:15 AM (7 years ago)
Author:
Devin Rousso
Message:

Web Inspector: Uncaught Exception: Content request failed.
https://bugs.webkit.org/show_bug.cgi?id=200704
<rdar://problem/54279372>

Reviewed by Brian Burg.

  • UserInterface/Models/WebSocketResource.js:

(WI.WebSocketResource.prototype.requestContentFromBackend): Added.
Add an "assert not reached", as WebSocket resources don't really have "content", instead
having a list of send/receive frames.

  • UserInterface/Views/ResourceClusterContentView.js:

(WI.ResourceClusterContentView.prototype._tryEnableCustomResponseContentView):
Don't attempt to request the content of any WI.WebSocketResource for the reason above.

Location:
trunk/Source/WebInspectorUI
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r248683 r248720  
     12019-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
    1182019-08-14  Devin Rousso  <drousso@apple.com>
    219
  • trunk/Source/WebInspectorUI/UserInterface/Models/WebSocketResource.js

    r236891 r248720  
    8686    }
    8787
     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
    8897    // Private
    8998
  • trunk/Source/WebInspectorUI/UserInterface/Views/ResourceClusterContentView.js

    r248637 r248720  
    365365            return;
    366366
     367        // WebSocket resources already use a "custom" response content view.
     368        if (this._resource instanceof WI.WebSocketResource)
     369            return;
     370
    367371        this._resource.requestContent()
    368372        .then(({error, content}) => {
Note: See TracChangeset for help on using the changeset viewer.