<?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>148696</bug_id>
          
          <creation_ts>2015-09-01 17:30:21 -0700</creation_ts>
          <short_desc>Web Inspector: Option to preserve logs on console and network tabs</short_desc>
          <delta_ts>2015-09-02 18:58:49 -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>Safari 9</version>
          <rep_platform>All</rep_platform>
          <op_sys>OS X 10.11</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <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="Iraê">irae</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>1122708</commentid>
    <comment_count>0</comment_count>
    <who name="Iraê">irae</who>
    <bug_when>2015-09-01 17:30:21 -0700</bug_when>
    <thetext>In previous versions of Webkit every time I reloaded the page I would get a dashed line and the console would not clear. This was somewhat useful but for certain scenarios, like when debugging page load issues, it can get very cluttered. In the current Safari 9 beta there is the reverse behavior, either navigating away from the page or reloading the page is clearing the console.

I agree clearing should be the default behavior, but having and option to preserve the logs is specially useful when navigating away from the page and analyzing console.log messages that are happening on the click handlers and onBeforeUnload handlers when present.

This is sometimes also relevant for network messages. Some libraries will fire a network request (user metric libraries, for instance) before letting the user navigate away. In those scenarios I faced very hard to debug problems with Safari, specially when debugging Safari over USB to get actual device results. Would be very helpful to have the Safari WebInspector to hold this data and it&apos;s visualizations in memory as an option.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1122709</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2015-09-01 17:31:30 -0700</bug_when>
    <thetext>&lt;rdar://problem/22530693&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1122719</commentid>
    <comment_count>2</comment_count>
    <who name="Timothy Hatcher">timothy</who>
    <bug_when>2015-09-01 18:00:04 -0700</bug_when>
    <thetext>Right-click on the messages area in the console and you can enable the old behavior.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1123014</commentid>
    <comment_count>3</comment_count>
    <who name="Iraê">irae</who>
    <bug_when>2015-09-02 18:58:49 -0700</bug_when>
    <thetext>Oh... that just happened.

Sorry, I never found this one. Should I create a separate one for network? I would say it&apos;s less important, but it&apos;s sometimes useful to get the whole lifecycle of navigation through some different pages in traditional websites (not SPA).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>