| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |