<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>159787</bug_id>
          
          <creation_ts>2016-07-14 14:52:48 -0700</creation_ts>
          <short_desc>Web Inspector: Uncaught Exception: undefined is not an object (evaluating &apos;this._selectorSection.update&apos;)</short_desc>
          <delta_ts>2016-08-08 10:44:37 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Web Inspector</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc>http://n12v.com/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>159745</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Nikita Vasilyev">nvasilyev</reporter>
          <assigned_to name="Matt Baker">mattbaker</assigned_to>
          <cc>bburg</cc>
    
    <cc>joepeck</cc>
    
    <cc>mattbaker</cc>
    
    <cc>nvasilyev</cc>
    
    <cc>timothy</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1211159</commentid>
    <comment_count>0</comment_count>
    <who name="Nikita Vasilyev">nvasilyev</who>
    <bug_when>2016-07-14 14:52:48 -0700</bug_when>
    <thetext>-------
Inspected URL:        http://n12v.com/
Loading completed:    true
Frontend User Agent:  Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/602.1.41+ (KHTML, like Gecko)

Uncaught Exceptions:
 - undefined is not an object (evaluating &apos;this._selectorSection.update&apos;) (at VisualStyleDetailsPanel.js:64:34)
    refresh @ VisualStyleDetailsPanel.js:64:34
    _refreshPreservingScrollPosition @ StyleDetailsPanel.js:143:21
    nodeStylesRefreshed @ StyleDetailsPanel.js:114:50
    dispatch @ Object.js:162:30
    dispatchEventToListeners @ Object.js:169:17
    fetchedComputedStyle @ DOMNodeStyles.js:228:42
    fetchedComputedStyle @ [native code]
    _dispatchResponseToCallback @ InspectorBackend.js:311:27
    _dispatchResponse @ InspectorBackend.js:281:45
    dispatch @ InspectorBackend.js:157:35
    dispatchNextQueuedMessageFromBackend @ MessageDispatcher.js:42:34

Additional Details:
    cause --&gt; An uncaught exception was thrown while dispatching response callback for command CSS.getComputedStyleForNode.
-------

* STEPS TO REPRODUCE
1. Open http://n12v.com
2. Select Elements tab
3. Select &quot;Styles — Visual&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1211160</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2016-07-14 14:53:28 -0700</bug_when>
    <thetext>&lt;rdar://problem/27358715&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1211163</commentid>
    <comment_count>2</comment_count>
    <who name="Nikita Vasilyev">nvasilyev</who>
    <bug_when>2016-07-14 14:54:29 -0700</bug_when>
    <thetext>Must be a regression. I can&apos;t reproduce it in Safari TP 8.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1211164</commentid>
    <comment_count>3</comment_count>
    <who name="Nikita Vasilyev">nvasilyev</who>
    <bug_when>2016-07-14 14:56:57 -0700</bug_when>
    <thetext>Selecting &quot;Styles — Computed&quot; also causes an uncaught exception:

Uncaught Exceptions:
 - undefined is not an object (evaluating &apos;this._propertiesTextEditor.style = this.nodeStyles.computedStyle&apos;) (at ComputedStyleDetailsPanel.js:130:35)
    refresh @ ComputedStyleDetailsPanel.js:130:35
    _refreshPreservingScrollPosition @ StyleDetailsPanel.js:143:21
    nodeStylesRefreshed @ StyleDetailsPanel.js:114:50
    dispatch @ Object.js:162:30
    dispatchEventToListeners @ Object.js:169:17
    fetchedComputedStyle @ DOMNodeStyles.js:228:42
    fetchedComputedStyle @ [native code]
    _dispatchResponseToCallback @ InspectorBackend.js:311:27
    _dispatchResponse @ InspectorBackend.js:281:45
    dispatch @ InspectorBackend.js:157:35
    dispatchNextQueuedMessageFromBackend @ MessageDispatcher.js:42:34

