Index: Source/web/WebPluginContainerImpl.cpp |
diff --git a/Source/web/WebPluginContainerImpl.cpp b/Source/web/WebPluginContainerImpl.cpp |
index 7f52011114eb2ca900bad3b8a0aeaf36112a1397..f9ada22df6e61510479b5c639df71d9d0a608d86 100644 |
--- a/Source/web/WebPluginContainerImpl.cpp |
+++ b/Source/web/WebPluginContainerImpl.cpp |
@@ -972,7 +972,10 @@ |
IntRect clipRect = |
convertToContainingWindow(IntRect(0, 0, width(), height())); |
- if (m_element->document().isActive()) { |
+ // document().renderView() can be 0 when we receive messages from the |
+ // plugins while we are destroying a frame. |
+ // FIXME: Can we just check m_element->document().isActive() ? |
+ if (m_element->renderer()->document().renderView()) { |
// Take our element and get the clip rect from the enclosing layer and |
// frame view. |
clipRect.intersect( |