| Index: third_party/WebKit/Source/modules/background_sync/SyncManager.cpp
|
| diff --git a/third_party/WebKit/Source/modules/background_sync/SyncManager.cpp b/third_party/WebKit/Source/modules/background_sync/SyncManager.cpp
|
| index f58803e4e0a2d34c4ada9df9f649eb291108416c..a70b1bed5c98974c8a8027ea7febd2d8dfe64c40 100644
|
| --- a/third_party/WebKit/Source/modules/background_sync/SyncManager.cpp
|
| +++ b/third_party/WebKit/Source/modules/background_sync/SyncManager.cpp
|
| @@ -44,8 +44,8 @@ ScriptPromise SyncManager::registerFunction(ScriptState* scriptState, ExecutionC
|
| if (!m_registration->active())
|
| return ScriptPromise::rejectWithDOMException(scriptState, DOMException::create(AbortError, "Registration failed - no active Service Worker"));
|
|
|
| - if (scriptState->executionContext()->isDocument()) {
|
| - Document* document = toDocument(scriptState->executionContext());
|
| + if (scriptState->getExecutionContext()->isDocument()) {
|
| + Document* document = toDocument(scriptState->getExecutionContext());
|
| if (!document->domWindow() || !document->frame())
|
| return ScriptPromise::rejectWithDOMException(scriptState, DOMException::create(InvalidStateError, "Document is detached from window."));
|
| if (!document->frame()->isMainFrame())
|
|
|