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

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

Issue 505063002: ServiceWorker: throw when close() or terminate() called (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove uses of 'close' within fetch tests Created 6 years, 4 months 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 2a22ed229f65ba6f157b37b4a71b7db22ffd1a18..53f8e0c696552164d599feebca024a81bd9632db 100644
--- a/Source/modules/serviceworkers/ServiceWorker.cpp
+++ b/Source/modules/serviceworkers/ServiceWorker.cpp
@@ -85,6 +85,11 @@ void ServiceWorker::postMessage(ExecutionContext*, PassRefPtr<SerializedScriptVa
m_outerWorker->postMessage(messageString, webChannels.leakPtr());
}
+void ServiceWorker::terminate(ExceptionState& exceptionState)
+{
+ exceptionState.throwDOMException(InvalidAccessError, "Not supported.");
+}
+
bool ServiceWorker::isReady()
{
return m_proxyState == Ready;

Powered by Google App Engine
This is Rietveld 408576698