| Index: third_party/WebKit/Source/core/html/parser/XSSAuditorDelegate.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/parser/XSSAuditorDelegate.cpp b/third_party/WebKit/Source/core/html/parser/XSSAuditorDelegate.cpp
|
| index 4b3b949fbb0a88f6e9253b5054b42b2980f3b38a..3564c27e0bebfc85f3bfb7448b48a3992e5d2f2e 100644
|
| --- a/third_party/WebKit/Source/core/html/parser/XSSAuditorDelegate.cpp
|
| +++ b/third_party/WebKit/Source/core/html/parser/XSSAuditorDelegate.cpp
|
| @@ -25,6 +25,7 @@
|
|
|
| #include "core/html/parser/XSSAuditorDelegate.h"
|
|
|
| +#include "bindings/core/v8/SourceLocation.h"
|
| #include "core/dom/Document.h"
|
| #include "core/frame/LocalFrame.h"
|
| #include "core/inspector/ConsoleMessage.h"
|
| @@ -104,7 +105,7 @@ void XSSAuditorDelegate::didBlockScript(const XSSInfo& xssInfo)
|
| {
|
| ASSERT(isMainThread());
|
|
|
| - m_document->addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, xssInfo.buildConsoleError()));
|
| + m_document->addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, xssInfo.buildConsoleError(), SourceLocation::capture(m_document)));
|
|
|
| FrameLoader& frameLoader = m_document->frame()->loader();
|
| if (xssInfo.m_didBlockEntirePage)
|
|
|