Changeset 85054 in webkit


Ignore:
Timestamp:
Apr 27, 2011 9:00:17 AM (13 years ago)
Author:
yurys@chromium.org
Message:

2011-04-27 Yury Semikhatsky <yurys@chromium.org>

Reviewed by Pavel Feldman.

Web Inspector: browser crash on evaluation of 'throw undefined'
https://bugs.webkit.org/show_bug.cgi?id=59611

  • inspector/console/console-eval-throw-undefined-expected.txt: Added.
  • inspector/console/console-eval-throw-undefined.html: Added.

2011-04-27 Yury Semikhatsky <yurys@chromium.org>

Reviewed by Pavel Feldman.

Web Inspector: browser crash on evaluation of 'throw undefined'
https://bugs.webkit.org/show_bug.cgi?id=59611

Test: inspector/console/console-eval-throw-undefined.html

  • inspector/InjectedScriptSource.js: use try/catch to protect from exception during conversion of another exception to string.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r85053 r85054  
     12011-04-27  Yury Semikhatsky  <yurys@chromium.org>
     2
     3        Reviewed by Pavel Feldman.
     4
     5        Web Inspector: browser crash on evaluation of 'throw undefined'
     6        https://bugs.webkit.org/show_bug.cgi?id=59611
     7
     8        * inspector/console/console-eval-throw-undefined-expected.txt: Added.
     9        * inspector/console/console-eval-throw-undefined.html: Added.
     10
    1112011-04-27  Csaba Osztrogonác  <ossy@webkit.org>
    212
  • trunk/Source/WebCore/ChangeLog

    r85048 r85054  
     12011-04-27  Yury Semikhatsky  <yurys@chromium.org>
     2
     3        Reviewed by Pavel Feldman.
     4
     5        Web Inspector: browser crash on evaluation of 'throw undefined'
     6        https://bugs.webkit.org/show_bug.cgi?id=59611
     7
     8        Test: inspector/console/console-eval-throw-undefined.html
     9
     10        * inspector/InjectedScriptSource.js: use try/catch to protect from
     11        exception during conversion of another exception to string.
     12
    1132011-04-27  Pavel Feldman  <pfeldman@google.com>
    214
  • trunk/Source/WebCore/inspector/InjectedScriptSource.js

    r85035 r85054  
    453453InjectedScript.RemoteObject.fromException = function(e)
    454454{
    455     return new InjectedScript.RemoteObject(null, "error", e.toString());
     455    try {
     456        var description = injectedScript._describe(e);
     457    } catch (ex) {
     458        var description = "<failed to convert exception to string>";
     459    }
     460    return new InjectedScript.RemoteObject(null, "error", description);
    456461}
    457462
Note: See TracChangeset for help on using the changeset viewer.