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

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

Issue 731433002: Service Worker: respondWith() invokes stopImmediatePropagation() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fmt 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-respond-with-stops-propagation-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/FetchEvent.cpp
diff --git a/Source/modules/serviceworkers/FetchEvent.cpp b/Source/modules/serviceworkers/FetchEvent.cpp
index 3927f7d477176038a6484f5e0e097285061ab771..8720104c35d4d3430bfdc09c3b780006fbc94a65 100644
--- a/Source/modules/serviceworkers/FetchEvent.cpp
+++ b/Source/modules/serviceworkers/FetchEvent.cpp
@@ -33,6 +33,7 @@ bool FetchEvent::isReload() const
void FetchEvent::respondWith(ScriptState* scriptState, const ScriptValue& value, ExceptionState& exceptionState)
{
+ stopImmediatePropagation();
m_observer->respondWith(scriptState, value, exceptionState);
}
« no previous file with comments | « LayoutTests/http/tests/serviceworker/resources/fetch-event-respond-with-stops-propagation-worker.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698