haikuwebkit/LayoutTests/storage
Sihui Liu e7530c1180 Indexed DB transactions outdated immediately after it just created
https://bugs.webkit.org/show_bug.cgi?id=216769
<rdar://problem/69321075>

Reviewed by Ryosuke Niwa.

Source/WebCore:

Test: storage/indexeddb/transaction-state-active-after-creation.html

Set transaction inactive in microtask checkpoint according to spec:
https://html.spec.whatwg.org/#perform-a-microtask-checkpoint

* Modules/indexeddb/IDBTransaction.cpp:
(WebCore::IDBTransaction::IDBTransaction):
* dom/EventLoop.cpp:
(WebCore::EventLoopTaskGroup::runAtEndOfMicrotaskCheckpoint):
* dom/EventLoop.h:
* dom/Microtasks.cpp:
(WebCore::MicrotaskQueue::performMicrotaskCheckpoint):
(WebCore::MicrotaskQueue::addCheckpointTask):
* dom/Microtasks.h:
* dom/TaskSource.h:

LayoutTests:

* storage/indexeddb/transaction-state-active-after-creation-expected.txt: Added.
* storage/indexeddb/transaction-state-active-after-creation.html: Added.


Canonical link: https://commits.webkit.org/235166@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@274269 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-03-11 08:41:24 +00:00
..
domstorage
indexeddb Indexed DB transactions outdated immediately after it just created 2021-03-11 08:41:24 +00:00
resources
websql
storageinfo-missing-arguments-expected.txt
storageinfo-missing-arguments.html
storageinfo-no-callbacks-expected.txt
storageinfo-no-callbacks.html
storageinfo-query-usage-expected.txt
storageinfo-query-usage.html
storageinfo-request-quota-expected.txt
storageinfo-request-quota.html
storagequota-query-usage-expected.txt
storagequota-query-usage.html
storagequota-request-quota-expected.txt
storagequota-request-quota.html