mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Add CefV8ContextHandler::OnUncaughtException callback (issue #736).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@857 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@ -11,6 +11,7 @@
|
||||
#include "libcef/browser_webkit_glue.h"
|
||||
#include "libcef/browser_webkit_init.h"
|
||||
#include "libcef/cef_context.h"
|
||||
#include "libcef/v8_impl.h"
|
||||
|
||||
#include "base/bind.h"
|
||||
#include "base/command_line.h"
|
||||
@ -127,6 +128,13 @@ void CefProcessUIThread::Init() {
|
||||
webkit_glue::SetJavaScriptFlags(CefString(&settings.javascript_flags));
|
||||
}
|
||||
|
||||
if (settings.uncaught_exception_stack_size > 0) {
|
||||
v8::V8::AddMessageListener(&CefV8MessageHandler);
|
||||
v8::V8::SetCaptureStackTraceForUncaughtExceptions(true,
|
||||
settings.uncaught_exception_stack_size,
|
||||
v8::StackTrace::kDetailed);
|
||||
}
|
||||
|
||||
#if defined(OS_WIN)
|
||||
if (settings.graphics_implementation == ANGLE_IN_PROCESS ||
|
||||
settings.graphics_implementation == ANGLE_IN_PROCESS_COMMAND_BUFFER) {
|
||||
|
Reference in New Issue
Block a user