Index: third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp |
diff --git a/third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp b/third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp |
index 7693672456e67c9141ef8a594a3975f54092dabc..f858f4ff170bb2e954455e1b33ce27f9b6cd2a43 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp |
+++ b/third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp |
@@ -343,7 +343,7 @@ void HTMLAnchorElement::handleClick(Event* event) |
if (hasAttribute(downloadAttr)) { |
request.setRequestContext(WebURLRequest::RequestContextDownload); |
- bool isSameOrigin = completedURL.protocolIsData() || document().securityOrigin()->canRequest(completedURL); |
+ bool isSameOrigin = completedURL.protocolIsData() || document().getSecurityOrigin()->canRequest(completedURL); |
const AtomicString& suggestedName = (isSameOrigin ? fastGetAttribute(downloadAttr) : nullAtom); |
frame->loader().client()->loadURLExternally(request, NavigationPolicyDownload, suggestedName, false); |