Title: [195344] trunk/Source/WebInspectorUI
Revision
195344
Author
[email protected]
Date
2016-01-19 22:22:19 -0800 (Tue, 19 Jan 2016)

Log Message

Web Inspector: Uncaught exception when logging an Error object
https://bugs.webkit.org/show_bug.cgi?id=153258
<rdar://problem/24249068>

Patch by Joseph Pecoraro <[email protected]> on 2016-01-19
Reviewed by Timothy Hatcher.

* UserInterface/Views/ErrorObjectView.js:
(WebInspector.ErrorObjectView):
Initialize members that are used later for clarity.

(WebInspector.ErrorObjectView.prototype.collapse):
(WebInspector.ErrorObjectView.prototype.expand):
This never has a previewView, remove it.

(WebInspector.ErrorObjectView.prototype.appendTitleSuffix):
Add the suffix ("= $1") after the description and before the
content tree outline.

Modified Paths

Diff

Modified: trunk/Source/WebInspectorUI/ChangeLog (195343 => 195344)


--- trunk/Source/WebInspectorUI/ChangeLog	2016-01-20 06:20:58 UTC (rev 195343)
+++ trunk/Source/WebInspectorUI/ChangeLog	2016-01-20 06:22:19 UTC (rev 195344)
@@ -1,3 +1,23 @@
+2016-01-19  Joseph Pecoraro  <[email protected]>
+
+        Web Inspector: Uncaught exception when logging an Error object
+        https://bugs.webkit.org/show_bug.cgi?id=153258
+        <rdar://problem/24249068>
+
+        Reviewed by Timothy Hatcher.
+
+        * UserInterface/Views/ErrorObjectView.js:
+        (WebInspector.ErrorObjectView):
+        Initialize members that are used later for clarity.
+
+        (WebInspector.ErrorObjectView.prototype.collapse):
+        (WebInspector.ErrorObjectView.prototype.expand):
+        This never has a previewView, remove it.
+
+        (WebInspector.ErrorObjectView.prototype.appendTitleSuffix):
+        Add the suffix ("= $1") after the description and before the
+        content tree outline.
+
 2016-01-19  Nikita Vasilyev  <[email protected]>
 
         Web Inspector: Subclasses of WebInspector.Object shouldn't overwrite this._listeners

Modified: trunk/Source/WebInspectorUI/UserInterface/Views/ErrorObjectView.js (195343 => 195344)


--- trunk/Source/WebInspectorUI/UserInterface/Views/ErrorObjectView.js	2016-01-20 06:20:58 UTC (rev 195343)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/ErrorObjectView.js	2016-01-20 06:22:19 UTC (rev 195344)
@@ -33,6 +33,9 @@
 
         this._object = object;
 
+        this._expanded = false;
+        this._hasStackTrace = false;
+
         this._element = document.createElement("div");
         this._element.classList.add("error-object");
         var previewElement = WebInspector.FormattedValue.createElementForError(this._object);
@@ -103,9 +106,6 @@
         this._expanded = true;
         this._element.classList.add("expanded");
 
-        if (this._previewView)
-            this._previewView.showTitle();
-
         this.update();
     }
 
@@ -116,9 +116,11 @@
 
         this._expanded = false;
         this._element.classList.remove("expanded");
+    }
 
-        if (this._previewView)
-            this._previewView.showPreview();
+    appendTitleSuffix(suffixElement)
+    {
+        this._element.insertBefore(suffixElement, this._outlineElement);
     }
 
     // Private
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to