Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes a bug where the Inspector's UI would not animate or
fully function because JavaScript timeouts, intervals and CSS animation timers where not firing while paused at a a breakpoint in the inspected page. https://bugs.webkit.org/show_bug.cgi?id=20042 Reviewed by Darin Adler. Test: manual-tests/inspector/forzen-ui-while-paused.html * page/JavaScriptDebugServer.cpp: (WebCore::JavaScriptDebugServer::pauseIfNeeded): Add a call to TimerBase::fireTimersInNestedEventLoop before spinning the EventLoop. Canonical link: https://commits.webkit.org/28313@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@35908 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
3 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
WebCore/manual-tests/inspector/forzen-ui-while-paused.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<script> | ||
function foo() { | ||
var timeout = setTimeout(function() { alert("This should not happen. If you do see this alert, then timers on the page are firing while paused!") }, 0); | ||
debugger; | ||
clearTimeout(timeout); | ||
} | ||
|
||
setTimeout(foo, 100); | ||
</script> | ||
<p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=20042">Bug 20042: UI frozen when the debugger is paused</a>.</p> | ||
<p>Open the inspector and start debugging in the Scripts panel. While paused, try to open the Console. The Console should animate open fully.</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters