<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Web Inspector: Activity Viewer does not update on &quot;Clear Log on reload&quot;"
   href="https://bugs.webkit.org/show_bug.cgi?id=145466">145466</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Web Inspector: Activity Viewer does not update on &quot;Clear Log on reload&quot;
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>528+ (Nightly build)
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Web Inspector
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>tobi+bugzilla&#64;basecode.de
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>graouts&#64;webkit.org, joepeck&#64;webkit.org, jonowells&#64;apple.com, mattbaker&#64;apple.com, nvasilyev&#64;apple.com, timothy&#64;apple.com, webkit-bug-importer&#64;group.apple.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>* STEPS TO REPRODUCE
1. Open <a href="https://bug-142070-attachments.webkit.org/attachment.cgi?id=247481">https://bug-142070-attachments.webkit.org/attachment.cgi?id=247481</a>
2. Go to Console Tab
3. Activity Viewer shows 11 logs
4. Select &quot;Clear Log on Reload&quot;
5. Reload page
6. Activity Viewer shows 22 logs instead of 11 logs

* DESCRIPTION
The Activity Viewer listens on &quot;WebInspector.LogManager.Event.ActiveLogCleared&quot; but the Event isn't dispatched. That is due to a hack in LogContentView that ignores the `Console.clearMessages` call. The hack tries to workaround a general problem between Backend and Frontend logic as described here rdar://problem/13767079.

* HOW TO FIX
1. Fix rdar://problem/13767079 and let the Backend pass a reason (PAGE_NAVIGATION or CLEAR_COMMAND) why the Console got cleared.
2. Don't dispatch &quot;ActiveLogCleared&quot; on &quot;PAGE_NAVIGATION&quot; anymore and let Frontend explicitly maintain page navigation (=reload).
3. Remove &quot;_ignoreDidClearMessages&quot; hack from LogContentView</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>