Changeset 195344 in webkit


Ignore:
Timestamp:
Jan 19, 2016 10:22:19 PM (8 years ago)
Author:
commit-queue@webkit.org
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 <Joseph Pecoraro> 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.

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r195343 r195344  
     12016-01-19  Joseph Pecoraro  <pecoraro@apple.com>
     2
     3        Web Inspector: Uncaught exception when logging an Error object
     4        https://bugs.webkit.org/show_bug.cgi?id=153258
     5        <rdar://problem/24249068>
     6
     7        Reviewed by Timothy Hatcher.
     8
     9        * UserInterface/Views/ErrorObjectView.js:
     10        (WebInspector.ErrorObjectView):
     11        Initialize members that are used later for clarity.
     12
     13        (WebInspector.ErrorObjectView.prototype.collapse):
     14        (WebInspector.ErrorObjectView.prototype.expand):
     15        This never has a previewView, remove it.
     16
     17        (WebInspector.ErrorObjectView.prototype.appendTitleSuffix):
     18        Add the suffix ("= $1") after the description and before the
     19        content tree outline.
     20
    1212016-01-19  Nikita Vasilyev  <nvasilyev@apple.com>
    222
  • trunk/Source/WebInspectorUI/UserInterface/Views/ErrorObjectView.js

    r195303 r195344  
    3333
    3434        this._object = object;
     35
     36        this._expanded = false;
     37        this._hasStackTrace = false;
    3538
    3639        this._element = document.createElement("div");
     
    104107        this._element.classList.add("expanded");
    105108
    106         if (this._previewView)
    107             this._previewView.showTitle();
    108 
    109109        this.update();
    110110    }
     
    117117        this._expanded = false;
    118118        this._element.classList.remove("expanded");
     119    }
    119120
    120         if (this._previewView)
    121             this._previewView.showPreview();
     121    appendTitleSuffix(suffixElement)
     122    {
     123        this._element.insertBefore(suffixElement, this._outlineElement);
    122124    }
    123125
Note: See TracChangeset for help on using the changeset viewer.