Commit 31293443 authored by andersca@apple.com's avatar andersca@apple.com

2008-11-04 Anders Carlsson <andersca@apple.com>

        Reviewed by Kevin Decker.

        https://bugs.webkit.org/show_bug.cgi?id=22065

        Only create the plug-in stream loader when the stream is started. 
        
        * Plugins/WebBaseNetscapePluginStream.mm:
        (WebNetscapePluginStream::WebNetscapePluginStream):
        (WebNetscapePluginStream::start):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38109 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 5b93bc27
2008-11-04 Anders Carlsson <andersca@apple.com>
Reviewed by Kevin Decker.
https://bugs.webkit.org/show_bug.cgi?id=22065
Only create the plug-in stream loader when the stream is started.
* Plugins/WebBaseNetscapePluginStream.mm:
(WebNetscapePluginStream::WebNetscapePluginStream):
(WebNetscapePluginStream::start):
2008-11-04 Anders Carlsson <andersca@apple.com>
Reviewed by Kevin Decker.
......
......@@ -148,9 +148,6 @@ WebNetscapePluginStream::WebNetscapePluginStream(NSURLRequest *request, NPP plug
if (core([view webFrame])->loader()->shouldHideReferrer([request URL], core([view webFrame])->loader()->outgoingReferrer()))
[m_request.get() _web_setHTTPReferrer:nil];
m_loader = NetscapePlugInStreamLoader::create(core([view webFrame]), this);
m_loader->setShouldBufferData(false);
}
WebNetscapePluginStream::~WebNetscapePluginStream()
......@@ -256,6 +253,10 @@ void WebNetscapePluginStream::start()
{
ASSERT(m_request);
ASSERT(!m_frameLoader);
ASSERT(!m_loader);
m_loader = NetscapePlugInStreamLoader::create(core([m_pluginView.get() webFrame]), this);
m_loader->setShouldBufferData(false);
m_loader->documentLoader()->addPlugInStreamLoader(m_loader.get());
m_loader->load(m_request.get());
......
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