Additional Details:
    cause --&gt; An uncaught exception was thrown while dispatching response callback for command CSS.getComputedStyleForNode.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1211169</commentid>
    <comment_count>4</comment_count>
    <who name="Nikita Vasilyev">nvasilyev</who>
    <bug_when>2016-07-14 15:06:32 -0700</bug_when>
    <thetext>This manifests itself by not showing the selectors list (Style Rules section in the visual styles sidebar) on first open.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1211171</commentid>
    <comment_count>5</comment_count>
    <who name="Nikita Vasilyev">nvasilyev</who>
    <bug_when>2016-07-14 15:14:02 -0700</bug_when>
    <thetext>For the first exception:

WebInspector.VisualStyleDetailsPanel.prototype.refresh gets called before
WebInspector.VisualStyleDetailsPanel.prototype.initialLayout.


    refresh(significantChange)
    {
        if (significantChange)
            this._selectorSection.update(this._nodeStyles);
        else
            this._updateSections();

        super.refresh();
    }

    // Protected

    initialLayout()
    {
        // Selector Section
        this._selectorSection = new WebInspector.VisualStyleSelectorSection(this);
        ...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1211176</commentid>
    <comment_count>6</comment_count>
    <who name="Nikita Vasilyev">nvasilyev</who>
    <bug_when>2016-07-14 15:23:47 -0700</bug_when>
    <thetext>I was able to reproduce it 5 times in a row, but I can&apos;t reproduce it anymore :/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1211201</commentid>
    <comment_count>7</comment_count>
    <who name="Matt Baker">mattbaker</who>
    <bug_when>2016-07-14 16:20:03 -0700</bug_when>
    <thetext>Steps to Reproduce:
1. Select Elements tab
2. If details sidebar is expanded, collapse and reload Inspector.
3. Select a different node in the DOM tree
  =&gt; TypeError: undefined is not an object (evaluating &apos;this._classListContainer.hidden&apos;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1211205</commentid>
    <comment_count>8</comment_count>
    <who name="Matt Baker">mattbaker</who>
    <bug_when>2016-07-14 16:22:40 -0700</bug_when>
    <thetext>This is fixed by https://bugs.webkit.org/show_bug.cgi?id=159745.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1211219</commentid>
    <comment_count>9</comment_count>
    <who name="Nikita Vasilyev">nvasilyev</who>
    <bug_when>2016-07-14 16:31:19 -0700</bug_when>
    <thetext>(In reply to comment #7)
&gt; Steps to Reproduce:
&gt; 1. Select Elements tab
&gt; 2. If details sidebar is expanded, collapse and reload Inspector.
&gt; 3. Select a different node in the DOM tree
&gt;   =&gt; TypeError: undefined is not an object (evaluating
&gt; &apos;this._classListContainer.hidden&apos;)

I&apos;m getting this exception:

 - TypeError: undefined is not an object (evaluating &apos;this._classListContainer.hidden&apos;) (at CSSStyleDetailsSidebarPanel.js:72:38)
    refresh @ CSSStyleDetailsSidebarPanel.js:72:38
    needsRefresh @ DetailsSidebarPanel.js:68:21
    domNode @ DOMDetailsSidebarPanel.js:81:26
    inspect @ DOMDetailsSidebarPanel.js:58:13
    showDetailsSidebarPanels @ ContentBrowserTabContentView.js:145:37
    dispatch @ Object.js:162:30
    dispatchEventToListeners @ Object.js:169:17
    _dispatchCurrentRepresentedObjectsDidChangeEvent @ ContentBrowser.js:437:38
    performWork @ Utilities.js:1255:43</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1218524</commentid>
    <comment_count>10</comment_count>
    <who name="Timothy Hatcher">timothy</who>
    <bug_when>2016-08-08 10:44:37 -0700</bug_when>
    <thetext>Is this fixed or not?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>