Bug 163300 - Web Inspector: Whole program sometimes highlighted instead of just first statement
Summary: Web Inspector: Whole program sometimes highlighted instead of just first stat...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Joseph Pecoraro
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2016-10-11 15:00 PDT by Joseph Pecoraro
Modified: 2016-10-12 11:46 PDT (History)
7 users (show)

See Also:


Attachments
[PATCH] Proposed Fix (3.52 KB, patch)
2016-10-11 15:02 PDT, Joseph Pecoraro
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Pecoraro 2016-10-11 15:00:28 PDT
Summary:
Whole program sometimes highlighted instead of just first statement

Test:
<script>
debugger;
var a = 1;
var b = 1;
var c = 1;
</script>

Steps to Reproduce:
1. Inspect test page
2. Reload to pause on debugger statement
  => entire program is highlighted instead of just the first statement

Notes:
- Esprima says the program starts at the same place as the debugger statement!
Comment 1 Radar WebKit Bug Importer 2016-10-11 15:00:56 PDT
<rdar://problem/28723162>
Comment 2 Joseph Pecoraro 2016-10-11 15:02:39 PDT
Created attachment 291301 [details]
[PATCH] Proposed Fix
Comment 3 WebKit Commit Bot 2016-10-12 11:45:56 PDT
Comment on attachment 291301 [details]
[PATCH] Proposed Fix

Clearing flags on attachment: 291301

Committed r207227: <http://trac.webkit.org/changeset/207227>
Comment 4 WebKit Commit Bot 2016-10-12 11:46:00 PDT
All reviewed patches have been landed.  Closing bug.