<?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>240769</bug_id>
          
          <creation_ts>2022-05-21 21:03:45 -0700</creation_ts>
          <short_desc>WebInspector: Regression(r292754) Uncaught Exception: TypeError: undefined is not an object (evaluating &apos;this.ownerDocument.documentURL&apos;)</short_desc>
          <delta_ts>2022-05-22 11:01:46 -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>FIXED</resolution>
          
          
          <bug_file_loc>https://patrickangle-static.s3.amazonaws.com/demos/grids/index.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>189687</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Patrick Angle">pangle</reporter>
          <assigned_to name="Patrick Angle">pangle</assigned_to>
          <cc>inspector-bugzilla-changes</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1870989</commentid>
    <comment_count>0</comment_count>
    <who name="Patrick Angle">pangle</who>
    <bug_when>2022-05-21 21:03:45 -0700</bug_when>
    <thetext>Uncaught Exception in Web Inspector. Seems like I missed updating the ownerDocument somewhere :/

Steps to Reproduce:
1. Inspect https://patrickangle-static.s3.amazonaws.com/demos/grids/index.html
2. Reload (from origin seems more reliable repro?)

Uncaught Exceptions:
-----------------------
 - TypeError: undefined is not an object (evaluating &apos;this.ownerDocument.documentURL&apos;) (at DOMNode.js:1257:37)
    _createLayoutOverlayColorSettingIfNeeded @ DOMNode.js:1257:37
    layoutOverlayColor @ DOMNode.js:706:54
    layout @ NodeOverlayListSection.js:124:81
    _layoutSubtree @ View.js:308:20
    _layoutSubtree @ View.js:319:32
    _visitViewTreeForLayout @ View.js:378:36
-----------------------

Notes:
Inspected URL:        https://patrickangle-static.s3.amazonaws.com/demos/grids/index.html
Loading completed:    true
Frontend User Agent:  Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1870990</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-05-21 21:04:06 -0700</bug_when>
    <thetext>&lt;rdar://problem/93715304&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1870993</commentid>
    <comment_count>2</comment_count>
    <who name="Patrick Angle">pangle</who>
    <bug_when>2022-05-21 23:11:53 -0700</bug_when>
    <thetext>The frontend representation of the DOM tree does not match the backend representation. I suspect this is not the only bad thing happening as a result.

Preparing a revert for the caused-by and its followup since the changes were relatively self-contained and the bug they were fixing is less awful than the new results (console inspection of nodes that are detached and reattached without getting the node from the page again).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1870994</commentid>
    <comment_count>3</comment_count>
    <who name="Patrick Angle">pangle</who>
    <bug_when>2022-05-21 23:56:15 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/890</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1871014</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-05-22 11:01:45 -0700</bug_when>
    <thetext>Committed r294621 (250847@main): &lt;https://commits.webkit.org/250847@main&gt;

Reviewed commits have been landed. Closing PR #890 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>