diff options
author | Jocelyn Turcotte <jocelyn.turcotte@digia.com> | 2014-09-17 13:56:10 +0200 |
---|---|---|
committer | Jocelyn Turcotte <jocelyn.turcotte@digia.com> | 2014-09-17 15:27:28 +0200 |
commit | 9f18335913fc8b0fab3e1fcd2aea596bd8d650c9 (patch) | |
tree | 8b4f6fe46c5e10f9dd9bd4f0fb3d027290a20782 /Source/WebCore/plugins/PluginView.h | |
parent | 5ef0ef71b06b0d7949c88db6719fd43907f342fd (diff) | |
download | qtwebkit-9f18335913fc8b0fab3e1fcd2aea596bd8d650c9.tar.gz |
Fix the Adobe Reader plugin loading of local pdf files
The Adobe Reader plugin can take a while to load and we must make sure
that the temporary file handle stays valid until it was able to pick it.
Keep track of resources loaded to temporary files and delete those files
only when destroying the plugin instance.
Task-number: QTBUG-36425
Change-Id: I2c5c2d11dc4710b11e4c4d6a574c5f968f4b2517
Reviewed-by: Michael Bruning <michael.bruning@digia.com>
Diffstat (limited to 'Source/WebCore/plugins/PluginView.h')
-rw-r--r-- | Source/WebCore/plugins/PluginView.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/WebCore/plugins/PluginView.h b/Source/WebCore/plugins/PluginView.h index a81bd0ad4..0fa2436d4 100644 --- a/Source/WebCore/plugins/PluginView.h +++ b/Source/WebCore/plugins/PluginView.h @@ -194,6 +194,7 @@ namespace WebCore { void privateBrowsingStateChanged(bool); void disconnectStream(PluginStream*); + void streamDidSaveTempFile(const String &path) { m_streamTempFilePaths.append(path); } void streamDidFinishLoading(PluginStream* stream) { disconnectStream(stream); } // Widget functions @@ -364,6 +365,7 @@ namespace WebCore { HashSet<RefPtr<PluginStream> > m_streams; Vector<OwnPtr<PluginRequest> > m_requests; + Vector<String> m_streamTempFilePaths; bool m_isWindowed; bool m_isTransparent; |