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

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

Issue 2054203002: service worker: Fix the type of an update promise reject value (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 4 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
Index: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerError.cpp
diff --git a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerError.cpp b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerError.cpp
index 4a37638130145923ce250a1cc8d45c88971d5fdf..36c64ca56907e258b76fb841db4bac949d656f77 100644
--- a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerError.cpp
+++ b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerError.cpp
@@ -55,6 +55,7 @@ DOMException* ServiceWorkerError::take(ScriptPromiseResolver*, const WebServiceW
case WebServiceWorkerError::ErrorTypeDisabled:
return createException(NotSupportedError, "Service Worker support is disabled.", webError.message);
case WebServiceWorkerError::ErrorTypeInstall:
+ case WebServiceWorkerError::ErrorTypeScriptEvaluateFailed:
falken 2016/06/14 02:27:53 The SERVICE_WORKER_ERROR_SCRIPT_EVALUATE_FAILED er
e_hakkinen 2016/06/16 20:55:14 This is mainly for not to break other callers of t
falken 2016/06/17 02:12:14 It'd be unfortunate for each callsite to have to s
// FIXME: Introduce new InstallError type to ExceptionCodes?
return createException(AbortError, "The Service Worker installation failed.", webError.message);
case WebServiceWorkerError::ErrorTypeNavigation:

Powered by Google App Engine
This is Rietveld 408576698