Chromium Code Reviews| 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) { |