Title: [238036] trunk/Source/WebKitLegacy
Revision
238036
Author
[email protected]
Date
2018-11-09 09:27:34 -0800 (Fri, 09 Nov 2018)

Log Message

Remove legacy storage tracker database file after r237330
https://bugs.webkit.org/show_bug.cgi?id=191423

Reviewed by Geoffrey Garen.

r237330 changed the file name of storage tracker database, but it did not remove the old
file before using the new one.

* Storage/StorageTracker.cpp:
(WebKit::StorageTracker::internalInitialize):

Modified Paths

Diff

Modified: trunk/Source/WebKitLegacy/ChangeLog (238035 => 238036)


--- trunk/Source/WebKitLegacy/ChangeLog	2018-11-09 17:24:50 UTC (rev 238035)
+++ trunk/Source/WebKitLegacy/ChangeLog	2018-11-09 17:27:34 UTC (rev 238036)
@@ -1,3 +1,16 @@
+2018-11-09  Sihui Liu  <[email protected]>
+
+        Remove legacy storage tracker database file after r237330
+        https://bugs.webkit.org/show_bug.cgi?id=191423
+
+        Reviewed by Geoffrey Garen.
+
+        r237330 changed the file name of storage tracker database, but it did not remove the old 
+        file before using the new one.
+
+        * Storage/StorageTracker.cpp:
+        (WebKit::StorageTracker::internalInitialize):
+
 2018-11-01  Sihui Liu  <[email protected]>
 
         Add a storage limit for IndexedDB

Modified: trunk/Source/WebKitLegacy/Storage/StorageTracker.cpp (238035 => 238036)


--- trunk/Source/WebKitLegacy/Storage/StorageTracker.cpp	2018-11-09 17:24:50 UTC (rev 238035)
+++ trunk/Source/WebKitLegacy/Storage/StorageTracker.cpp	2018-11-09 17:27:34 UTC (rev 238036)
@@ -79,6 +79,10 @@
     storageTracker->setIsActive(true);
     storageTracker->m_thread->start();  
     storageTracker->importOriginIdentifiers();
+
+    m_thread->dispatch([this] {
+        FileSystem::deleteFile(FileSystem::pathByAppendingComponent(m_storageDirectoryPath, "StorageTracker.db"));
+    });
 }
 
 StorageTracker& StorageTracker::tracker()
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to