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

Unified Diff: third_party/WebKit/Source/core/loader/FrameLoader.cpp

Issue 2785873002: Detached FrameLoader should not log snapshot trace events (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/loader/FrameLoader.cpp
diff --git a/third_party/WebKit/Source/core/loader/FrameLoader.cpp b/third_party/WebKit/Source/core/loader/FrameLoader.cpp
index 1ef7f5649dbd8a7cc0ac629692f4d869ab15676e..646a31fc53e8442e6ed52e8d15101fc7928a0903 100644
--- a/third_party/WebKit/Source/core/loader/FrameLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/FrameLoader.cpp
@@ -1885,6 +1885,10 @@ std::unique_ptr<TracedValue> FrameLoader::toTracedValue() const {
}
inline void FrameLoader::takeObjectSnapshot() const {
+ if (!m_progressTracker) {
kouhei (in TOK) 2017/03/30 04:49:22 Would you m_frame = nullptr in ::detach() and chec
Kunihiko Sakamoto 2017/03/30 05:08:58 Hmm, ::clear() uses m_frame after ::detach() (call
Kunihiko Sakamoto 2017/03/30 05:52:22 m_frame = nullptr in clear() didn't work either. H
+ // We already logged TRACE_EVENT_OBJECT_DELETED_WITH_ID in detach().
+ return;
+ }
TRACE_EVENT_OBJECT_SNAPSHOT_WITH_ID("loading", "FrameLoader", this,
toTracedValue());
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698