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

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

Issue 342863003: Add WebServiceWorkerErrorType::ErrorTypeAbort (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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
« no previous file with comments | « no previous file | public/platform/WebServiceWorkerError.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/serviceworkers/ServiceWorkerError.cpp
diff --git a/Source/modules/serviceworkers/ServiceWorkerError.cpp b/Source/modules/serviceworkers/ServiceWorkerError.cpp
index 7076a627447a96c1582808a573249d364046b0e6..93c734d69894b0a8b72de0e8dee967342db00856 100644
--- a/Source/modules/serviceworkers/ServiceWorkerError.cpp
+++ b/Source/modules/serviceworkers/ServiceWorkerError.cpp
@@ -43,6 +43,8 @@ PassRefPtrWillBeRawPtr<DOMException> ServiceWorkerError::from(ScriptPromiseResol
switch (webError->errorType) {
case WebServiceWorkerError::ErrorTypeDisabled:
return DOMException::create(NotSupportedError, "Service Worker support is disabled.");
+ case WebServiceWorkerError::ErrorTypeAbort:
+ return DOMException::create(AbortError, "The Service Worker operation was aborted.");
case WebServiceWorkerError::ErrorTypeSecurity:
return DOMException::create(SecurityError, "The Service Worker security policy prevented an action.");
case WebServiceWorkerError::ErrorTypeInstall:
« no previous file with comments | « no previous file | public/platform/WebServiceWorkerError.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698