Bug 159946 - Web Inspector: Pausing when Debugger tab is closed opens tab in wrong state
Summary: Web Inspector: Pausing when Debugger tab is closed opens tab in wrong state
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-07-19 13:49 PDT by Joseph Pecoraro
Modified: 2016-07-20 08:42 PDT (History)
7 users (show)

See Also:


Attachments
[PATCH] Proposed Fix (1.72 KB, patch)
2016-07-19 13:51 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-07-19 13:49:00 PDT
Summary:
Pausing when Debugger tab is closed opens tab in wrong state.

Test:
<button id="x">Click Me</button>
<script>window.x.onclick = function() { debugger; }</script>

Steps to Reproduce:
1. Inspect test page
2. Close Debugger Tab
3. Click "Click Me" on test page
  => Debugger tab opens, but Debugger Controls show Pause instead of Resume

Notes:
- The same thing can happen if the Timeline has temporarily disabled breakpoints.
Comment 1 Joseph Pecoraro 2016-07-19 13:49:09 PDT
<rdar://problem/27429886>
Comment 2 Joseph Pecoraro 2016-07-19 13:51:14 PDT
Created attachment 284046 [details]
[PATCH] Proposed Fix
Comment 3 WebKit Commit Bot 2016-07-20 08:42:01 PDT
Comment on attachment 284046 [details]
[PATCH] Proposed Fix

Clearing flags on attachment: 284046

Committed r203454: <http://trac.webkit.org/changeset/203454>
Comment 4 WebKit Commit Bot 2016-07-20 08:42:05 PDT
All reviewed patches have been landed.  Closing bug.