Index: Source/core/workers/WorkerMessagingProxy.cpp |
diff --git a/Source/core/workers/WorkerMessagingProxy.cpp b/Source/core/workers/WorkerMessagingProxy.cpp |
index 6d4598bd32d1ad6af536ddd5eaf5c5ed07f28877..8904fa6ae2de96910e14e243ac6a066cbd742918 100644 |
--- a/Source/core/workers/WorkerMessagingProxy.cpp |
+++ b/Source/core/workers/WorkerMessagingProxy.cpp |
@@ -164,7 +164,7 @@ void WorkerMessagingProxy::postTaskToLoader(PassOwnPtr<ExecutionContextTask> tas |
m_executionContext->postTask(task); |
} |
-void WorkerMessagingProxy::reportException(const String& errorMessage, int lineNumber, int columnNumber, const String& sourceURL) |
+void WorkerMessagingProxy::reportException(const String& errorMessage, int lineNumber, int columnNumber, const String& sourceURL, int exceptionId) |
{ |
if (!m_workerObject) |
return; |
@@ -174,8 +174,8 @@ void WorkerMessagingProxy::reportException(const String& errorMessage, int lineN |
RefPtrWillBeRawPtr<ErrorEvent> event = ErrorEvent::create(errorMessage, sourceURL, lineNumber, columnNumber, nullptr); |
bool errorHandled = !m_workerObject->dispatchEvent(event); |
- if (!errorHandled) |
- m_executionContext->reportException(event, 0, nullptr, NotSharableCrossOrigin); |
+ |
+ postTaskToWorkerGlobalScope(createCrossThreadTask(&WorkerGlobalScope::exceptionHandled, m_workerThread->workerGlobalScope(), exceptionId, errorHandled)); |
} |
void WorkerMessagingProxy::reportConsoleMessage(MessageSource source, MessageLevel level, const String& message, int lineNumber, const String& sourceURL) |