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

Unified Diff: third_party/WebKit/Source/modules/fetch/FetchManager.cpp

Issue 2629823002: Add CHECKs to make sure ThreadableLoader has not been created multiple times (Closed)
Patch Set: fix Created 3 years, 11 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/fetch/FetchManager.cpp
diff --git a/third_party/WebKit/Source/modules/fetch/FetchManager.cpp b/third_party/WebKit/Source/modules/fetch/FetchManager.cpp
index 900b1e926ff520ec9b304f6c89aa8d7119c0057f..833e2c6c94344fa8d9b5a01618279fbeebd5be2f 100644
--- a/third_party/WebKit/Source/modules/fetch/FetchManager.cpp
+++ b/third_party/WebKit/Source/modules/fetch/FetchManager.cpp
@@ -838,6 +838,8 @@ void FetchManager::Loader::performHTTPFetch(bool corsFlag,
break;
}
InspectorInstrumentation::willStartFetch(m_executionContext, this);
+ // TODO(yhirano): Remove this CHECK once https://crbug.com/667254 is fixed.
+ CHECK(!m_loader);
m_loader =
ThreadableLoader::create(*m_executionContext, this,
threadableLoaderOptions, resourceLoaderOptions);

Powered by Google App Engine
This is Rietveld 408576698