The plugin stream temporary file is currently deleted in PluginStream::destroyStream(). This is too early for some plugins, since they appear to be trying to read this file after m_pluginFuncs->asfile() has been called. The file will then be deleted, and the plugin will fail to read it. We can instead delete the temporary file in the plugin stream destructor.
Created attachment 277146 [details] Patch
Comment on attachment 277146 [details] Patch It’s normally not a good pattern to do any externally visible work that is based on reference counting. It’s very easy to accidentally change the timing. We have worked hard to not do this kind of work in the destructors in most cases. Is there some other time that’s appropriate other than destruction of the stream object?
Comment on attachment 277146 [details] Patch r-, as this has been pending review for over a year now. It is near-impossible that this patch still applies to trunk and unlikely to still be relevant in its current form.
NPAPI plugins have been removed.