| Index: third_party/WebKit/Source/modules/push_messaging/PushManager.cpp
|
| diff --git a/third_party/WebKit/Source/modules/push_messaging/PushManager.cpp b/third_party/WebKit/Source/modules/push_messaging/PushManager.cpp
|
| index a2f55f622639ce80223dcd78c00a71872590ac0c..3e10f1b08522b944cbf65a9cb57fa7ff48eb20aa 100644
|
| --- a/third_party/WebKit/Source/modules/push_messaging/PushManager.cpp
|
| +++ b/third_party/WebKit/Source/modules/push_messaging/PushManager.cpp
|
| @@ -63,7 +63,6 @@ ScriptPromise PushManager::subscribe(ScriptState* scriptState, const PushSubscri
|
| // different contexts can succeed.
|
| if (scriptState->executionContext()->isDocument()) {
|
| Document* document = toDocument(scriptState->executionContext());
|
| - // FIXME: add test coverage for this condition - https://crbug.com/440431
|
| if (!document->domWindow() || !document->frame())
|
| return ScriptPromise::rejectWithDOMException(scriptState, DOMException::create(InvalidStateError, "Document is detached from window."));
|
| PushController::clientFrom(document->frame()).subscribe(m_registration->webRegistration(), toWebPushSubscriptionOptions(options), new PushSubscriptionCallbacks(resolver, m_registration));
|
| @@ -87,7 +86,6 @@ ScriptPromise PushManager::permissionState(ScriptState* scriptState, const PushS
|
| {
|
| if (scriptState->executionContext()->isDocument()) {
|
| Document* document = toDocument(scriptState->executionContext());
|
| - // FIXME: add test coverage for this condition - https://crbug.com/440431
|
| if (!document->domWindow() || !document->frame())
|
| return ScriptPromise::rejectWithDOMException(scriptState, DOMException::create(InvalidStateError, "Document is detached from window."));
|
| }
|
|
|