diff options
author | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-02 21:55:46 +0000 |
---|---|---|
committer | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-02 21:55:46 +0000 |
commit | ed92ad5574e373640f54e67856c3610a4b055ebb (patch) | |
tree | a65f1032f09197ba5c3a5655b7fa3d5e3916fa20 /base/non_thread_safe.cc | |
parent | b38feea4e79a698281b4de90a0e18f097c98bffb (diff) | |
download | chromium_src-ed92ad5574e373640f54e67856c3610a4b055ebb.zip chromium_src-ed92ad5574e373640f54e67856c3610a4b055ebb.tar.gz chromium_src-ed92ad5574e373640f54e67856c3610a4b055ebb.tar.bz2 |
Allow PDF files to open in Acrobat Reader.
This fixes http://code.google.com/p/chromium/issues/detail?id=3977, which is an issue with Acrobat Reader internet preferences being set to always open PDF files in Reader. This operation when performed in chrome and Safari
brings up an error message from the Acrobat Reader plugin that the file could not be found.
The plugin in this case returns NP_ASFILE as the plugin mode from NPP_NewStream. The data is written accordingly to the temp file created. When we finish receiving the data we pass the file name in NPP_StreamAsFile to the plugin. The plugin does not open the file immediately as per our expectation. It opens the file after the stream has been destroyed which ends up deleting the temp file created above.
Debugged Firefox and found that it never deletes these temp files and leaves them around in the cache.
We can go one step forward and track all these files on a per instance basis. These are deleted when the plugin instance is destroyed.
Bug=3977
R=jam
Review URL: http://codereview.chromium.org/12875
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6245 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/non_thread_safe.cc')
0 files changed, 0 insertions, 0 deletions