| Index: Source/core/loader/DocumentThreadableLoader.cpp
|
| diff --git a/Source/core/loader/DocumentThreadableLoader.cpp b/Source/core/loader/DocumentThreadableLoader.cpp
|
| index 51bac8ab32e19519234bcb5fe2f5cd50bfd9ca2b..e7aeece5fd1d65b2a7a0676156c0f27228843998 100644
|
| --- a/Source/core/loader/DocumentThreadableLoader.cpp
|
| +++ b/Source/core/loader/DocumentThreadableLoader.cpp
|
| @@ -462,19 +462,4 @@ SecurityOrigin* DocumentThreadableLoader::securityOrigin() const
|
| return m_options.securityOrigin ? m_options.securityOrigin.get() : m_document->securityOrigin();
|
| }
|
|
|
| -bool DocumentThreadableLoader::checkCrossOriginAccessRedirectionUrl(const KURL& requestUrl, String& errorDescription)
|
| -{
|
| - if (!SchemeRegistry::shouldTreatURLSchemeAsCORSEnabled(requestUrl.protocol())) {
|
| - errorDescription = "The request was redirected to a URL ('" + requestUrl.string() + "') which has a disallowed scheme for cross-origin requests.";
|
| - return false;
|
| - }
|
| -
|
| - if (!(requestUrl.user().isEmpty() && requestUrl.pass().isEmpty())) {
|
| - errorDescription = "The request was redirected to a URL ('" + requestUrl.string() + "') containing userinfo, which is disallowed for cross-origin requests.";
|
| - return false;
|
| - }
|
| -
|
| - return true;
|
| -}
|
| -
|
| } // namespace WebCore
|
|
|