| Index: Source/core/html/parser/XSSAuditorDelegate.cpp
|
| diff --git a/Source/core/html/parser/XSSAuditorDelegate.cpp b/Source/core/html/parser/XSSAuditorDelegate.cpp
|
| index 51f0825f52b89b57da5d37814a62de594734fcb5..0f40cb4198cb068a5afbd329727bda9abc4a5340 100644
|
| --- a/Source/core/html/parser/XSSAuditorDelegate.cpp
|
| +++ b/Source/core/html/parser/XSSAuditorDelegate.cpp
|
| @@ -27,6 +27,7 @@
|
| #include "core/html/parser/XSSAuditorDelegate.h"
|
|
|
| #include "core/dom/Document.h"
|
| +#include "core/frame/FrameProtector.h"
|
| #include "core/frame/LocalFrame.h"
|
| #include "core/inspector/ConsoleMessage.h"
|
| #include "core/loader/DocumentLoader.h"
|
| @@ -107,7 +108,7 @@ void XSSAuditorDelegate::didBlockScript(const XSSInfo& xssInfo)
|
| m_document->addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, xssInfo.buildConsoleError()));
|
|
|
| // stopAllLoaders can detach the LocalFrame, so protect it.
|
| - RefPtr<LocalFrame> protect(m_document->frame());
|
| + FrameProtector protect(m_document->frame());
|
| FrameLoader& frameLoader = m_document->frame()->loader();
|
| if (xssInfo.m_didBlockEntirePage)
|
| frameLoader.stopAllLoaders();
|
|
|