|
[DevTools] Report unhandled exceptions and promise rejections through Runtime.
Introduced Runtime.exceptionUnhandled and Runtime.exceptionRevoked methods which report exceptions when Runtime is enabled.
Internally, we share the storage with console messages. That means exceptions can be evicted before Runtime.enable was called due to excessive number of console messages.
Rough edges:
- console.clear also clears the storage for exceptions;
- releaseObjectGroup("console") releases exception objects as well;
- integration on the frontend reuses ConsoleMessage and is somewhat ugly;
- we may want to separate console vs exceptions on backend side.
BUG= 613882
Committed: https://crrev.com/c19cc78b55454d4d14c1e8888d3972accb879c6e
Cr-Commit-Position: refs/heads/master@{#404576}
Total comments: 16
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+349 lines, -143 lines) |
Patch |
 |
M |
chrome/test/data/extensions/api_test/uncaught_exception_logging/test.js
|
View
|
1
2
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/LayoutTests/inspector-protocol/console/exception-from-worker-contains-stack.html
|
View
|
1
2
|
2 chunks |
+4 lines, -6 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/LayoutTests/inspector/console/console-revoke-error-expected.txt
|
View
|
1
2
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/LayoutTests/inspector/console/console-revoke-error-in-worker-expected.txt
|
View
|
1
2
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/dom/Document.h
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/dom/Document.cpp
|
View
|
1
2
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/dom/ExecutionContext.h
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/dom/ExecutionContext.cpp
|
View
|
1
2
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/inspector/MainThreadDebugger.h
|
View
|
1
2
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp
|
View
|
1
2
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/inspector/WorkerThreadDebugger.h
|
View
|
1
2
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/inspector/WorkerThreadDebugger.cpp
|
View
|
1
2
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/testing/NullExecutionContext.h
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/workers/MainThreadWorkletGlobalScope.h
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/workers/MainThreadWorkletGlobalScope.cpp
|
View
|
1
2
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/workers/SharedWorkerGlobalScope.h
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/workers/SharedWorkerGlobalScope.cpp
|
View
|
1
2
|
2 chunks |
+5 lines, -4 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/workers/WorkerGlobalScope.h
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp
|
View
|
1
2
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/workers/WorkerThreadTestHelper.h
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/workers/WorkletGlobalScope.h
|
View
|
1
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/workers/WorkletGlobalScope.cpp
|
View
|
1
|
1 chunk |
+0 lines, -6 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/devtools/front_end/sdk/ConsoleModel.js
|
View
|
1
2
|
9 chunks |
+30 lines, -20 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/devtools/front_end/sdk/RuntimeModel.js
|
View
|
1
2
3
|
1 chunk |
+56 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScope.h
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp
|
View
|
1
2
|
2 chunks |
+5 lines, -4 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/v8_inspector/V8ConsoleAgentImpl.cpp
|
View
|
1
|
1 chunk |
+6 lines, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/v8_inspector/V8ConsoleMessage.h
|
View
|
1
2
|
5 chunks |
+31 lines, -9 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/v8_inspector/V8ConsoleMessage.cpp
|
View
|
1
2
3
|
13 chunks |
+97 lines, -41 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/v8_inspector/V8DebuggerImpl.h
|
View
|
1
2
3
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/v8_inspector/V8DebuggerImpl.cpp
|
View
|
1
2
3
|
4 chunks |
+16 lines, -16 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.h
|
View
|
1
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.cpp
|
View
|
1
2
|
4 chunks |
+21 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/v8_inspector/js_protocol.json
|
View
|
1
2
3
|
3 chunks |
+24 lines, -4 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/v8_inspector/public/V8ConsoleTypes.h
|
View
|
1
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/v8_inspector/public/V8Debugger.h
|
View
|
1
2
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
|
View
|
1
2
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/public/web/WebConsoleMessage.h
|
View
|
1
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
Total messages: 34 (19 generated)
|