<?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>158402</bug_id>
          
          <creation_ts>2016-06-05 15:09:17 -0700</creation_ts>
          <short_desc>Web Inspector: main resource not shown in Debugger tab&apos;s text editor when page is reloaded</short_desc>
          <delta_ts>2016-06-07 10:28:17 -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>DUPLICATE</resolution>
          <dup_id>158069</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Blaze Burg">bburg</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bburg</cc>
    
    <cc>graouts</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>1199422</commentid>
    <comment_count>0</comment_count>
      <attachid>280562</attachid>
    <who name="Blaze Burg">bburg</who>
    <bug_when>2016-06-05 15:09:17 -0700</bug_when>
    <thetext>Created attachment 280562
Test case

STEPS TO REPRODUCE:

1. Open the attached page
2. Open the debugger or resources tab
3. Reload the page
4. The main resource tree element in Sources outline should be selected

EXPECTED:

The main resource&apos;s HTML should be displayed in the text editor

ACTUAL:

It&apos;s blank.

NOTES:

 - If you click away to another resource and switch back, the text editor gets populated.
 - If there are other resources in the debugger sidebar like injected scripts, it only reproduces about 20% of the time.
 - It reproduces 100% of the time in the Resources tab.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1199423</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2016-06-05 15:09:32 -0700</bug_when>
    <thetext>&lt;rdar://problem/26642973&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1199526</commentid>
    <comment_count>2</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2016-06-06 01:12:11 -0700</bug_when>
    <thetext>I&apos;m pretty sure this is a dup of the bug you just filed: (bug 158069)
https://bugs.webkit.org/show_bug.cgi?id=158069

My suspect is SourceCodeTextEditor thinking its visible in two tabs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1200106</commentid>
    <comment_count>3</comment_count>
    <who name="Timothy Hatcher">timothy</who>
    <bug_when>2016-06-07 10:28:17 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 158069 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>280562</attachid>
            <date>2016-06-05 15:09:17 -0700</date>
            <delta_ts>2016-06-05 15:09:17 -0700</delta_ts>
            <desc>Test case</desc>
            <filename>click-event-handler.html</filename>
            <type>text/html</type>
            <size>458</size>
            <attacher name="Blaze Burg">bburg</attacher>
            
              <data encoding="base64">PCFkb2N0eXBlIGh0bWw+CjxodG1sPgo8Ym9keSBvbmxvYWQ9InJ1blRlc3QoKSI+CjxzY3JpcHQ+
CgpmdW5jdGlvbiBydW5UZXN0KCkKewogICAgbGV0IGEgPSAoKSA9PiB7IGIoKTsgfTsKICAgIGxl
dCBiID0gKCkgPT4geyBjKCk7IH07CiAgICBsZXQgZCA9IChldmVudCkgPT4gewogICAgICAgIGNv
bnNvbGUuYXNzZXJ0KGV2ZW50KTsKICAgIH07CiAgICBsZXQgYyA9ICgpID0+IHsKICAgICAgICB3
aW5kb3cuYWRkRXZlbnRMaXN0ZW5lcigiY2xpY2siLCBkKTsKICAgICAgICBsZXQgZSA9IG5ldyBN
b3VzZUV2ZW50KCJjbGljayIpOwogICAgICAgIHdpbmRvdy5kaXNwYXRjaEV2ZW50KGUpOwogICAg
fTsKCiAgICBhKCk7Cn0KCjwvc2NyaXB0PgoKPHA+VG8gcmVwcm9kdWNlIHRoZSBidWcsIG9wZW4g
dGhlIFdlYiBJbnNwZWN0b3IgYW5kIHJlbG9hZCB0aGUgcGFnZS48L3A+Cgo8L2JvZHk+CjwvaHRt
bD4=
</data>

          </attachment>
      

    </bug>

</bugzilla>