You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add missing parallel step and define queue a database task (#456)
* add and use `queue a database task` concept
* Queue a database task for resolving promise in databases()
* Update revision history
* Add missing issue reference
1. Set |info|'s {{IDBDatabaseInfo/version}} dictionary member to |db|'s [=database/version=].
2346
2352
1. [=list/Append=] |info| to |result|.
2347
2353
2348
-
1. [=/Resolve=] |p| with |result|.
2354
+
1. [=Queue a database task=] to [=/resolve=] |p| with |result|.
2349
2355
2350
2356
1. Return |p|.
2351
2357
@@ -3459,7 +3465,7 @@ which violates these constraints, this must not cause the
3459
3465
implementation of {{IDBObjectStore/createIndex()}} to throw an
3460
3466
exception or affect what it returns. The implementation must still
3461
3467
create and return an {{IDBIndex}} object, and the implementation must
3462
-
[=queue a task=] to abort the [=/upgrade transaction=] which was
3468
+
[=queue a database task=] to abort the [=/upgrade transaction=] which was
3463
3469
used for the {{IDBObjectStore/createIndex()}} call.
3464
3470
3465
3471
This method synchronously modifies the {{IDBObjectStore/indexNames}}
@@ -4930,7 +4936,7 @@ To <dfn>open a database connection</dfn> with |storageKey| which requested the [
4930
4936
except |connection|, associated with |db|.
4931
4937
4932
4938
1. [=set/For each=] |entry| of |openConnections| that does not have its
4933
-
[=connection/close pending flag=] set to true, [=queue a task=] to [=fire a
4939
+
[=connection/close pending flag=] set to true, [=queue a database task=] to [=fire a
4934
4940
version change event=] named {{IDBDatabase/versionchange!!event}} at
4935
4941
|entry| with |db|'s [=database/version=] and |version|.
4936
4942
@@ -4943,7 +4949,7 @@ To <dfn>open a database connection</dfn> with |storageKey| which requested the [
4943
4949
1. Wait for all of the events to be fired.
4944
4950
4945
4951
1. If any of the [=/connections=] in |openConnections| are still
4946
-
not closed, [=queue a task=] to [=fire a version change
4952
+
not closed, [=queue a database task=] to [=fire a version change
4947
4953
event=] named {{IDBOpenDBRequest/blocked!!event}} at |request| with
4948
4954
|db|'s [=database/version=] and |version|.
4949
4955
@@ -5034,7 +5040,7 @@ requested the [=/database=] to be deleted, a database |name|, and a
5034
5040
associated with |db|.
5035
5041
5036
5042
1. [=set/For each=] |entry| of |openConnections| that does not have its
5037
-
[=connection/close pending flag=] set to true, [=queue a task=] to [=fire a version
5043
+
[=connection/close pending flag=] set to true, [=queue a database task=] to [=fire a version
5038
5044
change event=] named {{IDBDatabase/versionchange!!event}} at |entry| with
5039
5045
|db|'s [=database/version=] and null.
5040
5046
@@ -5047,7 +5053,7 @@ requested the [=/database=] to be deleted, a database |name|, and a
5047
5053
1. Wait for all of the events to be fired.
5048
5054
5049
5055
1. If any of the [=/connections=] in |openConnections| are still not
5050
-
closed, [=queue a task=] to [=fire a version change event=] named
5056
+
closed, [=queue a database task=] to [=fire a version change event=] named
5051
5057
{{IDBOpenDBRequest/blocked!!event}} at |request| with |db|'s
5052
5058
[=database/version=] and null.
5053
5059
@@ -5090,7 +5096,7 @@ To <dfn>commit a transaction</dfn> with the |transaction| to commit, run these s
5090
5096
appropriate type for the error, for example "{{QuotaExceededError}}" or
5091
5097
"{{UnknownError}}" {{DOMException}}, and terminate these steps.
5092
5098
5093
-
1. [=Queue a task=] to run these steps:
5099
+
1. [=Queue a database task=] to run these steps:
5094
5100
5095
5101
1. If |transaction| is an [=/upgrade transaction=], then set |transaction|'s
5096
5102
[=transaction/connection=]'s associated [=/database=]'s [=database/upgrade transaction=] to null.
@@ -5144,7 +5150,7 @@ To <dfn>abort a transaction</dfn> with the |transaction| to abort, and |error|,
5144
5150
1. [=list/For each=] |request| of |transaction|'s [=transaction/request list=],
5145
5151
abort the steps to [=asynchronously execute a request=] for |request|,
5146
5152
set |request|'s [=request/processed flag=] to true,
5147
-
and [=queue a task=] to run these steps:
5153
+
and [=queue a database task=] to run these steps:
5148
5154
5149
5155
1. Set |request|'s [=request/done flag=] to true.
5150
5156
1. Set |request|'s [=request/result=] to undefined.
@@ -5160,7 +5166,7 @@ To <dfn>abort a transaction</dfn> with the |transaction| to abort, and |error|,
5160
5166
error while [=transaction/committing=] the transaction,
5161
5167
or if it was the last remaining request that failed.
5162
5168
5163
-
1. [=Queue a task=] to run these steps:
5169
+
1. [=Queue a database task=] to run these steps:
5164
5170
5165
5171
1. If |transaction| is an [=/upgrade transaction=], then set |transaction|'s
5166
5172
[=transaction/connection=]'s associated [=/database=]'s [=database/upgrade transaction=] to null.
@@ -5220,7 +5226,7 @@ created [=/request=] belongs to is [=transaction/aborted=] using the steps to
5220
5226
5221
5227
1. Set |request|'s [=request/processed flag=] to true.
5222
5228
5223
-
1. [=Queue a task=] to run these steps:
5229
+
1. [=Queue a database task=] to run these steps:
5224
5230
5225
5231
1. Remove |request| from |transaction|'s [=transaction/request list=].
5226
5232
@@ -5277,7 +5283,7 @@ To <dfn>upgrade a database</dfn> with |connection| (a [=/connection=]), a new |v
5277
5283
5278
5284
1. Set |request|'s [=request/processed flag=] to true.
5279
5285
5280
-
1. [=Queue a task=] to run these steps:
5286
+
1. [=Queue a database task=] to run these steps:
5281
5287
5282
5288
1. Set |request|'s [=request/result=] to |connection|.
5283
5289
1. Set |request|'s [=request/transaction=] to |transaction|.
@@ -6714,12 +6720,14 @@ For the revision history of the second edition, see [that document's Revision Hi
6714
6720
* Added a definition for [=transaction/live=] transactions, and renamed "run an upgrade transaction" to [=/upgrade a database=], to disambiguate "running". (<#408>)
6715
6721
* Specified the {{DOMException}} type for failures when reading a value from the underlying storage in [[#object-store-retrieval-operation]]. (<#423>)
6716
6722
* Updated [=convert a value to a key=] to return invalid for detached array buffers. (<#417>)
6717
-
* Updated {{IDBFactory/open()}} to set its request's [=request/processed flag=] to true.
6723
+
* Updated {{IDBFactory/open()}} to set its request's [=request/processed flag=] to true. (<#434>)
6718
6724
* Don't include databases that aren't done being created in {{IDBFactory/databases()}}. (<#442>)
6719
6725
* Clarify that only [=transaction/inactive=][=/transactions=] should attempt to auto-commit. (<#436>)
6720
6726
* Correct [=/upgrade a database=] steps to handle aborted transactions. (<#436>)
6721
6727
* Update [=/iterate a cursor=] value serialization to use [=/value=] for [=/object stores=] instead of [=index/referenced values=]. (<#452>)
6722
6728
* Add [=cursor/source handle=] to [=/cursor=] to avoid exposing internal indexes and object stores to script. (<#445>)
6729
+
* Define [=Queue a database task=] and replace [=Queue a task=] with it (<#421>)
6730
+
* Add missing parallel step to {{IDBFactory/databases()|databases}}() (<#421>)
0 commit comments