Title: [252197] trunk/Source/WebInspectorUI
Revision
252197
Author
[email protected]
Date
2019-11-07 11:46:41 -0800 (Thu, 07 Nov 2019)

Log 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):

Modified Paths

Diff

Modified: trunk/Source/WebInspectorUI/ChangeLog (252196 => 252197)


--- trunk/Source/WebInspectorUI/ChangeLog	2019-11-07 19:42:10 UTC (rev 252196)
+++ trunk/Source/WebInspectorUI/ChangeLog	2019-11-07 19:46:41 UTC (rev 252197)
@@ -1,3 +1,24 @@
+2019-11-07  Devin Rousso  <[email protected]>
+
+        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):
+
 2019-11-06  Nikita Vasilyev  <[email protected]>
 
         Web Inspector: Display color picker for p3 colors

Modified: trunk/Source/WebInspectorUI/UserInterface/Controllers/HeapManager.js (252196 => 252197)


--- trunk/Source/WebInspectorUI/UserInterface/Controllers/HeapManager.js	2019-11-07 19:42:10 UTC (rev 252196)
+++ trunk/Source/WebInspectorUI/UserInterface/Controllers/HeapManager.js	2019-11-07 19:46:41 UTC (rev 252197)
@@ -90,7 +90,7 @@
         let target = WI.assumingMainTarget();
         target.HeapAgent.snapshot((error, timestamp, snapshotStringData) => {
             if (error)
-                WI.reportInternalError(error);
+                console.error(error);
             callback(error, timestamp, snapshotStringData);
         });
     }
@@ -103,7 +103,7 @@
         let target = WI.assumingMainTarget();
         target.HeapAgent.getPreview(node.id, (error, string, functionDetails, preview) => {
             if (error)
-                WI.reportInternalError(error);
+                console.error(error);
             callback(error, string, functionDetails, preview);
         });
     }
@@ -116,7 +116,7 @@
         let target = WI.assumingMainTarget();
         target.HeapAgent.getRemoteObject(node.id, objectGroup, (error, result) => {
             if (error)
-                WI.reportInternalError(error);
+                console.error(error);
             callback(error, result);
         });
     }
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to