| 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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 case UseCounter::PrefixedWindowURL: | 263 case UseCounter::PrefixedWindowURL: |
| 264 return replacedBy("'webkitURL'", "'URL'"); | 264 return replacedBy("'webkitURL'", "'URL'"); |
| 265 | 265 |
| 266 case UseCounter::RangeExpand: | 266 case UseCounter::RangeExpand: |
| 267 return replacedBy("'Range.expand()'", "'Selection.modify()'"); | 267 return replacedBy("'Range.expand()'", "'Selection.modify()'"); |
| 268 | 268 |
| 269 // Blocked subresource requests: | 269 // Blocked subresource requests: |
| 270 case UseCounter::LegacyProtocolEmbeddedAsSubresource: | 270 case UseCounter::LegacyProtocolEmbeddedAsSubresource: |
| 271 return String::format( | 271 return String::format( |
| 272 "Subresource requests using legacy protocols (like `ftp:`) are " | 272 "Subresource requests using legacy protocols (like `ftp:`) are " |
| 273 "deprecated, and will be blocked in %s. Please deliver " | 273 "are blocked. Please deliver web-accessible resources over modern " |
| 274 "web-accessible resources over modern protocols like HTTPS. " | 274 "protocols like HTTPS. See " |
| 275 "See https://www.chromestatus.com/feature/5709390967472128 for more " | 275 "https://www.chromestatus.com/feature/5709390967472128 for details."); |
| 276 "details.", | |
| 277 milestoneString(M59)); | |
| 278 | 276 |
| 279 case UseCounter::RequestedSubresourceWithEmbeddedCredentials: | 277 case UseCounter::RequestedSubresourceWithEmbeddedCredentials: |
| 280 return String::format( | 278 return String::format( |
| 281 "Subresource requests whose URLs contain embedded credentials (e.g. " | 279 "Subresource requests whose URLs contain embedded credentials (e.g. " |
| 282 "`https://user:pass@host/`) are deprecated, and will be blocked in " | 280 "`https://user:pass@host/`) are deprecated, and will be blocked in " |
| 283 "%s. See https://www.chromestatus.com/feature/5669008342777856 for " | 281 "%s. See https://www.chromestatus.com/feature/5669008342777856 for " |
| 284 "more details.", | 282 "more details.", |
| 285 milestoneString(M59)); | 283 milestoneString(M59)); |
| 286 | 284 |
| 287 // Powerful features on insecure origins (https://goo.gl/rStTGz) | 285 // Powerful features on insecure origins (https://goo.gl/rStTGz) |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 430 "the 'script-src' directive for Workers", | 428 "the 'script-src' directive for Workers", |
| 431 M60, "5922594955984896"); | 429 M60, "5922594955984896"); |
| 432 | 430 |
| 433 // Features that aren't deprecated don't have a deprecation message. | 431 // Features that aren't deprecated don't have a deprecation message. |
| 434 default: | 432 default: |
| 435 return String(); | 433 return String(); |
| 436 } | 434 } |
| 437 } | 435 } |
| 438 | 436 |
| 439 } // namespace blink | 437 } // namespace blink |
| OLD | NEW |