Chromium Code Reviews

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.
Jump to:
View side-by-side diff with in-line comments
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