Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(233)

Side by Side Diff: third_party/WebKit/Source/core/frame/Deprecation.cpp

Issue 2976523002: Fix ftp subresource deprecation message. (Closed)
Patch Set: Fix LayoutTests Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/security/block-test-expected.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/frame/Deprecation.h" 5 #include "core/frame/Deprecation.h"
6 6
7 #include "core/dom/Document.h" 7 #include "core/dom/Document.h"
8 #include "core/dom/ExecutionContext.h" 8 #include "core/dom/ExecutionContext.h"
9 #include "core/frame/FrameConsole.h" 9 #include "core/frame/FrameConsole.h"
10 #include "core/frame/LocalFrame.h" 10 #include "core/frame/LocalFrame.h"
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 case WebFeature::kPrefixedWindowURL: 245 case WebFeature::kPrefixedWindowURL:
246 return replacedBy("'webkitURL'", "'URL'"); 246 return replacedBy("'webkitURL'", "'URL'");
247 247
248 case WebFeature::kRangeExpand: 248 case WebFeature::kRangeExpand:
249 return replacedBy("'Range.expand()'", "'Selection.modify()'"); 249 return replacedBy("'Range.expand()'", "'Selection.modify()'");
250 250
251 // Blocked subresource requests: 251 // Blocked subresource requests:
252 case WebFeature::kLegacyProtocolEmbeddedAsSubresource: 252 case WebFeature::kLegacyProtocolEmbeddedAsSubresource:
253 return String::Format( 253 return String::Format(
254 "Subresource requests using legacy protocols (like `ftp:`) are " 254 "Subresource requests using legacy protocols (like `ftp:`) are "
255 "are blocked. Please deliver web-accessible resources over modern " 255 "blocked. Please deliver web-accessible resources over modern "
256 "protocols like HTTPS. See " 256 "protocols like HTTPS. See "
257 "https://www.chromestatus.com/feature/5709390967472128 for details."); 257 "https://www.chromestatus.com/feature/5709390967472128 for details.");
258 258
259 case WebFeature::kRequestedSubresourceWithEmbeddedCredentials: 259 case WebFeature::kRequestedSubresourceWithEmbeddedCredentials:
260 return "Subresource requests whose URLs contain embedded credentials " 260 return "Subresource requests whose URLs contain embedded credentials "
261 "(e.g. `https://user:pass@host/`) are blocked. See " 261 "(e.g. `https://user:pass@host/`) are blocked. See "
262 "https://www.chromestatus.com/feature/5669008342777856 for more " 262 "https://www.chromestatus.com/feature/5669008342777856 for more "
263 "details."; 263 "details.";
264 264
265 // Powerful features on insecure origins (https://goo.gl/rStTGz) 265 // Powerful features on insecure origins (https://goo.gl/rStTGz)
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 "https://goo.gl/EGXzpw for possible migration paths.", 450 "https://goo.gl/EGXzpw for possible migration paths.",
451 milestoneString(M65)); 451 milestoneString(M65));
452 452
453 // Features that aren't deprecated don't have a deprecation message. 453 // Features that aren't deprecated don't have a deprecation message.
454 default: 454 default:
455 return String(); 455 return String();
456 } 456 }
457 } 457 }
458 458
459 } // namespace blink 459 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/security/block-test-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698