<?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>198594</bug_id>
          
          <creation_ts>2019-06-05 19:31:48 -0700</creation_ts>
          <short_desc>Web Inspector: Uncaught Exception: TypeError: selection.focusNode.closest is not a function. (In &apos;selection.focusNode.closest(&quot;.&quot; + WI.LogContentView.ItemWrapperStyleClassName)&apos;, &apos;selection.focusNode.closest&apos; is undefined)</short_desc>
          <delta_ts>2020-02-04 21:54:45 -0800</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>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=207248</see_also>
          <bug_file_loc>data:text/html,&lt;html&gt;&lt;body&gt;&lt;script&gt;console.log(new Error(&quot;Wrong style in dark mode&quot;));&lt;/script&gt;&lt;/body&gt;&lt;/html&gt;</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Devin Rousso">hi</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>hi</cc>
    
    <cc>inspector-bugzilla-changes</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1542271</commentid>
    <comment_count>0</comment_count>
    <who name="Devin Rousso">hi</who>
    <bug_when>2019-06-05 19:31:48 -0700</bug_when>
    <thetext>-------
Inspected URL:        data:text/html,&lt;html&gt;%20%20%20%20%20&lt;body&gt;%20%20%20%20%20%20%20%20%20&lt;script&gt;%20%20%20%20%20%20%20%20%20%20%20%20%20console.log(new%20Error(&quot;Wrong%20style%20in%20dark%20mode&quot;));%20%20%20%20%20%20%20%20%20&lt;/script&gt;%20%20%20%20%20&lt;/body&gt;%20&lt;/html&gt;
Loading completed:    true
Frontend User Agent:  Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15) AppleWebKit/605.1.15 (KHTML, like Gecko)

Uncaught Exceptions:
 - TypeError: selection.focusNode.closest is not a function. (In &apos;selection.focusNode.closest(&quot;.&quot; + WI.LogContentView.ItemWrapperStyleClassName)&apos;, &apos;selection.focusNode.closest&apos; is undefined) (at LogContentView.js:552:54)
    _mousemove @ LogContentView.js:552:54
    handleEvent @ LogContentView.js:653:28
-------

* STEPS TO REPRODUCE
1. inspect `data:text/html,&lt;html&gt;&lt;body&gt;&lt;script&gt;console.log(new Error(&quot;Wrong style in dark mode&quot;));&lt;/script&gt;&lt;/body&gt;&lt;/html&gt;`
2. open the Console tab
3. mousedown on the &quot;-&quot; separating the &quot;... mode - data: ...&quot;
4. move your mouse up into the empty space above the log and console prompt</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>