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

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

Issue 964483004: Service Worker: Add a timeout error value. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 313f2a866d3909857de4b4852f951e708479d731..09f735fdf02bf740818d7c82e5e0c73fb18e2c84 100644
--- a/Source/modules/serviceworkers/ServiceWorkerError.cpp
+++ b/Source/modules/serviceworkers/ServiceWorkerError.cpp
@@ -67,6 +67,8 @@ PassRefPtrWillBeRawPtr<DOMException> ServiceWorkerError::take(ScriptPromiseResol
return createException(SecurityError, "The Service Worker security policy prevented an action.", webError->message);
case WebServiceWorkerError::ErrorTypeState:
return createException(InvalidStateError, "The Service Worker state was not valid.", webError->message);
+ case WebServiceWorkerError::ErrorTypeTimeout:
+ return createException(AbortError, "The Service Worker operation timed out.", webError->message);
case WebServiceWorkerError::ErrorTypeUnknown:
return createException(UnknownError, "An unknown error occurred within Service Worker.", webError->message);
}
« 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