Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Unified Diff: Source/modules/serviceworkers/ServiceWorker.cpp

Issue 695643002: Add terminateServiceWorker method for layout tests - blink side (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/modules/serviceworkers/ServiceWorker.cpp
diff --git a/Source/modules/serviceworkers/ServiceWorker.cpp b/Source/modules/serviceworkers/ServiceWorker.cpp
index 872a258e271b1e3c28d2b1926232853199dee566..2c746c86e95806abdc2ee3f7cfc4caa2224232aa 100644
--- a/Source/modules/serviceworkers/ServiceWorker.cpp
+++ b/Source/modules/serviceworkers/ServiceWorker.cpp
@@ -101,6 +101,11 @@ void ServiceWorker::terminate(ExceptionState& exceptionState)
exceptionState.throwDOMException(InvalidAccessError, "Not supported.");
}
+void ServiceWorker::internalsTerminate()
+{
+ m_outerWorker->terminate();
+}
+
bool ServiceWorker::isReady()
{
return m_proxyState == Ready;
« no previous file with comments | « Source/modules/serviceworkers/ServiceWorker.h ('k') | Source/modules/serviceworkers/testing/InternalsServiceWorker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698