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

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

Issue 723063002: Service Worker: Add a test for calling respondWith() asynchronously. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: actualyl upload Created 6 years, 1 month 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/http/tests/serviceworker/resources/fetch-event-async-respond-with-worker.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/serviceworkers/RespondWithObserver.cpp
diff --git a/Source/modules/serviceworkers/RespondWithObserver.cpp b/Source/modules/serviceworkers/RespondWithObserver.cpp
index 7f123f889d33633d0874f03d5a4bf33ba9028331..6dce903cb015af6e242e00e6ccf9e7272b569c95 100644
--- a/Source/modules/serviceworkers/RespondWithObserver.cpp
+++ b/Source/modules/serviceworkers/RespondWithObserver.cpp
@@ -87,7 +87,7 @@ void RespondWithObserver::respondWith(ScriptState* scriptState, const ScriptValu
{
ASSERT(RuntimeEnabledFeatures::serviceWorkerOnFetchEnabled());
if (m_state != Initial) {
- exceptionState.throwDOMException(InvalidStateError, "respondWith is already called.");
+ exceptionState.throwDOMException(InvalidStateError, "The fetch event has already been responded to.");
return;
}
« no previous file with comments | « LayoutTests/http/tests/serviceworker/resources/fetch-event-async-respond-with-worker.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698