| 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 7f0f6e7b1bf1a52df98f99dbb24308068ca00c24..46e5831978dba27964109f109c350dc3f8b32e80 100644
|
| --- a/third_party/WebKit/Source/modules/encryptedmedia/NavigatorRequestMediaKeySystemAccess.cpp
|
| +++ b/third_party/WebKit/Source/modules/encryptedmedia/NavigatorRequestMediaKeySystemAccess.cpp
|
| @@ -349,21 +349,8 @@ 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.
|
| - ExecutionContext* executionContext = scriptState->getExecutionContext();
|
| - 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.
|
| + ExecutionContext* executionContext = scriptState->getExecutionContext();
|
| Document* document = toDocument(executionContext);
|
| if (!document->page()) {
|
| return ScriptPromise::rejectWithDOMException(
|
|
|