Deletion of an empty filesystem doesn't work correctly |
|||
Issue descriptionChrome Version: 69.0.3472.3 (dev) OS: Linux To keep track of https://crbug.com/840080#c9 What steps will reproduce the problem? 1. Visit example.com 2. Execute "window.webkitRequestFileSystem(TEMPORARY, 1024, console.log)" in the console 3. Delete cookies for "Last hour" at chrome://settings/clearBrowserData 4. Check chrome://settings/siteData What is the expected result? example.com should not be listed What happens instead? example.com is still listed for file system storage. Deletion for "All time" works correctly. This only seems to happen for "empty" filesystems. If data is written, the deletion is working correctly. The issue can also be reproduced by the test in https://crrev.com/c/1122856 (BrowsingDataRemoverBrowserTestP.EmptyFileSystemDeletion/1)
,
Jul 3
We could also not create an last_accessed entry if there is no row yet. Why would we need to keep track of data that doesn't exist but was accessed?
,
Jul 3
+tzik@chromium.org for my questions about QuotaManager. What do you think about the issue mentioned above?
,
Jul 3
the idea from comment #2 actually doesn't make sense because there is filesystem data that needs to be removed.
,
Jul 5
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/76a1ee1935b9500b3ac1e5ff26066811c467bfe8 commit 76a1ee1935b9500b3ac1e5ff26066811c467bfe8 Author: Christian Dullweber <dullweber@chromium.org> Date: Thu Jul 05 22:14:56 2018 Quota: Fix deletion of empty FileSystem and empty WebSql entries When accessing but not writing to a storage system, an entry is added to OriginInfoTable in QuotaDatabase. This entry doesn't initialize last_modified_date, so it is not removed when deleting data for a time range that is not "All time", which queries for the last time a storage was modified. TBR=jsbell Bug: 859527 Change-Id: I6e8645ea8e69c2fed3e6863d240c530abb2bc0d5 Reviewed-on: https://chromium-review.googlesource.com/1122856 Commit-Queue: Victor Costan <pwnall@chromium.org> Reviewed-by: Victor Costan <pwnall@chromium.org> Cr-Commit-Position: refs/heads/master@{#572862} [modify] https://crrev.com/76a1ee1935b9500b3ac1e5ff26066811c467bfe8/chrome/browser/browsing_data/browsing_data_remover_browsertest.cc [modify] https://crrev.com/76a1ee1935b9500b3ac1e5ff26066811c467bfe8/storage/browser/fileapi/file_system_quota_util.h [modify] https://crrev.com/76a1ee1935b9500b3ac1e5ff26066811c467bfe8/storage/browser/quota/quota_database.cc
,
Jul 6
|
|||
►
Sign in to add a comment |
|||
Comment 1 by dullweber@chromium.org
, Jul 3