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

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

Issue 442183003: FetchEvent should not forcibly reject an unresolved Promise when destructed (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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: Source/modules/serviceworkers/RespondWithObserver.cpp
diff --git a/Source/modules/serviceworkers/RespondWithObserver.cpp b/Source/modules/serviceworkers/RespondWithObserver.cpp
index af2995de13a8595e250337ac1b2e308b7d05c1f4..a06100e18135959e5b0b3a5ca7b73957c89b2cda 100644
--- a/Source/modules/serviceworkers/RespondWithObserver.cpp
+++ b/Source/modules/serviceworkers/RespondWithObserver.cpp
@@ -62,8 +62,7 @@ PassRefPtr<RespondWithObserver> RespondWithObserver::create(ExecutionContext* co
RespondWithObserver::~RespondWithObserver()
{
- if (m_state == Pending)
- sendResponse(nullptr);
+ ASSERT(m_state != Pending);
}
void RespondWithObserver::contextDestroyed()

Powered by Google App Engine
This is Rietveld 408576698