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

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

Issue 546353003: ServiceWorker: Change worker script fetch error code(1/3). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years, 3 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 | « LayoutTests/TestExpectations ('k') | 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 320a9888996eca7e4cf5a1c2232126f2f1e0b1b7..3f5014d6e91f64411ab90afdad96b7852ca4efab 100644
--- a/Source/modules/serviceworkers/ServiceWorkerError.cpp
+++ b/Source/modules/serviceworkers/ServiceWorkerError.cpp
@@ -55,6 +55,8 @@ PassRefPtrWillBeRawPtr<DOMException> ServiceWorkerError::take(ScriptPromiseResol
// Not currently returned as a promise rejection.
// FIXME: Introduce new ActivateError type to ExceptionCodes?
return DOMException::create(AbortError, "The Service Worker activation failed.");
+ case WebServiceWorkerError::ErrorTypeNetwork:
+ return DOMException::create(NetworkError, "The Service Worker failed by network.");
case WebServiceWorkerError::ErrorTypeNotFound:
return DOMException::create(NotFoundError, "The specified Service Worker resource was not found.");
case WebServiceWorkerError::ErrorTypeUnknown:
« no previous file with comments | « LayoutTests/TestExpectations ('k') | public/platform/WebServiceWorkerError.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698