Bug 125166

Summary: Web Inspector: stale display source locations for breakpoints after inspector re-open
Product: WebKit Reporter: Brian Burg <burg>
Component: Web InspectorAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: inspector-bugzilla-changes, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
URL: http://en.wikipedia.org/wiki/Main_Page

Description Brian Burg 2013-12-03 10:37:40 PST
Steps to reproduce:

1. Go to wikipedia.org
2. Set a bunch of breakpoints in one of the load.php files
3. Keep open the resources sidebar panel
4. Re-open the inspector. (Sometimes reloading will trigger it too.)
5. Go to the debugger panel. Display source locations seem to still be the same as raw locations.

From (5) if you click one of the breakpoints to cause the content view to display the breakpoint, the line numbers get updated to the correct values. So it seems like some invalidation step is missing.

Note that this happens regardless of the new restore strategy in https://webkit.org/b/122125, but it occasionally prevents that restore strategy from restoring breakpoints (I believe Breakpoint.saveIdentityToCookie() saves the display location, not raw location).
Comment 1 Radar WebKit Bug Importer 2014-02-14 09:52:36 PST
<rdar://problem/16070887>