Description[Downloads] Prevent executable files from being opened automatically.
Users can accidentally mark executable or other dangerous file types for
opening automatically upon download. This change prevents such file
types from being considered for auto open.
If the user already has any dangerous file types in the auto-open list,
those entries will be ignored on new browser sessions. Any action that
causes the persisted auto-open list to be updated will, as a
side-effect, premanently remove any dangerous file types that were
there.
Currently the list of file types that are excluded from auto open is
maintained by chrome/browser/download/download_extension.cc.
BUG=461858
TEST=(1) Download an .exe (on Windows) or .swf file.
(2) Verify that the "Always open files of this type" option is
disabled.
Committed: https://crrev.com/39841e54180e2583dffa16fbbb9b99fd293821d0
Cr-Commit-Position: refs/heads/master@{#334677}
Patch Set 1 #
Total comments: 5
Patch Set 2 : Fix comment #Patch Set 3 : std::string::front() is a C++11 feature. Don't use it yet. #Patch Set 4 : Use a blacklist instead of including all dangerous file types. #
Total comments: 24
Patch Set 5 : Fix comment #
Total comments: 5
Patch Set 6 : Add more details about file types and fiddle with no auto open flag. #Patch Set 7 : Update comment. #
Total comments: 8
Patch Set 8 : Clarify comments. #Patch Set 9 : #Patch Set 10 : #
Messages
Total messages: 23 (5 generated)
|