Index: Source/core/loader/FrameLoader.cpp |
diff --git a/Source/core/loader/FrameLoader.cpp b/Source/core/loader/FrameLoader.cpp |
index 1a1217ff1a3221469ceb47a9d2049305f8c9b1e0..ae68e6ece690a9c599394290cedd296adef86107 100644 |
--- a/Source/core/loader/FrameLoader.cpp |
+++ b/Source/core/loader/FrameLoader.cpp |
@@ -80,6 +80,7 @@ |
#include "core/page/Page.h" |
#include "core/page/WindowFeatures.h" |
#include "core/page/scrolling/ScrollingCoordinator.h" |
+#include "core/svg/graphics/SVGImage.h" |
#include "core/xml/parser/XMLDocumentParser.h" |
#include "platform/Logging.h" |
#include "platform/UserGestureIndicator.h" |
@@ -217,7 +218,7 @@ void FrameLoader::dispatchUnloadEvent() |
{ |
saveScrollState(); |
- if (m_frame->document()) |
+ if (m_frame->document() && !SVGImage::isInSVGImage(m_frame->document())) |
m_frame->document()->dispatchUnloadEvents(); |
if (Page* page = m_frame->page()) |