Bug 156371

Summary: Web Inspector: ProfileView source links are off by 1 line, worse in pretty printed code
Product: WebKit Reporter: Joseph Pecoraro <joepeck>
Component: Web InspectorAssignee: Joseph Pecoraro <joepeck>
Status: RESOLVED FIXED    
Severity: Normal CC: bburg, commit-queue, graouts, joepeck, keith_miller, mark.lam, mattbaker, msaboff, nvasilyev, saam, timothy, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Attachments:
Description Flags
[PATCH] Proposed Fix none

Joseph Pecoraro
Reported 2016-04-07 15:21:28 PDT
* SUMMARY ProfileView source links are off by 1 line, worse in pretty printed code. * TEST <script> function runFor(ms) { var until = Date.now() + ms; while (Date.now() < until); } function doWork() { runFor(200); } setTimeout(() => { doWork() }, 0); </script> * STEPS TO REPRODUCE 1. Inspect test page 2. Timeline record it doing work 3. Show Profile View 4. Jump to "runFor" => off by 1, it highlights the line with `until` and not `runFor` * NOTES - Protocol produces 1-based line numbers, but SourceCodeLocation expects 0-based.
Attachments
[PATCH] Proposed Fix (4.07 KB, patch)
2016-04-07 15:22 PDT, Joseph Pecoraro
no flags
Radar WebKit Bug Importer
Comment 1 2016-04-07 15:22:19 PDT
Joseph Pecoraro
Comment 2 2016-04-07 15:22:40 PDT
Created attachment 275946 [details] [PATCH] Proposed Fix
WebKit Commit Bot
Comment 3 2016-04-07 16:28:09 PDT
Comment on attachment 275946 [details] [PATCH] Proposed Fix Clearing flags on attachment: 275946 Committed r199201: <http://trac.webkit.org/changeset/199201>
WebKit Commit Bot
Comment 4 2016-04-07 16:28:13 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.