Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(129)

Issue 2948443002: [Merge to M60] Change linux default hidden file save directory to XDG_DATA_HOME (Closed)

Created:
3 years, 6 months ago by Tom Anderson
Modified:
3 years, 6 months ago
Reviewers:
qinmin
CC:
chromium-reviews, jam, David Trainor- moved to gerrit, darin-cc_chromium.org
Target Ref:
refs/branch-heads/3112
Project:
chromium
Visibility:
Public.

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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -0 lines) Patch
M content/browser/download/download_manager_impl.cc View 3 chunks +19 lines, -0 lines 0 comments Download
M content/browser/download/download_manager_impl_unittest.cc View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (8 generated)
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2948443002/1
3 years, 6 months ago (2017-06-16 20:31:51 UTC) #2
commit-bot: I haz the power
Failed to commit the patch.
3 years, 6 months ago (2017-06-16 20:32:43 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2948443002/1
3 years, 6 months ago (2017-06-16 23:34:42 UTC) #9
commit-bot: I haz the power
3 years, 6 months ago (2017-06-16 23:35:57 UTC) #12
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/686705b6198717779f1452d0fda7...

Powered by Google App Engine
This is Rietveld 408576698