Bug 163300

Summary: Web Inspector: Whole program sometimes highlighted instead of just first statement
Product: WebKit Reporter: Joseph Pecoraro <joepeck>
Component: Web InspectorAssignee: Joseph Pecoraro <joepeck>
Status: RESOLVED FIXED    
Severity: Normal CC: bburg, commit-queue, joepeck, mattbaker, nvasilyev, timothy, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Attachments:
Description Flags
[PATCH] Proposed Fix none

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.