Changeset 87278 in webkit


Ignore:
Timestamp:
May 25, 2011 12:45:33 AM (13 years ago)
Author:
yurys@chromium.org
Message:

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

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.
Location:
trunk
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r87274 r87278  
     12011-05-23  Yury Semikhatsky  <yurys@chromium.org>
     2
     3        Reviewed by Adam Barth.
     4
     5        Chromium DevTools: Tab crashes with "Aw, snap!" on entering "(new Image())." in console
     6        https://bugs.webkit.org/show_bug.cgi?id=61194
     7
     8        * inspector/console/console-eval-syntax-error-expected.txt: Added.
     9        * inspector/console/console-eval-syntax-error.html: Added.
     10        * platform/chromium/inspector/console/console-eval-syntax-error-expected.txt: Added.
     11
    1122011-05-24  Keishi Hattori  <keishi@webkit.org>
    213
  • trunk/Source/WebCore/ChangeLog

    r87277 r87278  
     12011-05-23  Yury Semikhatsky  <yurys@chromium.org>
     2
     3        Reviewed by Adam Barth.
     4
     5        Chromium DevTools: Tab crashes with "Aw, snap!" on entering "(new Image())." in console
     6        https://bugs.webkit.org/show_bug.cgi?id=61194
     7
     8        Test: inspector/console/console-eval-syntax-error.html
     9
     10        * bindings/v8/custom/V8InjectedScriptHostCustom.cpp:
     11        (WebCore::V8InjectedScriptHost::evaluateCallback): return immediately in case of syntax error
     12
    1132011-05-25  Yuzo Fujishima  <yuzo@google.com>
    214
  • trunk/Source/WebCore/bindings/v8/custom/V8InjectedScriptHostCustom.cpp

    r87172 r87278  
    7777
    7878    v8::Handle<v8::Script> script = v8::Script::Compile(expression);
     79    if (script.IsEmpty()) // Return immediately in case of exception to let the caller handle it.
     80        return v8::Handle<v8::Value>();
    7981    return script->Run();
    8082}
Note: See TracChangeset for help on using the changeset viewer.