Changeset 252197 in webkit
- Timestamp:
- Nov 7, 2019 11:46:41 AM (4 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r252168 r252197 1 2019-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 1 22 2019-11-06 Nikita Vasilyev <nvasilyev@apple.com> 2 23 -
trunk/Source/WebInspectorUI/UserInterface/Controllers/HeapManager.js
r251227 r252197 91 91 target.HeapAgent.snapshot((error, timestamp, snapshotStringData) => { 92 92 if (error) 93 WI.reportInternalError(error);93 console.error(error); 94 94 callback(error, timestamp, snapshotStringData); 95 95 }); … … 104 104 target.HeapAgent.getPreview(node.id, (error, string, functionDetails, preview) => { 105 105 if (error) 106 WI.reportInternalError(error);106 console.error(error); 107 107 callback(error, string, functionDetails, preview); 108 108 }); … … 117 117 target.HeapAgent.getRemoteObject(node.id, objectGroup, (error, result) => { 118 118 if (error) 119 WI.reportInternalError(error);119 console.error(error); 120 120 callback(error, result); 121 121 });
Note: See TracChangeset
for help on using the changeset viewer.