Bug 718752 - Only apply read only checks in save mode for Vista+ file pickers. r=bbondy

This commit is contained in:
Jim Mathies 2012-01-18 07:31:09 -06:00
parent a9f6927413
commit b135a3ae43

View File

@ -893,7 +893,7 @@ nsFilePicker::ShowFilePicker(const nsString& aInitialDir)
FILEOPENDIALOGOPTIONS fos = 0;
fos |= FOS_SHAREAWARE | FOS_OVERWRITEPROMPT |
FOS_NOREADONLYRETURN | FOS_FORCEFILESYSTEM;
FOS_FORCEFILESYSTEM;
// Handle add to recent docs settings
if (IsPrivacyModeEnabled() || !mAddToRecentDocs) {
@ -915,6 +915,7 @@ nsFilePicker::ShowFilePicker(const nsString& aInitialDir)
break;
case modeSave:
fos |= FOS_NOREADONLYRETURN;
// Don't follow shortcuts when saving a shortcut, this can be used
// to trick users (bug 271732)
if (IsDefaultPathLink())