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

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

Issue 1723353002: Add deprecation message for AppCache in insecure contexts (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 4 years, 9 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
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/FrameHost.h" 10 #include "core/frame/FrameHost.h"
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 // should be updated to read similarly to GetUserMediaInsecureOrigin's 271 // should be updated to read similarly to GetUserMediaInsecureOrigin's
272 // message. 272 // message.
273 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." ; 273 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." ;
274 274
275 case UseCounter::GetUserMediaInsecureOrigin: 275 case UseCounter::GetUserMediaInsecureOrigin:
276 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."; 276 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.";
277 277
278 case UseCounter::EncryptedMediaInsecureOrigin: 278 case UseCounter::EncryptedMediaInsecureOrigin:
279 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."; 279 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.";
280 280
281 case UseCounter::ApplicationCacheManifestSelectInsecureOrigin:
282 case UseCounter::ApplicationCacheAPIInsecureOrigin:
283 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.";
284
281 case UseCounter::ElementCreateShadowRootMultiple: 285 case UseCounter::ElementCreateShadowRootMultiple:
282 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."; 286 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.";
283 287
284 case UseCounter::ElementCreateShadowRootMultipleWithUserAgentShadowRoot: 288 case UseCounter::ElementCreateShadowRootMultipleWithUserAgentShadowRoot:
285 return "Calling Element.createShadowRoot() for an element which already hosts a user-agent shadow root is deprecated. See https://www.chromestatus.com/f eatures/4668884095336448 for more details."; 289 return "Calling Element.createShadowRoot() for an element which already hosts a user-agent shadow root is deprecated. See https://www.chromestatus.com/f eatures/4668884095336448 for more details.";
286 290
287 case UseCounter::CSSDeepCombinator: 291 case UseCounter::CSSDeepCombinator:
288 return "/deep/ combinator is deprecated. See https://www.chromestatus.co m/features/6750456638341120 for more details."; 292 return "/deep/ combinator is deprecated. See https://www.chromestatus.co m/features/6750456638341120 for more details.";
289 293
290 case UseCounter::CSSSelectorPseudoShadow: 294 case UseCounter::CSSSelectorPseudoShadow:
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 case UseCounter::BorderImageWithBorderStyleNone: 349 case UseCounter::BorderImageWithBorderStyleNone:
346 return "Elements using the 'border-image' CSS property with no 'border-s tyle' set should have no border, but currently do. Setting 'border-style' will b e required in M51, around June 2016. See https://www.chromestatus.com/features/5 542503914668032 for more details."; 350 return "Elements using the 'border-image' CSS property with no 'border-s tyle' set should have no border, but currently do. Setting 'border-style' will b e required in M51, around June 2016. See https://www.chromestatus.com/features/5 542503914668032 for more details.";
347 351
348 // Features that aren't deprecated don't have a deprecation message. 352 // Features that aren't deprecated don't have a deprecation message.
349 default: 353 default:
350 return String(); 354 return String();
351 } 355 }
352 } 356 }
353 357
354 } // namespace blink 358 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698