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

Unified Diff: Source/core/xml/XMLHttpRequest.cpp

Issue 383363002: DevTools: Fix async stacks instrumentation for XHRs. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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/core/xml/XMLHttpRequest.cpp
diff --git a/Source/core/xml/XMLHttpRequest.cpp b/Source/core/xml/XMLHttpRequest.cpp
index c987d908e2189fbaf0e5e293b4366077ea4f6e9c..acbbd7a94394a850fd1fb068f3f5703982335376 100644
--- a/Source/core/xml/XMLHttpRequest.cpp
+++ b/Source/core/xml/XMLHttpRequest.cpp
@@ -1026,6 +1026,9 @@ void XMLHttpRequest::dispatchProgressEvent(const AtomicString& type, long long r
unsigned long long total = lengthComputable ? static_cast<unsigned long long>(expectedLength) : 0;
m_progressEventThrottle.dispatchProgressEvent(type, lengthComputable, loaded, total);
+
+ if (type == EventTypeNames::loadend)
+ InspectorInstrumentation::didDispatchXHRLoadendEvent(executionContext(), this);
}
void XMLHttpRequest::dispatchProgressEventFromSnapshot(const AtomicString& type)

Powered by Google App Engine
This is Rietveld 408576698