Chromium Code Reviews
Description[Merge to M60] Change linux default hidden file save directory to XDG_DATA_HOME
> Versions of GTK3 up to 3.14.7 had a bug that would cause a segfault
> when a GtkFileChooser was open and a hidden file in the directory was
> deleted [1].
>
> Chrome can trigger this bug in the following scenario:
> 1. Open 2 windows
> 2. Open a save dialog in each window
> 3. Close one of the dialogs
>
> Chrome saves a file in two stages: it writes the contents to a hidden
> file, and then renames it to the actual file. This is so the file can
> be downloading as the user is choosing a file to save to.
>
> By default, the hidden file is placed into whichever directory the
> save dialog opens with. In the case of 2 save dialogs open at once,
> if the user saves the file (renames the hidden file) or cancels the
> download (deletes the hidden file), the GTK bug would be triggered.
>
> This CL changes the default directory for the hidden files to
> XDG_DATA_HOME in an effort to make triggering the GTK bug far less
> likely.
>
> [1] https://mail.gnome.org/archives/commits-list/2014-December/msg02447.html
>
> BUG=728501
> R=thestig@chromium.org
> TBR=qinmin@chromium.org
BUG=728501
TBR=qinmin@chromium.org
NOTRY=true
NOPRESUBMIT=true
NOTREECHECKS=true
Review-Url: https://codereview.chromium.org/2948443002
Cr-Commit-Position: refs/branch-heads/3112@{#371}
Cr-Branched-From: b6460e24cf59f429d69de255538d0fc7a425ccf9-refs/heads/master@{#474897}
Committed: https://chromium.googlesource.com/chromium/src/+/686705b6198717779f1452d0fda7d50245eb0d0f
Patch Set 1 #
Messages
Total messages: 12 (8 generated)
|
||||||||||||||||||||||||||||