Changeset 229736 in webkit


Ignore:
Timestamp:
Mar 19, 2018 7:34:25 PM (6 years ago)
Author:
Chris Dumez
Message:

WKWebView.ClearAppCache is a flaky API test failure on High Sierra.
https://bugs.webkit.org/show_bug.cgi?id=181546
<rdar://problem/36444327>

Reviewed by Ryosuke Niwa.

in LocalStorageDatabaseTracker::deleteDatabasesModifiedSince(), add origin
to originIdentifiersToDelete if we cannot determine the last modification
time of the database file. This likely means the database file does not
exist. However, we still needs to make sure the origin gets removed from
the origins database and there may be *.wal / *.shm variants of the database
that are still on disk and need to be deleted.

  • UIProcess/WebStorage/LocalStorageDatabaseTracker.cpp:

(WebKit::LocalStorageDatabaseTracker::deleteDatabasesModifiedSince):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r229735 r229736  
     12018-03-19  Chris Dumez  <cdumez@apple.com>
     2
     3        WKWebView.ClearAppCache is a flaky API test failure on High Sierra.
     4        https://bugs.webkit.org/show_bug.cgi?id=181546
     5        <rdar://problem/36444327>
     6
     7        Reviewed by Ryosuke Niwa.
     8
     9        in LocalStorageDatabaseTracker::deleteDatabasesModifiedSince(), add origin
     10        to originIdentifiersToDelete if we cannot determine the last modification
     11        time of the database file. This likely means the database file does not
     12        exist. However, we still needs to make sure the origin gets removed from
     13        the origins database and there may be *.wal / *.shm variants of the database
     14        that are still on disk and need to be deleted.
     15
     16        * UIProcess/WebStorage/LocalStorageDatabaseTracker.cpp:
     17        (WebKit::LocalStorageDatabaseTracker::deleteDatabasesModifiedSince):
     18
    1192018-03-19  Chris Dumez  <cdumez@apple.com>
    220
  • trunk/Source/WebKit/UIProcess/WebStorage/LocalStorageDatabaseTracker.cpp

    r226349 r229736  
    153153
    154154        auto modificationTime = FileSystem::getFileModificationTime(filePath);
    155         if (!modificationTime)
    156             continue;
    157 
    158         if (modificationTime.value() >= time)
     155        if (!modificationTime || modificationTime.value() >= time)
    159156            originIdentifiersToDelete.append(origin);
    160157    }
Note: See TracChangeset for help on using the changeset viewer.