| Index: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerLinkResource.cpp
|
| diff --git a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerLinkResource.cpp b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerLinkResource.cpp
|
| index d84143475422e960eef604e4b433909262e1961f..a8acb3641b26bfe3c172a1eeef558c9b8b8a7361 100644
|
| --- a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerLinkResource.cpp
|
| +++ b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerLinkResource.cpp
|
| @@ -5,6 +5,7 @@
|
| #include "modules/serviceworkers/ServiceWorkerLinkResource.h"
|
|
|
| #include "bindings/core/v8/ExceptionState.h"
|
| +#include "bindings/core/v8/ScriptState.h"
|
| #include "core/dom/Document.h"
|
| #include "core/frame/DOMWindow.h"
|
| #include "core/frame/LocalFrame.h"
|
| @@ -81,7 +82,8 @@ void ServiceWorkerLinkResource::process() {
|
|
|
| String errorMessage;
|
| ServiceWorkerContainer* container = NavigatorServiceWorker::serviceWorker(
|
| - &document, *document.frame()->domWindow()->navigator(), errorMessage);
|
| + ScriptState::forMainWorld(m_owner->document().frame()),
|
| + *document.frame()->domWindow()->navigator(), errorMessage);
|
|
|
| if (!container) {
|
| document.addConsoleMessage(ConsoleMessage::create(
|
|
|