Bug 166300 - Web Inspector: Address failures under LayoutTests/inspector/debugger/stepping
Summary: Web Inspector: Address failures under LayoutTests/inspector/debugger/stepping
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: DoNotImportToRadar
Depends on:
Blocks:
 
Reported: 2016-12-20 21:00 PST by Joseph Pecoraro
Modified: 2017-01-03 14:33 PST (History)
7 users (show)

See Also:


Attachments
[PATCH] Proposed Fix (3.50 KB, patch)
2016-12-20 21:17 PST, Joseph Pecoraro
bburg: review+
bburg: commit-queue-
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-12-20 21:00:40 PST
Summary:
Address failures under LayoutTests/inspector/debugger/stepping

When running these tests with --force I've seen some consistent failures in a few places.

Steps to Reproduce:
1. $ run-webkit-tests LayoutTests/inspector/debugger/stepping --force --iterations=5
  => Failures

Notes:
- Looks like stepping past the end of a program is causing a pause in later executed code but that should have resumed
- Some numbers need to be updated.
Comment 1 Joseph Pecoraro 2016-12-20 21:17:14 PST
Created attachment 297578 [details]
[PATCH] Proposed Fix
Comment 2 BJ Burg 2016-12-21 10:45:25 PST
Comment on attachment 297578 [details]
[PATCH] Proposed Fix

View in context: https://bugs.webkit.org/attachment.cgi?id=297578&action=review

r=me

> LayoutTests/ChangeLog:8
> +        * inspector/debugger/stepping/stepping-classes-expected.txt:

Should we unskip this test?

> LayoutTests/ChangeLog:9
> +        Rebasline these results to new column values.

Speling

> Source/JavaScriptCore/ChangeLog:10
> +        When continuing clear states that would have had us pause again.

continuing,

> Source/JavaScriptCore/ChangeLog:14
> +        When resuming after becoming idle be sure to clear Debugger state.

idle,

> Source/JavaScriptCore/inspector/agents/InspectorDebuggerAgent.cpp:793
> +        m_scriptDebugServer.continueProgram();
>          m_frontendDispatcher->resumed();

Hmm, in what conditions was this bug user-visible, stepping past the last step into an idle state?
Comment 3 Joseph Pecoraro 2017-01-03 12:07:05 PST
> > Source/JavaScriptCore/inspector/agents/InspectorDebuggerAgent.cpp:793
> > +        m_scriptDebugServer.continueProgram();
> >          m_frontendDispatcher->resumed();
> 
> Hmm, in what conditions was this bug user-visible, stepping past the last
> step into an idle state?

Correct. Though I wasn't always seeing this locally I certainly was in the tests.
Comment 4 Joseph Pecoraro 2017-01-03 14:33:01 PST
<https://trac.webkit.org/changeset/210251>