Index: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerWindowClient.cpp |
diff --git a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerWindowClient.cpp b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerWindowClient.cpp |
index e4de29422eddb96127e714ad6eda029a6edb9347..3bf05a0b10fb20ee0f13c7bf403c9fc3e2888657 100644 |
--- a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerWindowClient.cpp |
+++ b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerWindowClient.cpp |
@@ -50,13 +50,13 @@ ScriptPromise ServiceWorkerWindowClient::focus(ScriptState* scriptState) |
ScriptPromiseResolver* resolver = ScriptPromiseResolver::create(scriptState); |
ScriptPromise promise = resolver->promise(); |
- if (!scriptState->executionContext()->isWindowInteractionAllowed()) { |
+ if (!scriptState->getExecutionContext()->isWindowInteractionAllowed()) { |
resolver->reject(DOMException::create(InvalidAccessError, "Not allowed to focus a window.")); |
return promise; |
} |
- scriptState->executionContext()->consumeWindowInteraction(); |
+ scriptState->getExecutionContext()->consumeWindowInteraction(); |
- ServiceWorkerGlobalScopeClient::from(scriptState->executionContext())->focus(uuid(), new CallbackPromiseAdapter<ServiceWorkerWindowClient, ServiceWorkerError>(resolver)); |
+ ServiceWorkerGlobalScopeClient::from(scriptState->getExecutionContext())->focus(uuid(), new CallbackPromiseAdapter<ServiceWorkerWindowClient, ServiceWorkerError>(resolver)); |
return promise; |
} |
@@ -64,14 +64,14 @@ ScriptPromise ServiceWorkerWindowClient::navigate(ScriptState* scriptState, cons |
{ |
ScriptPromiseResolver* resolver = ScriptPromiseResolver::create(scriptState); |
ScriptPromise promise = resolver->promise(); |
- ExecutionContext* context = scriptState->executionContext(); |
+ ExecutionContext* context = scriptState->getExecutionContext(); |
KURL parsedUrl = KURL(toWorkerGlobalScope(context)->location()->url(), url); |
if (!parsedUrl.isValid() || parsedUrl.protocolIsAbout()) { |
resolver->reject(V8ThrowException::createTypeError(scriptState->isolate(), "'" + url + "' is not a valid URL.")); |
return promise; |
} |
- if (!context->securityOrigin()->canDisplay(parsedUrl)) { |
+ if (!context->getSecurityOrigin()->canDisplay(parsedUrl)) { |
resolver->reject(V8ThrowException::createTypeError(scriptState->isolate(), "'" + parsedUrl.elidedString() + "' cannot navigate.")); |
return promise; |
} |