<?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>34861</bug_id>
          
          <creation_ts>2010-02-11 14:33:22 -0800</creation_ts>
          <short_desc>Web Inspector: Focusing a resource in the inspector should default to content not header</short_desc>
          <delta_ts>2010-02-11 22:27:03 -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 (Deprecated)</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Oliver Hunt">oliver</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bweinstein</cc>
    
    <cc>joepeck</cc>
    
    <cc>keishi</cc>
    
    <cc>pfeldman</cc>
    
    <cc>pmuellr</cc>
    
    <cc>rik</cc>
    
    <cc>timothy</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>189802</commentid>
    <comment_count>0</comment_count>
    <who name="Oliver Hunt">oliver</who>
    <bug_when>2010-02-11 14:33:22 -0800</bug_when>
    <thetext>When i focus a resource in the inspector I am vastly more likely to want to look at the content than i am to want to look at the header, given the inspecotr now shows the header by default i have got an unnecessary and extraneous additional step to make which did not exist in prior versions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>189804</commentid>
    <comment_count>1</comment_count>
    <who name="Timothy Hatcher">timothy</who>
    <bug_when>2010-02-11 14:40:02 -0800</bug_when>
    <thetext>IIRC we remember the tab you last used and show that tab the next time.

If not we should.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>189805</commentid>
    <comment_count>2</comment_count>
    <who name="Oliver Hunt">oliver</who>
    <bug_when>2010-02-11 14:42:46 -0800</bug_when>
    <thetext>The first time i go to the resource it should go to the content -- once you&apos;ve gone there you can save, the problem is the initial default.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>189863</commentid>
    <comment_count>3</comment_count>
      <attachid>48603</attachid>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2010-02-11 18:32:31 -0800</bug_when>
    <thetext>Created attachment 48603
[PATCH] Default to Content Tab

The initial default is &quot;headers&quot; (from Settings.js):

&gt; this._installSetting(&quot;resourceViewTab&quot;, &quot;resource-view-tab&quot;, &quot;headers&quot;);

But the relevant code does look at the last user action (from ResourceView.js):

&gt; _selectTab: function()
&gt; {
&gt;     if (this._headersVisible) {
&gt;         if (WebInspector.settings.resourceViewTab === &quot;headers&quot;)
&gt;             this._selectHeadersTab();
&gt;         else
&gt;             this._selectContentTab();
&gt;     } else
&gt;         this._innerSelectContentTab();
&gt; },

Sounds like we should just empty out the default, or change it to something like &quot;content&quot; to make it future proof for more tabs. Patch uses &quot;content&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>189904</commentid>
    <comment_count>4</comment_count>
      <attachid>48603</attachid>
    <who name="Timothy Hatcher">timothy</who>
    <bug_when>2010-02-11 19:50:32 -0800</bug_when>
    <thetext>Comment on attachment 48603
[PATCH] Default to Content Tab

Joe!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>189924</commentid>
    <comment_count>5</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2010-02-11 21:15:47 -0800</bug_when>
    <thetext>Committed r54702
	M	WebCore/ChangeLog
	M	WebCore/inspector/front-end/Settings.js
r54702 = a589328be42f4ef10a80d756965b133ab5dc6687 (trunk)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>189944</commentid>
    <comment_count>6</comment_count>
    <who name="Pavel Feldman">pfeldman</who>
    <bug_when>2010-02-11 22:27:03 -0800</bug_when>
    <thetext>(In reply to comment #0)
&gt; When i focus a resource in the inspector I am vastly more likely to want to
&gt; look at the content than i am to want to look at the header, given the
&gt; inspecotr now shows the header by default i have got an unnecessary and
&gt; extraneous additional step to make which did not exist in prior versions.

I am not so sure about the &quot;vastly more likely&quot;. I was considering the time panel as a tool for optimizing for the network. User should have all the meta-information such as query parameters, size, timing, headers under the tips of his fingers. We should provide enough information so that he would not even need to reach out for the content itself. Firebug is we me there.

Of course there are other scenarios such as navigating to the error source (Oliver submitted a separate bug on that, no question it should be fixed). And there is a scenario when you just browse resources and hence need their content since you are just exploring. Or you want to see if some resource has been updated (we should actually provide Cache info such as Firebug in that case).

What was your scenario, Oliver?

Wrt this bug. If we are making contents default, it makes sense to swap the tabs.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>48603</attachid>
            <date>2010-02-11 18:32:31 -0800</date>
            <delta_ts>2010-02-11 19:50:31 -0800</delta_ts>
            <desc>[PATCH] Default to Content Tab</desc>
            <filename>default-to-content.patch</filename>
            <type>text/plain</type>
            <size>1406</size>
            <attacher name="Joseph Pecoraro">joepeck</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYkNvcmUvQ2hhbmdlTG9nIGIvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXgg
ODY3MjRhYi4uM2Y1OWMwZiAxMDA2NDQKLS0tIGEvV2ViQ29yZS9DaGFuZ2VMb2cKKysrIGIvV2Vi
Q29yZS9DaGFuZ2VMb2cKQEAgLTEsMyArMSwxMyBAQAorMjAxMC0wMi0xMSAgSm9zZXBoIFBlY29y
YXJvICA8am9lcGVja0B3ZWJraXQub3JnPgorCisgICAgICAgIFJldmlld2VkIGJ5IE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ZENvbXB1dGVk
U3R5bGVQcm9wZXJ0aWVzIiwgInNob3ctaW5oZXJpdGVkLWNvbXB1dGVkLXN0eWxlLXByb3BlcnRp
ZXMiLCBmYWxzZSk7CiAgICAgICAgIHRoaXMuX2luc3RhbGxTZXR0aW5nKCJzaG93VXNlckFnZW50
U3R5bGVzIiwgInNob3ctdXNlci1hZ2VudC1zdHlsZXMiLCB0cnVlKTsKLSAgICAgICAgdGhpcy5f
aW5zdGFsbFNldHRpbmcoInJlc291cmNlVmlld1RhYiIsICJyZXNvdXJjZS12aWV3LXRhYiIsICJo
ZWFkZXJzIik7CisgICAgICAgIHRoaXMuX2luc3RhbGxTZXR0aW5nKCJyZXNvdXJjZVZpZXdUYWIi
LCAicmVzb3VyY2Utdmlldy10YWIiLCAiY29udGVudCIpOwogICAgICAgICB0aGlzLmRpc3BhdGNo
RXZlbnRUb0xpc3RlbmVycygibG9hZGVkIik7CiAgICAgfSwKIAo=
</data>
<flag name="review"
          id="31314"
          type_id="1"
          status="+"
          setter="timothy"
    />
          </attachment>
      

    </bug>

</bugzilla>