<?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>179347</bug_id>
          
          <creation_ts>2017-11-06 15:30:37 -0800</creation_ts>
          <short_desc>Web Inspector: Canvas Tab: reloading from canvas overview after making a recording will show the recording instead of overview</short_desc>
          <delta_ts>2017-12-04 17:41:01 -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>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc>http://acko.net</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>173807</blocked>
    
    <blocked>175485</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Blaze Burg">bburg</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bburg</cc>
    
    <cc>hi</cc>
    
    <cc>inspector-bugzilla-changes</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1368808</commentid>
    <comment_count>0</comment_count>
    <who name="Blaze Burg">bburg</who>
    <bug_when>2017-11-06 15:30:37 -0800</bug_when>
    <thetext>Steps to reproduce:

1. Create canvas recording on acko.net main canvas
2. Go back to the canvas overview
3. Reload the page
=&gt; Jumps to the last created recording, rather than staying on overview page

This doesn&apos;t make any sense from a UX perspective. Devin wrote some code to treat orphaned recordings the same as imported recordings, but they shouldn&apos;t be auto selected this way.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1368809</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2017-11-06 15:31:03 -0800</bug_when>
    <thetext>&lt;rdar://problem/35375421&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1368816</commentid>
    <comment_count>2</comment_count>
    <who name="Devin Rousso">hi</who>
    <bug_when>2017-11-06 15:57:28 -0800</bug_when>
    <thetext>I don&apos;t think that they are auto-selected.  My guess as to what is happening is that we are never switching views away from the Recording, which is why it stays visible.  From what I remember, this is controlled by CanvasTabContentView.prototype.restoreStateFromCookie (and saveStateToCookie), so if we want to do this then we probably just want to modify those functions.

Personally, if I am viewing a recording (which is pretty independent of the page itself), I wouldn&apos;t want the recording to be deselected/hidden if I refresh the page.  Due to the exportability of Recordings, I don&apos;t see them as being &quot;restricted&quot; to a particular instance of a given page.  I see them more as a snapshot in time of something that happened, and WebInspector is just the means by which we can view that snapshot.  I can see the argument against this train of thought, however, so I could go either way.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1369017</commentid>
    <comment_count>3</comment_count>
    <who name="Blaze Burg">bburg</who>
    <bug_when>2017-11-07 08:45:29 -0800</bug_when>
    <thetext>(In reply to Devin Rousso from comment #2)
&gt; I don&apos;t think that they are auto-selected.  My guess as to what is happening
&gt; is that we are never switching views away from the Recording, which is why
&gt; it stays visible.  From what I remember, this is controlled by
&gt; CanvasTabContentView.prototype.restoreStateFromCookie (and
&gt; saveStateToCookie), so if we want to do this then we probably just want to
&gt; modify those functions.
&gt; 
&gt; Personally, if I am viewing a recording (which is pretty independent of the
&gt; page itself), I wouldn&apos;t want the recording to be deselected/hidden if I
&gt; refresh the page.  Due to the exportability of Recordings, I don&apos;t see them
&gt; as being &quot;restricted&quot; to a particular instance of a given page.  I see them
&gt; more as a snapshot in time of something that happened, and WebInspector is
&gt; just the means by which we can view that snapshot.  I can see the argument
&gt; against this train of thought, however, so I could go either way.

I&apos;m not proposing to hide the recording details and go back to overview when the page reloads. I&apos;m proposing that we stay on the overview when the page reloads, but currently it jumps to a recording I wasn&apos;t looking at previously.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1369127</commentid>
    <comment_count>4</comment_count>
    <who name="Devin Rousso">hi</who>
    <bug_when>2017-11-07 12:12:15 -0800</bug_when>
    <thetext>(In reply to Brian Burg from comment #3)
&gt; I&apos;m not proposing to hide the recording details and go back to overview when
&gt; the page reloads. I&apos;m proposing that we stay on the overview when the page
&gt; reloads, but currently it jumps to a recording I wasn&apos;t looking at
&gt; previously.
I&apos;m not seeing this issue on ToT.  I followed your steps to reproduce, and when I refreshed the page I stayed on the overview view.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1370402</commentid>
    <comment_count>5</comment_count>
    <who name="Blaze Burg">bburg</who>
    <bug_when>2017-11-10 10:19:13 -0800</bug_when>
    <thetext>I can&apos;t find a reliable reproduction, so let&apos;s close this.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>