Changeset 252197 in webkit


Ignore:
Timestamp:
Nov 7, 2019 11:46:41 AM (4 years ago)
Author:
Devin Rousso
Message:

Web Inspector: Uncaught Exception: Unable to get object details - GlobalObject
https://bugs.webkit.org/show_bug.cgi?id=203930
<rdar://problem/56960937>

In r248286, calls to Heap.snapshot, Heap.getPreview, and Heap.getRemoteObject were
moved to the WI.HeapManager instead of being inside view code. During this move, extra
WI.reportInternalError calls were added, which wasn't entirely correct as it is fully
possible (and expected) that any of these commands are invoked with old heap snapshot nodes
that may no longer exist. As such, calling any error an "internal error" isn't strictly
correct, and instead should just be a log. Also, the frontend code that calls these commands
is able to handle errors, again because it is expected.

Reviewed by Brian Burg.

  • UserInterface/Controllers/HeapManager.js:

(WI.HeapManager.prototype.snapshot):
(WI.HeapManager.prototype.getPreview):
(WI.HeapManager.prototype.getRemoteObject):

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r252168 r252197  
     12019-11-07  Devin Rousso  <drousso@apple.com>
     2
     3        Web Inspector: Uncaught Exception: Unable to get object details - GlobalObject
     4        https://bugs.webkit.org/show_bug.cgi?id=203930
     5        <rdar://problem/56960937>
     6
     7        In r248286, calls to `Heap.snapshot`, `Heap.getPreview`, and `Heap.getRemoteObject` were
     8        moved to the `WI.HeapManager` instead of being inside view code. During this move, extra
     9        `WI.reportInternalError` calls were added, which wasn't entirely correct as it is fully
     10        possible (and expected) that any of these commands are invoked with old heap snapshot nodes
     11        that may no longer exist. As such, calling any error an "internal error" isn't strictly
     12        correct, and instead should just be a log. Also, the frontend code that calls these commands
     13        is able to handle errors, again because it is expected.
     14
     15        Reviewed by Brian Burg.
     16
     17        * UserInterface/Controllers/HeapManager.js:
     18        (WI.HeapManager.prototype.snapshot):
     19        (WI.HeapManager.prototype.getPreview):
     20        (WI.HeapManager.prototype.getRemoteObject):
     21
    1222019-11-06  Nikita Vasilyev  <nvasilyev@apple.com>
    223
  • trunk/Source/WebInspectorUI/UserInterface/Controllers/HeapManager.js

    r251227 r252197  
    9191        target.HeapAgent.snapshot((error, timestamp, snapshotStringData) => {
    9292            if (error)
    93                 WI.reportInternalError(error);
     93                console.error(error);
    9494            callback(error, timestamp, snapshotStringData);
    9595        });
     
    104104        target.HeapAgent.getPreview(node.id, (error, string, functionDetails, preview) => {
    105105            if (error)
    106                 WI.reportInternalError(error);
     106                console.error(error);
    107107            callback(error, string, functionDetails, preview);
    108108        });
     
    117117        target.HeapAgent.getRemoteObject(node.id, objectGroup, (error, result) => {
    118118            if (error)
    119                 WI.reportInternalError(error);
     119                console.error(error);
    120120            callback(error, result);
    121121        });
Note: See TracChangeset for help on using the changeset viewer.