Title: [253329] trunk/Source/WebInspectorUI
Revision
253329
Author
[email protected]
Date
2019-12-10 10:35:14 -0800 (Tue, 10 Dec 2019)

Log Message

Web Inspector: Uncaught Exception: this._objectTree.resetPropertyPath is not a function. (In 'this._objectTree.resetPropertyPath()', 'this._objectTree.resetPropertyPath' is undefined)
https://bugs.webkit.org/show_bug.cgi?id=205026

Reviewed by Brian Burg.

* UserInterface/Views/ConsoleMessageView.js:
(WI.ConsoleMessageView.prototype.clearSessionState):
The `_objectTree` can also be an `WI.ErrorObjectView`, which doesn't have a property path.

Modified Paths

Diff

Modified: trunk/Source/WebInspectorUI/ChangeLog (253328 => 253329)


--- trunk/Source/WebInspectorUI/ChangeLog	2019-12-10 17:15:20 UTC (rev 253328)
+++ trunk/Source/WebInspectorUI/ChangeLog	2019-12-10 18:35:14 UTC (rev 253329)
@@ -1,3 +1,14 @@
+2019-12-10  Devin Rousso  <[email protected]>
+
+        Web Inspector: Uncaught Exception: this._objectTree.resetPropertyPath is not a function. (In 'this._objectTree.resetPropertyPath()', 'this._objectTree.resetPropertyPath' is undefined)
+        https://bugs.webkit.org/show_bug.cgi?id=205026
+
+        Reviewed by Brian Burg.
+
+        * UserInterface/Views/ConsoleMessageView.js:
+        (WI.ConsoleMessageView.prototype.clearSessionState):
+        The `_objectTree` can also be an `WI.ErrorObjectView`, which doesn't have a property path.
+
 2019-12-06  Devin Rousso  <[email protected]>
 
         Web Inspector: Uncaught Exception: Missing node for given nodeId

Modified: trunk/Source/WebInspectorUI/UserInterface/Views/ConsoleMessageView.js (253328 => 253329)


--- trunk/Source/WebInspectorUI/UserInterface/Views/ConsoleMessageView.js	2019-12-10 17:15:20 UTC (rev 253328)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/ConsoleMessageView.js	2019-12-10 18:35:14 UTC (rev 253329)
@@ -253,7 +253,7 @@
         for (let node of this._messageBodyElement.querySelectorAll(".console-saved-variable"))
             node.remove();
 
-        if (this._objectTree)
+        if (this._objectTree instanceof WI.ObjectTreeView)
             this._objectTree.resetPropertyPath();
 
         // FIXME: <https://webkit.org/b/196956> Web Inspector: use weak collections for holding event listeners
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to