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

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

Issue 2558813007: Add milestone to deprecation message for EME on insecure contexts (Closed)
Patch Set: rebase only Created 4 years 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 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 "See https://goo.gl/rStTGz for more details."; 308 "See https://goo.gl/rStTGz for more details.";
309 309
310 case UseCounter::GetUserMediaInsecureOrigin: 310 case UseCounter::GetUserMediaInsecureOrigin:
311 case UseCounter::GetUserMediaInsecureOriginIframe: 311 case UseCounter::GetUserMediaInsecureOriginIframe:
312 return "getUserMedia() no longer works on insecure origins. To use this " 312 return "getUserMedia() no longer works on insecure origins. To use this "
313 "feature, you should consider switching your application to a " 313 "feature, you should consider switching your application to a "
314 "secure origin, such as HTTPS. See https://goo.gl/rStTGz for more " 314 "secure origin, such as HTTPS. See https://goo.gl/rStTGz for more "
315 "details."; 315 "details.";
316 316
317 case UseCounter::EncryptedMediaInsecureOrigin: 317 case UseCounter::EncryptedMediaInsecureOrigin:
318 return "requestMediaKeySystemAccess() is deprecated on insecure origins " 318 return String::format(
319 "in the specification. Support will be removed in the future. You " 319 "Using requestMediaKeySystemAccess() on insecure origins is "
320 "should consider switching your application to a secure origin, " 320 "deprecated and will be removed in %s. You should consider "
321 "such as HTTPS. See https://goo.gl/rStTGz for more details."; 321 "switching your application to a secure origin, such as HTTPS. See "
322 "https://goo.gl/rStTGz for more details.",
323 milestoneString(M58));
322 324
323 case UseCounter::MediaSourceAbortRemove: 325 case UseCounter::MediaSourceAbortRemove:
324 return "Using SourceBuffer.abort() to abort remove()'s asynchronous " 326 return "Using SourceBuffer.abort() to abort remove()'s asynchronous "
325 "range removal is deprecated due to specification change. Support " 327 "range removal is deprecated due to specification change. Support "
326 "will be removed in the future. You should instead await " 328 "will be removed in the future. You should instead await "
327 "'updateend'. abort() is intended to only abort an asynchronous " 329 "'updateend'. abort() is intended to only abort an asynchronous "
328 "media append or reset parser state. See " 330 "media append or reset parser state. See "
329 "https://www.chromestatus.com/features/6107495151960064 for more " 331 "https://www.chromestatus.com/features/6107495151960064 for more "
330 "details."; 332 "details.";
331 case UseCounter::MediaSourceDurationTruncatingBuffered: 333 case UseCounter::MediaSourceDurationTruncatingBuffered:
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 "redirected response. This will result in an error in %s.", 415 "redirected response. This will result in an error in %s.",
414 milestoneString(M59)); 416 milestoneString(M59));
415 417
416 // Features that aren't deprecated don't have a deprecation message. 418 // Features that aren't deprecated don't have a deprecation message.
417 default: 419 default:
418 return String(); 420 return String();
419 } 421 }
420 } 422 }
421 423
422 } // namespace blink 424 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/old-powerful-features-on-insecure-origin-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698