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

Unified Diff: third_party/WebKit/Source/modules/encryptedmedia/NavigatorRequestMediaKeySystemAccess.cpp

Issue 2678433003: media: Require SecureContext for EME APIs (Closed)
Patch Set: rebase only Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/encryptedmedia/NavigatorRequestMediaKeySystemAccess.cpp
diff --git a/third_party/WebKit/Source/modules/encryptedmedia/NavigatorRequestMediaKeySystemAccess.cpp b/third_party/WebKit/Source/modules/encryptedmedia/NavigatorRequestMediaKeySystemAccess.cpp
index ae354cf91d4200a796fc31befa4a430d520f1daf..96c4f007f3cddb07de19d7226abb82dbe3b05f19 100644
--- a/third_party/WebKit/Source/modules/encryptedmedia/NavigatorRequestMediaKeySystemAccess.cpp
+++ b/third_party/WebKit/Source/modules/encryptedmedia/NavigatorRequestMediaKeySystemAccess.cpp
@@ -339,19 +339,6 @@ ScriptPromise NavigatorRequestMediaKeySystemAccess::requestMediaKeySystemAccess(
"The supportedConfigurations parameter is empty."));
}
- // Note: This method should only be exposed to secure contexts as indicated
- // by the [SecureContext] IDL attribute. Since that will break some existing
- // sites, we simply keep track of sites that aren't secure and output a
- // deprecation message.
- if (executionContext->isSecureContext()) {
- UseCounter::count(executionContext, UseCounter::EncryptedMediaSecureOrigin);
- } else {
- Deprecation::countDeprecation(executionContext,
- UseCounter::EncryptedMediaInsecureOrigin);
- // TODO(ddorwin): Implement the following:
- // Reject promise with a new DOMException whose name is NotSupportedError.
- }
-
// 3. Let document be the calling context's Document.
// (Done at the begining of this function.)
if (!document->page()) {

Powered by Google App Engine
This is Rietveld 408576698