| Index: Source/core/html/parser/XSSAuditorDelegate.cpp
|
| diff --git a/Source/core/html/parser/XSSAuditorDelegate.cpp b/Source/core/html/parser/XSSAuditorDelegate.cpp
|
| index 19a2ae18f6b14a6a80a1a010dee28d6ccf81f71c..b676bc9b0f203019f417f251db6c9fb0d335fcf8 100644
|
| --- a/Source/core/html/parser/XSSAuditorDelegate.cpp
|
| +++ b/Source/core/html/parser/XSSAuditorDelegate.cpp
|
| @@ -77,10 +77,10 @@ PassRefPtr<FormData> XSSAuditorDelegate::generateViolationReport(const XSSInfo&
|
| {
|
| ASSERT(isMainThread());
|
|
|
| - FrameLoader* frameLoader = m_document->frame()->loader();
|
| + FrameLoader& frameLoader = m_document->frame()->loader();
|
| String httpBody;
|
| - if (frameLoader->documentLoader()) {
|
| - if (FormData* formData = frameLoader->documentLoader()->originalRequest().httpBody())
|
| + if (frameLoader.documentLoader()) {
|
| + if (FormData* formData = frameLoader.documentLoader()->originalRequest().httpBody())
|
| httpBody = formData->flattenToString();
|
| }
|
|
|
| @@ -102,14 +102,14 @@ void XSSAuditorDelegate::didBlockScript(const XSSInfo& xssInfo)
|
|
|
| // stopAllLoaders can detach the Frame, so protect it.
|
| RefPtr<Frame> protect(m_document->frame());
|
| - FrameLoader* frameLoader = m_document->frame()->loader();
|
| + FrameLoader& frameLoader = m_document->frame()->loader();
|
| if (xssInfo.m_didBlockEntirePage)
|
| - frameLoader->stopAllLoaders();
|
| + frameLoader.stopAllLoaders();
|
|
|
| if (!m_didSendNotifications) {
|
| m_didSendNotifications = true;
|
|
|
| - frameLoader->client()->didDetectXSS(m_document->url(), xssInfo.m_didBlockEntirePage);
|
| + frameLoader.client()->didDetectXSS(m_document->url(), xssInfo.m_didBlockEntirePage);
|
|
|
| if (!m_reportURL.isEmpty())
|
| PingLoader::sendViolationReport(m_document->frame(), m_reportURL, generateViolationReport(xssInfo), PingLoader::XSSAuditorViolationReport);
|
|
|