mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Bug 718752 - Only apply read only checks in save mode for Vista+ file pickers. r=bbondy
This commit is contained in:
parent
a9f6927413
commit
b135a3ae43
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user