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/FrameHost.h" | 10 #include "core/frame/FrameHost.h" |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 case UseCounter::GeolocationInsecureOriginIframeDeprecatedNotRemoved: | 297 case UseCounter::GeolocationInsecureOriginIframeDeprecatedNotRemoved: |
298 return "getCurrentPosition() and watchPosition() are deprecated on insec
ure origins. To use this feature, you should consider switching your application
to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more details."
; | 298 return "getCurrentPosition() and watchPosition() are deprecated on insec
ure origins. To use this feature, you should consider switching your application
to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more details."
; |
299 | 299 |
300 case UseCounter::GetUserMediaInsecureOrigin: | 300 case UseCounter::GetUserMediaInsecureOrigin: |
301 case UseCounter::GetUserMediaInsecureOriginIframe: | 301 case UseCounter::GetUserMediaInsecureOriginIframe: |
302 return "getUserMedia() no longer works on insecure origins. To use this
feature, you should consider switching your application to a secure origin, such
as HTTPS. See https://goo.gl/rStTGz for more details."; | 302 return "getUserMedia() no longer works on insecure origins. To use this
feature, you should consider switching your application to a secure origin, such
as HTTPS. See https://goo.gl/rStTGz for more details."; |
303 | 303 |
304 case UseCounter::EncryptedMediaInsecureOrigin: | 304 case UseCounter::EncryptedMediaInsecureOrigin: |
305 return "requestMediaKeySystemAccess() is deprecated on insecure origins
in the specification. Support will be removed in the future. You should consider
switching your application to a secure origin, such as HTTPS. See https://goo.g
l/rStTGz for more details."; | 305 return "requestMediaKeySystemAccess() is deprecated on insecure origins
in the specification. Support will be removed in the future. You should consider
switching your application to a secure origin, such as HTTPS. See https://goo.g
l/rStTGz for more details."; |
306 | 306 |
| 307 case UseCounter::MediaSourceAbortRemove: |
| 308 return "Using SourceBuffer.abort() to abort remove()'s asynchronous rang
e removal is deprecated due to specification change. Support will be removed in
the future. You should instead await 'updateend'. abort() is intended to only ab
ort an asynchronous media append or reset parser state. See https://www.chromest
atus.com/features/6107495151960064 for more details."; |
| 309 case UseCounter::MediaSourceDurationTruncatingBuffered: |
| 310 return "Setting MediaSource.duration below the highest presentation time
stamp of any buffered coded frames is deprecated due to specification change. Su
pport for implicit removal of truncated buffered media will be removed in the fu
ture. You should instead perform explicit remove(newDuration, oldDuration) on al
l sourceBuffers, where newDuration < oldDuration. See https://www.chromestatus.c
om/features/6107495151960064 for more details."; |
| 311 |
307 case UseCounter::ApplicationCacheManifestSelectInsecureOrigin: | 312 case UseCounter::ApplicationCacheManifestSelectInsecureOrigin: |
308 case UseCounter::ApplicationCacheAPIInsecureOrigin: | 313 case UseCounter::ApplicationCacheAPIInsecureOrigin: |
309 return "Use of the Application Cache is deprecated on insecure origins.
Support will be removed in the future. You should consider switching your applic
ation to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more deta
ils."; | 314 return "Use of the Application Cache is deprecated on insecure origins.
Support will be removed in the future. You should consider switching your applic
ation to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more deta
ils."; |
310 | 315 |
311 case UseCounter::ElementCreateShadowRootMultiple: | 316 case UseCounter::ElementCreateShadowRootMultiple: |
312 return "Calling Element.createShadowRoot() for an element which already
hosts a shadow root is deprecated. See https://www.chromestatus.com/features/466
8884095336448 for more details."; | 317 return "Calling Element.createShadowRoot() for an element which already
hosts a shadow root is deprecated. See https://www.chromestatus.com/features/466
8884095336448 for more details."; |
313 | 318 |
314 case UseCounter::CSSDeepCombinator: | 319 case UseCounter::CSSDeepCombinator: |
315 return "/deep/ combinator is deprecated. See https://www.chromestatus.co
m/features/6750456638341120 for more details."; | 320 return "/deep/ combinator is deprecated. See https://www.chromestatus.co
m/features/6750456638341120 for more details."; |
316 | 321 |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
381 case UseCounter::TouchEndDuringScrollUserGestureUtilized: | 386 case UseCounter::TouchEndDuringScrollUserGestureUtilized: |
382 return willBeRemoved("Performing operations that require explicit user i
nteraction on touchend events that occur as part of a scroll", 54, "564987125196
3904"); | 387 return willBeRemoved("Performing operations that require explicit user i
nteraction on touchend events that occur as part of a scroll", 54, "564987125196
3904"); |
383 | 388 |
384 // Features that aren't deprecated don't have a deprecation message. | 389 // Features that aren't deprecated don't have a deprecation message. |
385 default: | 390 default: |
386 return String(); | 391 return String(); |
387 } | 392 } |
388 } | 393 } |
389 | 394 |
390 } // namespace blink | 395 } // namespace blink |
OLD | NEW |