| Index: Source/core/html/parser/XSSAuditor.cpp
|
| diff --git a/Source/core/html/parser/XSSAuditor.cpp b/Source/core/html/parser/XSSAuditor.cpp
|
| index a4fa2944e34ec77bb35fd80695ab783d682e524f..8e5246bfa832f531df7436e59a8fb79f6c06746c 100644
|
| --- a/Source/core/html/parser/XSSAuditor.cpp
|
| +++ b/Source/core/html/parser/XSSAuditor.cpp
|
| @@ -257,8 +257,8 @@ void XSSAuditor::init(Document* document, XSSAuditorDelegate* auditorDelegate)
|
| return;
|
| }
|
|
|
| - if (document->decoder())
|
| - m_encoding = document->decoder()->encoding();
|
| + if (document->encoding().isValid())
|
| + m_encoding = document->encoding();
|
|
|
| m_decodedURL = fullyDecodeString(m_documentURL.string(), m_encoding);
|
| if (m_decodedURL.find(isRequiredForInjection) == notFound)
|
|
|