summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/script/document_write_intervention.cc
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2019-02-13 15:05:36 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2019-02-14 10:33:47 +0000
commite684a3455bcc29a6e3e66a004e352dea4e1141e7 (patch)
treed55b4003bde34d7d05f558f02cfd82b2a66a7aac /chromium/third_party/blink/renderer/core/script/document_write_intervention.cc
parent2b94bfe47ccb6c08047959d1c26e392919550e86 (diff)
downloadqtwebengine-chromium-e684a3455bcc29a6e3e66a004e352dea4e1141e7.tar.gz
BASELINE: Update Chromium to 72.0.3626.110 and Ninja to 1.9.0
Change-Id: Ic57220b00ecc929a893c91f5cc552f5d3e99e922 Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'chromium/third_party/blink/renderer/core/script/document_write_intervention.cc')
-rw-r--r--chromium/third_party/blink/renderer/core/script/document_write_intervention.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/chromium/third_party/blink/renderer/core/script/document_write_intervention.cc b/chromium/third_party/blink/renderer/core/script/document_write_intervention.cc
index 6a35c53c8e0..ed287c4f29f 100644
--- a/chromium/third_party/blink/renderer/core/script/document_write_intervention.cc
+++ b/chromium/third_party/blink/renderer/core/script/document_write_intervention.cc
@@ -139,10 +139,10 @@ bool MaybeDisallowFetchForDocWrittenScript(FetchParameters& params,
// If the hosts didn't match, then see if the domains match. For example, if
// a script is served from static.example.com for a document served from
// www.example.com, we consider that a first party script and allow it.
- String request_domain = NetworkUtils::GetDomainAndRegistry(
- request_host, NetworkUtils::kIncludePrivateRegistries);
- String document_domain = NetworkUtils::GetDomainAndRegistry(
- document_host, NetworkUtils::kIncludePrivateRegistries);
+ String request_domain = network_utils::GetDomainAndRegistry(
+ request_host, network_utils::kIncludePrivateRegistries);
+ String document_domain = network_utils::GetDomainAndRegistry(
+ document_host, network_utils::kIncludePrivateRegistries);
// getDomainAndRegistry will return the empty string for domains that are
// already top-level, such as localhost. Thus we only compare domains if we
// get non-empty results back from getDomainAndRegistry.
@@ -219,7 +219,8 @@ void PossiblyFetchBlockedDocWriteScript(
resource->Url(), element_document.GetSecurityOrigin(), cross_origin,
resource->Encoding(), FetchParameters::kIdleLoad);
AddHeader(&params);
- ScriptResource::Fetch(params, element_document.Fetcher(), nullptr);
+ ScriptResource::Fetch(params, element_document.Fetcher(), nullptr,
+ ScriptResource::kNoStreaming);
}
} // namespace blink