| Index: third_party/WebKit/Source/modules/encryptedmedia/ContentDecryptionModuleResultPromise.cpp
|
| diff --git a/third_party/WebKit/Source/modules/encryptedmedia/ContentDecryptionModuleResultPromise.cpp b/third_party/WebKit/Source/modules/encryptedmedia/ContentDecryptionModuleResultPromise.cpp
|
| index 3bd4dd72b08599288aef33b8cf814be7bca3ca89..6f7953fad58e1475ffae30b90ab2d4b666e63a6f 100644
|
| --- a/third_party/WebKit/Source/modules/encryptedmedia/ContentDecryptionModuleResultPromise.cpp
|
| +++ b/third_party/WebKit/Source/modules/encryptedmedia/ContentDecryptionModuleResultPromise.cpp
|
| @@ -107,11 +107,10 @@ ExecutionContext* ContentDecryptionModuleResultPromise::getExecutionContext()
|
|
|
| bool ContentDecryptionModuleResultPromise::isValidToFulfillPromise() {
|
| // getExecutionContext() is no longer valid once the context is destroyed.
|
| - // activeDOMObjectsAreStopped() is called to see if the context is in the
|
| + // isContextDestroyed() is called to see if the context is in the
|
| // process of being destroyed. If it is, there is no need to fulfill this
|
| // promise which is about to go away anyway.
|
| - return getExecutionContext() &&
|
| - !getExecutionContext()->activeDOMObjectsAreStopped();
|
| + return getExecutionContext() && !getExecutionContext()->isContextDestroyed();
|
| }
|
|
|
| DEFINE_TRACE(ContentDecryptionModuleResultPromise) {
|
|
|