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

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: Rebase on ToT 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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 // should be updated to read similarly to GetUserMediaInsecureOrigin's 263 // should be updated to read similarly to GetUserMediaInsecureOrigin's
264 // message. 264 // message.
265 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." ; 265 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." ;
266 266
267 case UseCounter::GetUserMediaInsecureOrigin: 267 case UseCounter::GetUserMediaInsecureOrigin:
268 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."; 268 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.";
269 269
270 case UseCounter::EncryptedMediaInsecureOrigin: 270 case UseCounter::EncryptedMediaInsecureOrigin:
271 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."; 271 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.";
272 272
273 case UseCounter::ApplicationCacheManifestSelectInsecureOrigin:
274 case UseCounter::ApplicationCacheAPIInsecureOrigin:
275 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.";
276
273 case UseCounter::ElementCreateShadowRootMultiple: 277 case UseCounter::ElementCreateShadowRootMultiple:
274 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."; 278 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.";
275 279
276 case UseCounter::ElementCreateShadowRootMultipleWithUserAgentShadowRoot: 280 case UseCounter::ElementCreateShadowRootMultipleWithUserAgentShadowRoot:
277 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."; 281 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.";
278 282
279 case UseCounter::CSSDeepCombinator: 283 case UseCounter::CSSDeepCombinator:
280 return "/deep/ combinator is deprecated. See https://www.chromestatus.co m/features/6750456638341120 for more details."; 284 return "/deep/ combinator is deprecated. See https://www.chromestatus.co m/features/6750456638341120 for more details.";
281 285
282 case UseCounter::CSSSelectorPseudoShadow: 286 case UseCounter::CSSSelectorPseudoShadow:
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 case UseCounter::WebAnimationHyphenatedProperty: 329 case UseCounter::WebAnimationHyphenatedProperty:
326 return replacedWillBeRemoved("Hyphenated naming in Web Animations keyfra mes", "camelCase", 51, "5650817352728576"); 330 return replacedWillBeRemoved("Hyphenated naming in Web Animations keyfra mes", "camelCase", 51, "5650817352728576");
327 331
328 // Features that aren't deprecated don't have a deprecation message. 332 // Features that aren't deprecated don't have a deprecation message.
329 default: 333 default:
330 return String(); 334 return String();
331 } 335 }
332 } 336 }
333 337
334 } // namespace blink 338 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698