mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-02 04:27:12 +02:00
LibWeb: Don't count unversioned databases in IDBFactory::databases()
This code was treating the parameter to the JS::Array as if it was a capacity, but that causes JS to see more databases than are actually accessible if a database was being created in an aborted transaction.
This commit is contained in:
committed by
Gregory Bertilson
parent
547d4eb1f5
commit
ef845fe22a
Notes:
github-actions[bot]
2026-03-21 05:00:57 +00:00
Author: https://github.com/Zaggy1024 Commit: https://github.com/LadybirdBrowser/ladybird/commit/ef845fe22aa Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/8295
@@ -0,0 +1,15 @@
|
||||
<!doctype html>
|
||||
<meta charset=utf-8>
|
||||
<title>IndexedDB</title>
|
||||
<script>
|
||||
self.GLOBAL = {
|
||||
isWindow: function() { return true; },
|
||||
isWorker: function() { return false; },
|
||||
isShadowRealm: function() { return false; },
|
||||
};
|
||||
</script>
|
||||
<script src="../resources/testharness.js"></script>
|
||||
<script src="../resources/testharnessreport.js"></script>
|
||||
<script src="resources/support.js"></script>
|
||||
<div id=log></div>
|
||||
<script src="../IndexedDB/abort-in-initial-upgradeneeded.any.js"></script>
|
||||
Reference in New Issue
Block a user