| 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 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 419 "The rtcpMuxPolicy option is being considered for " | 419 "The rtcpMuxPolicy option is being considered for " |
| 420 "removal and may be removed no earlier than %s. If you depend on it, " | 420 "removal and may be removed no earlier than %s. If you depend on it, " |
| 421 "please see https://www.chromestatus.com/features/5654810086866944 " | 421 "please see https://www.chromestatus.com/features/5654810086866944 " |
| 422 "for more details.", | 422 "for more details.", |
| 423 milestoneString(M60)); | 423 milestoneString(M60)); |
| 424 | 424 |
| 425 case UseCounter::kV8IDBFactory_WebkitGetDatabaseNames_Method: | 425 case UseCounter::kV8IDBFactory_WebkitGetDatabaseNames_Method: |
| 426 return willBeRemoved("indexedDB.webkitGetDatabaseNames()", M60, | 426 return willBeRemoved("indexedDB.webkitGetDatabaseNames()", M60, |
| 427 "5725741740195840"); | 427 "5725741740195840"); |
| 428 | 428 |
| 429 case UseCounter::kVibrateWithoutUserGesture: |
| 430 return willBeRemoved( |
| 431 "A call to navigator.vibrate without user tap on the frame or any " |
| 432 "embedded frame", |
| 433 M60, "5644273861001216"); |
| 434 |
| 429 case UseCounter::kChildSrcAllowedWorkerThatScriptSrcBlocked: | 435 case UseCounter::kChildSrcAllowedWorkerThatScriptSrcBlocked: |
| 430 return replacedWillBeRemoved("The 'child-src' directive", | 436 return replacedWillBeRemoved("The 'child-src' directive", |
| 431 "the 'script-src' directive for Workers", | 437 "the 'script-src' directive for Workers", |
| 432 M60, "5922594955984896"); | 438 M60, "5922594955984896"); |
| 433 | 439 |
| 434 case UseCounter::kCanRequestURLHTTPContainingNewline: | 440 case UseCounter::kCanRequestURLHTTPContainingNewline: |
| 435 return String::Format( | 441 return String::Format( |
| 436 "Resource requests whose URLs contain raw newline characters are " | 442 "Resource requests whose URLs contain raw newline characters are " |
| 437 "deprecated, and may be blocked in %s. Please remove newlines from " | 443 "deprecated, and may be blocked in %s. Please remove newlines from " |
| 438 "places like element attribute values in order to continue loading " | 444 "places like element attribute values in order to continue loading " |
| 439 "those resources. See " | 445 "those resources. See " |
| 440 "https://www.chromestatus.com/features/5735596811091968 for more " | 446 "https://www.chromestatus.com/features/5735596811091968 for more " |
| 441 "details.", | 447 "details.", |
| 442 milestoneString(M60)); | 448 milestoneString(M60)); |
| 443 | 449 |
| 444 // Features that aren't deprecated don't have a deprecation message. | 450 // Features that aren't deprecated don't have a deprecation message. |
| 445 default: | 451 default: |
| 446 return String(); | 452 return String(); |
| 447 } | 453 } |
| 448 } | 454 } |
| 449 | 455 |
| 450 } // namespace blink | 456 } // namespace blink |
| OLD | NEW |