| Index: Source/core/html/parser/XSSAuditorDelegate.cpp
|
| diff --git a/Source/core/html/parser/XSSAuditorDelegate.cpp b/Source/core/html/parser/XSSAuditorDelegate.cpp
|
| index 9b329e85ccd21ed6baab7429d383aab1bfb7dc9c..323293e924118378ebbad45fb346f42eb2e2297d 100644
|
| --- a/Source/core/html/parser/XSSAuditorDelegate.cpp
|
| +++ b/Source/core/html/parser/XSSAuditorDelegate.cpp
|
| @@ -28,6 +28,7 @@
|
|
|
| #include "core/dom/Document.h"
|
| #include "core/frame/LocalFrame.h"
|
| +#include "core/inspector/ConsoleMessage.h"
|
| #include "core/loader/DocumentLoader.h"
|
| #include "core/loader/FrameLoader.h"
|
| #include "core/loader/FrameLoaderClient.h"
|
| @@ -98,7 +99,7 @@ void XSSAuditorDelegate::didBlockScript(const XSSInfo& xssInfo)
|
| {
|
| ASSERT(isMainThread());
|
|
|
| - m_document->addConsoleMessage(JSMessageSource, ErrorMessageLevel, xssInfo.buildConsoleError());
|
| + m_document->addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, xssInfo.buildConsoleError()));
|
|
|
| // stopAllLoaders can detach the LocalFrame, so protect it.
|
| RefPtr<LocalFrame> protect(m_document->frame());
|
|
|