Chromium Code Reviews| Index: third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp |
| diff --git a/third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp b/third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp |
| index 85d180321a5ec3e1503bf450df83abdbd2b8655b..7a2741d6899d03fb537b56effeb0d68e300ea847 100644 |
| --- a/third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp |
| +++ b/third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp |
| @@ -170,7 +170,7 @@ void InProcessWorkerMessagingProxy::reportException(const String& errorMessage, |
| // because terminated workers no longer deliver messages (section 4.6 of the |
| // WebWorker spec), but they do report exceptions. |
| - ErrorEvent* event = ErrorEvent::create(errorMessage, location->url(), location->lineNumber(), location->columnNumber(), nullptr); |
| + ErrorEvent* event = ErrorEvent::create(errorMessage, location->clone(), nullptr); |
|
sof
2016/05/27 09:34:55
Doesn't the clone() have to make an isolated copy
sof
2016/05/29 06:16:16
As this CL introduces half a dozen crashers, pleas
|
| if (m_workerObject->dispatchEvent(event) == DispatchEventResult::NotCanceled) |
| postTaskToWorkerGlobalScope(createCrossThreadTask(&processUnhandledExceptionOnWorkerGlobalScope, errorMessage, passed(std::move(location)))); |
| } |