[Webkit-unassigned] [Bug 192042] New: [Win] listDirectory in FileSystemWin.cpp should not skip all directories
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Nov 27 15:08:07 PST 2018
https://bugs.webkit.org/show_bug.cgi?id=192042
Bug ID: 192042
Summary: [Win] listDirectory in FileSystemWin.cpp should not
skip all directories
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Platform
Assignee: webkit-unassigned at lists.webkit.org
Reporter: chris.reid at sony.com
ASSERT(diskUsage >= databaseFileSize); is failing in SQLiteIDBBackingStore.cpp with mozilla's indexdb demo https://mdn.mozillademos.org/en-US/docs/Web/API/IndexedDB_API/Using_IndexedDB$samples/Full_IndexedDB_example?revision=1436833
SQLiteIDBBackingStore.cpp:
> uint64_t diskUsage = 0;
> for (auto& directory : FileSystem::listDirectory(m_absoluteDatabaseDirectory, "*")) {
> for (auto& file : FileSystem::listDirectory(directory, "*.sqlite3"_s))
> diskUsage += SQLiteFileSystem::getDatabaseFileSize(file);
> }
> ASSERT(diskUsage >= databaseFileSize);
FileSystem::listDirectory(m_absoluteDatabaseDirectory, "*") doesn't return anything because windows' listDirectory implementation never returns any child directories.
So diskUsage is always 0 for this case.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20181127/a8a30eae/attachment.html>
More information about the webkit-unassigned
mailing list