Commit d579c6ae authored by andersca's avatar andersca

2006-10-04 Anders Carlsson <acarlsson@apple.com>

        Reviewed by John Sullivan.

        <rdar://problem/4654328>
        Safari Crashes in WebCore::PluginTokenizer::writeRawData If I Try to Open a SWF File With Plug-ins Turned Off
        
        * loader/PluginDocument.cpp:
        (WebCore::PluginTokenizer::writeRawData):
        Only send the data to the plug-in if plug-ins are enabled, otherwise just silently eat it.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16779 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 6e1f6e81
2006-10-04 Anders Carlsson <acarlsson@apple.com>
Reviewed by John Sullivan.
<rdar://problem/4654328>
Safari Crashes in WebCore::PluginTokenizer::writeRawData If I Try to Open a SWF File With Plug-ins Turned Off
* loader/PluginDocument.cpp:
(WebCore::PluginTokenizer::writeRawData):
Only send the data to the plug-in if plug-ins are enabled, otherwise just silently eat it.
2006-10-03 Alexey Proskuryakov <ap@nypop.com>
Reviewed by Tim H.
......@@ -92,8 +92,13 @@ bool PluginTokenizer::writeRawData(const char* data, int len)
{
if (!m_embedElement) {
createDocumentStructure();
m_doc->frame()->redirectDataToPlugin(static_cast<RenderWidget*>(m_embedElement->renderer())->widget());
finish();
if (m_doc->frame()->pluginsEnabled()) {
m_doc->frame()->redirectDataToPlugin(static_cast<RenderWidget*>(m_embedElement->renderer())->widget());
finish();
}
return false;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment