<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Web Inspector: REGRESSION(Tabs): Issues reloading a resource with breakpoints"
href="https://bugs.webkit.org/show_bug.cgi?id=144650#c5">Comment # 5</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Web Inspector: REGRESSION(Tabs): Issues reloading a resource with breakpoints"
href="https://bugs.webkit.org/show_bug.cgi?id=144650">bug 144650</a>
from <span class="vcard"><a class="email" href="mailto:joepeck@webkit.org" title="Joseph Pecoraro <joepeck@webkit.org>"> <span class="fn">Joseph Pecoraro</span></a>
</span></b>
<pre><span class="quote">> 5. Order of operations on WebInspector.Frame.Event.MainResourceDidChange is
> problematic
> - Main.js performs state restoration on MainResourceDidChange
> - NavigationSidebarPanels (Resources, Debugger, etc) perform clean up
> MainResourceDidChange
> - Typically, Main.js will do its work first, which may be very problematic
> in restoration!</span >
The reason this is problematic was because of this scenario:
(1) DebuggerSidebarPanel wants to remove its ResourceTreeElements for the old Frame and add ResourceTreeElements for the new Frame
(2) State restoration wants to find a ResourceTreeElement basically just via URL
On reload, in cases where (2) happens before (1), then the ResourceTreeElement found during restoration was the OLD ResourceTreeElement, that immediately gets removed.</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>