| Index: third_party/WebKit/Source/modules/presentation/PresentationRequest.cpp
|
| diff --git a/third_party/WebKit/Source/modules/presentation/PresentationRequest.cpp b/third_party/WebKit/Source/modules/presentation/PresentationRequest.cpp
|
| index a378729c3c5f8cf76fe4928b0a89b293dda3fe2f..f2e47a5420b247e0128abd44fb2185d98722f57d 100644
|
| --- a/third_party/WebKit/Source/modules/presentation/PresentationRequest.cpp
|
| +++ b/third_party/WebKit/Source/modules/presentation/PresentationRequest.cpp
|
| @@ -101,12 +101,9 @@ void PresentationRequest::addedEventListener(
|
| }
|
|
|
| bool PresentationRequest::hasPendingActivity() const {
|
| - if (!getExecutionContext() || getExecutionContext()->isContextDestroyed())
|
| - return false;
|
| -
|
| // Prevents garbage collecting of this object when not hold by another
|
| // object but still has listeners registered.
|
| - return hasEventListeners();
|
| + return getExecutionContext() && hasEventListeners();
|
| }
|
|
|
| ScriptPromise PresentationRequest::start(ScriptState* scriptState) {
|
|
|