DescriptionSaving a file with a different but known file extension will allow the selected extension.
The new extension will only be used if the mime-type exists on the system. This addresses the case where a user *does not* change the file type to "All files" but changes the file extension.
BUG=7499
TEST=Right-click on link, choose "Save link as...", leave the file type as the default but change the file name to have a different extension (different mime-type as well).
Patch Set 1 #
Total comments: 1
Patch Set 2 : '' #
Total comments: 2
Patch Set 3 : Fixed the nits but I'm not sure how to wrap them with unit tests. Any ideas? #Patch Set 4 : added unit tests and updated chrome_tests.gypi #
Total comments: 3
Patch Set 5 : function declaration is now in header file and added test #
Messages
Total messages: 18 (0 generated)
|