Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(510)

Unified Diff: webkit/glue/plugins/plugin_stream.cc

Issue 56206: Don't call NPP_StreamAsFile on the plugin, if the stream is being closed due ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/plugins/plugin_stream.cc
===================================================================
--- webkit/glue/plugins/plugin_stream.cc (revision 13012)
+++ webkit/glue/plugins/plugin_stream.cc (working copy)
@@ -228,7 +228,8 @@
// Also, allow the plugin to access it now.
if (TempFileIsValid()) {
CloseTempFile();
- WriteAsFile();
+ if (reason == NPRES_DONE)
+ WriteAsFile();
}
if (stream_.ndata != NULL) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698