Index: Source/WebCore/html/HTMLObjectElement.cpp |
=================================================================== |
--- Source/WebCore/html/HTMLObjectElement.cpp (revision 95424) |
+++ Source/WebCore/html/HTMLObjectElement.cpp (working copy) |
@@ -327,6 +327,7 @@ |
if (!renderer()) |
return; |
+ RefPtr<HTMLObjectElement> protect(this); // Loading the plugin might remove us from the document. |
SubframeLoader* loader = document()->frame()->loader()->subframeLoader(); |
bool success = beforeLoadAllowedLoad && hasValidClassId() && loader->requestObject(this, url, getAttribute(nameAttr), serviceType, paramNames, paramValues); |