Index: Source/core/fetch/ResourceFetcher.h |
diff --git a/Source/core/fetch/ResourceFetcher.h b/Source/core/fetch/ResourceFetcher.h |
index 98f791aec67dd39f2a190759ab22097c1dad4e5d..e87fd774f1fa5f385705ffbf8588c101ac676a27 100644 |
--- a/Source/core/fetch/ResourceFetcher.h |
+++ b/Source/core/fetch/ResourceFetcher.h |
@@ -103,7 +103,8 @@ public: |
bool shouldDeferImageLoad(const KURL&) const; |
- FetchContext& context() const { return *m_context.get(); } |
+ FetchContext& context() const { return m_context ? *m_context.get() : FetchContext::nullInstance(); } |
+ void clearContext() { m_context.clear(); } |
void garbageCollectDocumentResources(); |