Changeset 142594 in webkit


Ignore:
Timestamp:
Feb 12, 2013 1:20:48 AM (11 years ago)
Author:
yurys@chromium.org
Message:

Web Inspector: stack trace is cut at native bind if inspector is closed
https://bugs.webkit.org/show_bug.cgi?id=109427

Reviewed by Pavel Feldman.

Source/WebCore:

Only top frame is collected instead of full stack trace when inspector
front-end is closed to avoid expensive operations when exceptions are
thrown.

Test: http/tests/inspector-enabled/console-exception-while-no-inspector.html

  • inspector/InspectorConsoleAgent.cpp:

(WebCore::InspectorConsoleAgent::addMessageToConsole):

LayoutTests:

Test that stack trace for uncaught exceptions is collected when inspector
front-end is closed.

  • http/tests/inspector-enabled/console-exception-while-no-inspector-expected.txt: Added.
  • http/tests/inspector-enabled/console-exception-while-no-inspector.html: Added.
  • platform/chromium/http/tests/inspector-enabled/console-exception-while-no-inspector-expected.txt: Added.
Location:
trunk
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r142593 r142594  
     12013-02-11  Yury Semikhatsky  <yurys@chromium.org>
     2
     3        Web Inspector: stack trace is cut at native bind if inspector is closed
     4        https://bugs.webkit.org/show_bug.cgi?id=109427
     5
     6        Reviewed by Pavel Feldman.
     7
     8        Test that stack trace for uncaught exceptions is collected when inspector
     9        front-end is closed.
     10
     11        * http/tests/inspector-enabled/console-exception-while-no-inspector-expected.txt: Added.
     12        * http/tests/inspector-enabled/console-exception-while-no-inspector.html: Added.
     13        * platform/chromium/http/tests/inspector-enabled/console-exception-while-no-inspector-expected.txt: Added.
     14
    1152013-02-12  Jochen Eisinger  <jochen@chromium.org>
    216
  • trunk/Source/WebCore/ChangeLog

    r142592 r142594  
     12013-02-11  Yury Semikhatsky  <yurys@chromium.org>
     2
     3        Web Inspector: stack trace is cut at native bind if inspector is closed
     4        https://bugs.webkit.org/show_bug.cgi?id=109427
     5
     6        Reviewed by Pavel Feldman.
     7
     8        Only top frame is collected instead of full stack trace when inspector
     9        front-end is closed to avoid expensive operations when exceptions are
     10        thrown.
     11
     12        Test: http/tests/inspector-enabled/console-exception-while-no-inspector.html
     13
     14        * inspector/InspectorConsoleAgent.cpp:
     15        (WebCore::InspectorConsoleAgent::addMessageToConsole):
     16
    1172013-02-12  Kent Tamura  <tkent@chromium.org>
    218
  • trunk/Source/WebCore/inspector/InspectorConsoleAgent.cpp

    r140830 r142594  
    189189    }
    190190
    191     addConsoleMessage(adoptPtr(new ConsoleMessage(!isWorkerAgent(), source, type, level, message, scriptId, lineNumber, state, requestIdentifier)));
     191    bool canGenerateCallStack = !isWorkerAgent() && m_frontend;
     192    addConsoleMessage(adoptPtr(new ConsoleMessage(canGenerateCallStack, source, type, level, message, scriptId, lineNumber, state, requestIdentifier)));
    192193}
    193194
Note: See TracChangeset for help on using the changeset viewer.