Chromium Code Reviews| Index: third_party/WebKit/Source/core/dom/Document.cpp |
| diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp |
| index 0237c178a90d10d43bb4150ec865e83db8984ccb..c435e5627984bb3b2cfefb9ac0e7a2151f2fbd61 100644 |
| --- a/third_party/WebKit/Source/core/dom/Document.cpp |
| +++ b/third_party/WebKit/Source/core/dom/Document.cpp |
| @@ -175,6 +175,7 @@ |
| #include "core/inspector/InspectorInstrumentation.h" |
| #include "core/inspector/InspectorTraceEvents.h" |
| #include "core/inspector/InstanceCounters.h" |
| +#include "core/inspector/MainThreadDebugger.h" |
| #include "core/layout/HitTestResult.h" |
| #include "core/layout/LayoutPart.h" |
| #include "core/layout/LayoutView.h" |
| @@ -2893,8 +2894,7 @@ EventTarget* Document::errorEventTarget() |
| void Document::logExceptionToConsole(const String& errorMessage, std::unique_ptr<SourceLocation> location) |
|
pfeldman
2016/07/07 01:12:17
exeptionThrown
dgozman
2016/07/08 18:56:41
Done.
|
| { |
| - ConsoleMessage* consoleMessage = ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage, std::move(location)); |
| - addConsoleMessage(consoleMessage); |
| + MainThreadDebugger::instance()->exceptionUnhandled(m_frame.get(), errorMessage, std::move(location)); |
| } |
| void Document::setURL(const KURL& url) |