| 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 cf34b0f0648f6a01271249bf1ab1e70716dfa7b6..be86e057bab047cd6eb0aeef6bd556ca0512cd50 100644
|
| --- a/third_party/WebKit/Source/core/html/parser/XSSAuditorDelegate.cpp
|
| +++ b/third_party/WebKit/Source/core/html/parser/XSSAuditorDelegate.cpp
|
| @@ -35,6 +35,7 @@
|
| #include "core/loader/PingLoader.h"
|
| #include "platform/json/JSONValues.h"
|
| #include "platform/network/EncodedFormData.h"
|
| +#include "platform/network/ResourceError.h"
|
| #include "platform/weborigin/SecurityOrigin.h"
|
| #include "wtf/text/StringBuilder.h"
|
|
|
| @@ -130,8 +131,10 @@ void XSSAuditorDelegate::didBlockScript(const XSSInfo& xssInfo) {
|
| PingLoader::XSSAuditorViolationReport);
|
| }
|
|
|
| - if (xssInfo.m_didBlockEntirePage)
|
| - m_document->frame()->navigationScheduler().schedulePageBlock(m_document);
|
| + if (xssInfo.m_didBlockEntirePage) {
|
| + m_document->frame()->navigationScheduler().schedulePageBlock(
|
| + m_document, ResourceError::BLOCKED_BY_AUDITOR);
|
| + }
|
| }
|
|
|
| } // namespace blink
|
|
|