| Index: Source/WebCore/html/PluginDocument.cpp
|
| ===================================================================
|
| --- Source/WebCore/html/PluginDocument.cpp (revision 88811)
|
| +++ Source/WebCore/html/PluginDocument.cpp (working copy)
|
| @@ -92,7 +92,11 @@
|
|
|
| m_embedElement->setAttribute(nameAttr, "plugin");
|
| m_embedElement->setAttribute(srcAttr, document()->url().string());
|
| - m_embedElement->setAttribute(typeAttr, document()->loader()->writer()->mimeType());
|
| +
|
| + DocumentLoader* loader = document()->loader();
|
| + ASSERT(loader);
|
| + if (loader)
|
| + m_embedElement->setAttribute(typeAttr, loader->writer()->mimeType());
|
|
|
| static_cast<PluginDocument*>(document())->setPluginNode(m_embedElement);
|
|
|
|
|