Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
2011-05-23 Yury Semikhatsky <yurys@chromium.org>
Reviewed by Adam Barth. Chromium DevTools: Tab crashes with "Aw, snap!" on entering "(new Image())." in console https://bugs.webkit.org/show_bug.cgi?id=61194 * inspector/console/console-eval-syntax-error-expected.txt: Added. * inspector/console/console-eval-syntax-error.html: Added. * platform/chromium/inspector/console/console-eval-syntax-error-expected.txt: Added. 2011-05-23 Yury Semikhatsky <yurys@chromium.org> Reviewed by Adam Barth. Chromium DevTools: Tab crashes with "Aw, snap!" on entering "(new Image())." in console https://bugs.webkit.org/show_bug.cgi?id=61194 Test: inspector/console/console-eval-syntax-error.html * bindings/v8/custom/V8InjectedScriptHostCustom.cpp: (WebCore::V8InjectedScriptHost::evaluateCallback): return immediately in case of syntax error Canonical link: https://commits.webkit.org/76725@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@87145 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
with
60 additions
and 0 deletions.
- +11 −0 LayoutTests/ChangeLog
- +5 −0 LayoutTests/inspector/console/console-eval-syntax-error-expected.txt
- +25 −0 LayoutTests/inspector/console/console-eval-syntax-error.html
- +5 −0 LayoutTests/platform/chromium/inspector/console/console-eval-syntax-error-expected.txt
- +12 −0 Source/WebCore/ChangeLog
- +2 −0 Source/WebCore/bindings/v8/custom/V8InjectedScriptHostCustom.cpp
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
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
@@ -0,0 +1,5 @@ | ||
Tests that evaluating an expression with a syntax error in the console won't crash the browser. Bug 61194. | ||
|
||
foo(). | ||
Error | ||
|
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
@@ -0,0 +1,25 @@ | ||
<html> | ||
<head> | ||
<script src="../../http/tests/inspector/inspector-test.js"></script> | ||
<script src="../../http/tests/inspector/console-test.js"></script> | ||
<script> | ||
function test() | ||
{ | ||
InspectorTest.evaluateInConsole("foo().", step1); | ||
|
||
function step1() | ||
{ | ||
InspectorTest.dumpConsoleMessages(); | ||
InspectorTest.completeTest(); | ||
} | ||
} | ||
|
||
</script> | ||
</head> | ||
<body onload="runTest()"> | ||
<p> | ||
Tests that evaluating an expression with a syntax error in the console won't crash the browser. | ||
<a href="https://bugs.webkit.org/show_bug.cgi?id=61194">Bug 61194.</a> | ||
</p> | ||
</body> | ||
</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
@@ -0,0 +1,5 @@ | ||
Tests that evaluating an expression with a syntax error in the console won't crash the browser. Bug 61194. | ||
|
||
foo(). | ||
SyntaxError | ||
|
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
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