| Index: Source/core/svg/SVGDocumentExtensions.cpp
|
| diff --git a/Source/core/svg/SVGDocumentExtensions.cpp b/Source/core/svg/SVGDocumentExtensions.cpp
|
| index a135845e0365d2258e63751551008e07dd6608ee..c52c15b62109c5696642a25d020e7f05eebfd56d 100644
|
| --- a/Source/core/svg/SVGDocumentExtensions.cpp
|
| +++ b/Source/core/svg/SVGDocumentExtensions.cpp
|
| @@ -120,7 +120,10 @@ void SVGDocumentExtensions::dispatchSVGLoadEventToOutermostSVGElements()
|
| SVGSVGElement* outerSVG = (*it).get();
|
| if (!outerSVG->isOutermostSVGSVGElement())
|
| continue;
|
| - outerSVG->sendSVGLoadEventIfPossible();
|
| +
|
| + // don't dispatch the load event document is not wellformed (for XML/standalone svg)
|
| + if (outerSVG->document().wellFormed() || !outerSVG->document().isSVGDocument())
|
| + outerSVG->sendSVGLoadEventIfPossible();
|
| }
|
| }
|
|
|
|
|