Index: Source/core/svg/graphics/SVGImage.cpp |
diff --git a/Source/core/svg/graphics/SVGImage.cpp b/Source/core/svg/graphics/SVGImage.cpp |
index 395f2db1e4c341aa3724ec4a8f3824d2a4620042..bc9a17909b1d2f59afd29c5fd3c815d15dfc03d2 100644 |
--- a/Source/core/svg/graphics/SVGImage.cpp |
+++ b/Source/core/svg/graphics/SVGImage.cpp |
@@ -83,6 +83,9 @@ bool SVGImage::hasSingleSecurityOrigin() const |
return true; |
Frame* frame = m_page->mainFrame(); |
+ |
+ RELEASE_ASSERT(frame->document()->loadEventFinished()); |
+ |
SVGSVGElement* rootElement = toSVGDocument(frame->document())->rootElement(); |
if (!rootElement) |
return true; |