| Index: third_party/WebKit/Source/core/dom/ExecutionContext.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/ExecutionContext.cpp b/third_party/WebKit/Source/core/dom/ExecutionContext.cpp
|
| index 0a5bebd71c70a72c300ad158170984893ec7088f..e061090ddd543b662b1460c7c68312f3eae47b71 100644
|
| --- a/third_party/WebKit/Source/core/dom/ExecutionContext.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/ExecutionContext.cpp
|
| @@ -138,18 +138,18 @@ bool ExecutionContext::shouldSanitizeScriptError(const String& sourceURL, Access
|
| return !(getSecurityOrigin()->canRequestNoSuborigin(completeURL(sourceURL)) || corsStatus == SharableCrossOrigin);
|
| }
|
|
|
| -void ExecutionContext::reportException(ErrorEvent* errorEvent, PassOwnPtr<SourceLocation> location, AccessControlStatus corsStatus)
|
| +void ExecutionContext::reportException(ErrorEvent* errorEvent, AccessControlStatus corsStatus)
|
| {
|
| if (m_inDispatchErrorEvent) {
|
| if (!m_pendingExceptions)
|
| m_pendingExceptions = adoptPtr(new Vector<OwnPtr<PendingException>>());
|
| - m_pendingExceptions->append(adoptPtr(new PendingException(errorEvent->messageForConsole(), std::move(location))));
|
| + m_pendingExceptions->append(adoptPtr(new PendingException(errorEvent->messageForConsole(), errorEvent->location()->clone())));
|
| return;
|
| }
|
|
|
| // First report the original exception and only then all the nested ones.
|
| if (!dispatchErrorEvent(errorEvent, corsStatus))
|
| - logExceptionToConsole(errorEvent->messageForConsole(), std::move(location));
|
| + logExceptionToConsole(errorEvent->messageForConsole(), errorEvent->location()->clone());
|
|
|
| if (!m_pendingExceptions)
|
| return;
|
|
|