<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 "Clear Log on reload""
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 "Clear Log on reload"
</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@lists.webkit.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>tobi+bugzilla@basecode.de
</td>
</tr>
<tr>
<th>CC</th>
<td>graouts@webkit.org, joepeck@webkit.org, jonowells@apple.com, mattbaker@apple.com, nvasilyev@apple.com, timothy@apple.com, webkit-bug-importer@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 "Clear Log on Reload"
5. Reload page
6. Activity Viewer shows 22 logs instead of 11 logs
* DESCRIPTION
The Activity Viewer listens on "WebInspector.LogManager.Event.ActiveLogCleared" 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 "ActiveLogCleared" on "PAGE_NAVIGATION" anymore and let Frontend explicitly maintain page navigation (=reload).
3. Remove "_ignoreDidClearMessages" 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>