| Index: third_party/WebKit/Source/core/dom/ScriptLoader.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/ScriptLoader.cpp b/third_party/WebKit/Source/core/dom/ScriptLoader.cpp
|
| index a89f7df4387c5f1ba1c51a6dc57a314d0a71e1e0..b33f34f19aa2891a85c1daa62870e688f9a8b4e0 100644
|
| --- a/third_party/WebKit/Source/core/dom/ScriptLoader.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/ScriptLoader.cpp
|
| @@ -293,7 +293,7 @@ bool ScriptLoader::fetchScript(const String& sourceUrl, FetchRequest::DeferOptio
|
|
|
| CrossOriginAttributeValue crossOrigin = crossOriginAttributeValue(m_element->fastGetAttribute(HTMLNames::crossoriginAttr));
|
| if (crossOrigin != CrossOriginAttributeNotSet)
|
| - request.setCrossOriginAccessControl(elementDocument->securityOrigin(), crossOrigin);
|
| + request.setCrossOriginAccessControl(elementDocument->getSecurityOrigin(), crossOrigin);
|
| request.setCharset(scriptCharset());
|
|
|
| // Skip fetch-related CSP checks if the script element has a valid nonce, or if dynamically
|
| @@ -340,7 +340,7 @@ void ScriptLoader::logScriptMimetype(ScriptResource* resource, LocalFrame* frame
|
| bool text = mimetype.lower().startsWith("text/");
|
| bool application = mimetype.lower().startsWith("application/");
|
| bool expectedJs = MIMETypeRegistry::isSupportedJavaScriptMIMEType(mimetype) || (text && isLegacySupportedJavaScriptLanguage(mimetype.substring(5)));
|
| - bool sameOrigin = m_element->document().securityOrigin()->canRequest(m_resource->url());
|
| + bool sameOrigin = m_element->document().getSecurityOrigin()->canRequest(m_resource->url());
|
| if (expectedJs) {
|
| return;
|
| }
|
| @@ -405,7 +405,7 @@ bool ScriptLoader::executeScript(const ScriptSourceCode& sourceCode, double* com
|
| accessControlStatus = OpaqueResource;
|
| else
|
| accessControlStatus = SharableCrossOrigin;
|
| - } else if (sourceCode.resource()->passesAccessControlCheck(m_element->document().securityOrigin())) {
|
| + } else if (sourceCode.resource()->passesAccessControlCheck(m_element->document().getSecurityOrigin())) {
|
| accessControlStatus = SharableCrossOrigin;
|
| }
|
| }
|
|
|