diff options
author | yurys@chromium.org <yurys@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-30 09:20:45 +0000 |
---|---|---|
committer | yurys@chromium.org <yurys@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-30 09:20:45 +0000 |
commit | 28ce8ebbf14b94ea5ddce5dcd6d2678ffc460a60 (patch) | |
tree | 80b0544dbc30f28ca8b1006c75a102cb279bc444 /chrome/test/data/devtools | |
parent | c6dddf37aa407372f0e6ba605b8e9f00d82babdd (diff) | |
download | chromium_src-28ce8ebbf14b94ea5ddce5dcd6d2678ffc460a60.zip chromium_src-28ce8ebbf14b94ea5ddce5dcd6d2678ffc460a60.tar.gz chromium_src-28ce8ebbf14b94ea5ddce5dcd6d2678ffc460a60.tar.bz2 |
DevTools: process pause script request on the IO thread. To pause already running script we need to call v8::Debug::DebugBreak() on a thread different from the Render thread which may be busy with JS execution.
BUG=28892
TEST=DevToolsSanityTest.TestPauseWhenScriptIsRunning
Review URL: http://codereview.chromium.org/444017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33279 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/data/devtools')
-rw-r--r-- | chrome/test/data/devtools/pause_when_script_is_running.html | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/chrome/test/data/devtools/pause_when_script_is_running.html b/chrome/test/data/devtools/pause_when_script_is_running.html new file mode 100644 index 0000000..380d8e1 --- /dev/null +++ b/chrome/test/data/devtools/pause_when_script_is_running.html @@ -0,0 +1,13 @@ +<html> +<head> +<script> +function handleClick() { + while(true) { + } +} +</script> +</head> +<body> +<input type='button' onclick='handleClick()' value='Test'/> +</body> +</html>
\ No newline at end of file |