| Index: third_party/WebKit/Source/core/loader/FrameLoader.cpp
|
| diff --git a/third_party/WebKit/Source/core/loader/FrameLoader.cpp b/third_party/WebKit/Source/core/loader/FrameLoader.cpp
|
| index 5bc3baacfc881129f9e342c99a4963cb7befe6e5..0f41ea9609c116a0068f73825b0c2e64136abc0e 100644
|
| --- a/third_party/WebKit/Source/core/loader/FrameLoader.cpp
|
| +++ b/third_party/WebKit/Source/core/loader/FrameLoader.cpp
|
| @@ -1307,6 +1307,19 @@ NavigationPolicy FrameLoader::ShouldContinueForNavigationPolicy(
|
| if (request.Url().IsEmpty() || substitute_data.IsValid())
|
| return kNavigationPolicyCurrentTab;
|
|
|
| + // Check for non-escaped new lines in the url.
|
| + if (request.Url().WhitespaceRemoved()) {
|
| + Deprecation::CountDeprecation(
|
| + frame_, UseCounter::kCanRequestURLHTTPContainingNewline);
|
| + if (request.Url().ProtocolIsInHTTPFamily()) {
|
| + if (RuntimeEnabledFeatures::restrictCanRequestURLCharacterSetEnabled())
|
| + return kNavigationPolicyIgnore;
|
| + } else {
|
| + UseCounter::Count(frame_,
|
| + UseCounter::kCanRequestURLNonHTTPContainingNewline);
|
| + }
|
| + }
|
| +
|
| Settings* settings = frame_->GetSettings();
|
| if (MaybeCheckCSP(request, type, frame_, policy,
|
| should_check_main_world_content_security_policy ==
|
|
|