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

Unified Diff: Source/core/loader/DocumentLoader.cpp

Issue 23781008: Prevent crash in DocumentLoader::dataReceived (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Deflakify test Created 7 years, 3 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 | « LayoutTests/fast/parser/xhtml-synchronous-detach-crash-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/loader/DocumentLoader.cpp
diff --git a/Source/core/loader/DocumentLoader.cpp b/Source/core/loader/DocumentLoader.cpp
index 29bea9bb8661289d9249f586ec79badd2f10b0c2..11f05e28e9220a9a18bbf799a0a7d619418d3174 100644
--- a/Source/core/loader/DocumentLoader.cpp
+++ b/Source/core/loader/DocumentLoader.cpp
@@ -609,7 +609,7 @@ void DocumentLoader::dataReceived(Resource* resource, const char* data, int leng
// If we are sending data to MediaDocument, we should stop here
// and cancel the request.
- if (m_frame->document()->isMediaDocument())
+ if (m_frame && m_frame->document()->isMediaDocument())
cancelMainResourceLoad(ResourceError::cancelledError(m_request.url()));
}
« no previous file with comments | « LayoutTests/fast/parser/xhtml-synchronous-detach-crash-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698