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
Mostly a "find and replace" of "origin" with "storage key" right now.
More detailed integration will is being worked on in #334
Co-authored-by: Joshua Bell <[email protected]>
1. Let |environment| be [=/this=]'s [=/relevant settings object=].
2346
2343
2347
-
1. Let |origin| be |environment|'s [=environment settings object/origin=].
2348
-
2349
-
1. If |origin| is an [=opaque origin=],
2350
-
then return [=/a promise rejected with=] a "{{SecurityError}}" {{DOMException}}.
2344
+
1. Let |storageKey| be the result of running [=obtain a storage key=] given |environment|.
2345
+
If failure is returned, then return [=/a promise rejected with=] a "{{SecurityError}}" {{DOMException}}
2351
2346
2352
2347
1. Let |p| be [=/a new promise=].
2353
2348
2354
2349
1. Run these steps [=in parallel=]:
2355
2350
2356
-
1. Let |databases| be the [=/set=] of [=databases=] in |origin|.
2351
+
1. Let |databases| be the [=/set=] of [=databases=] in |storageKey|.
2357
2352
If this cannot be determined for any reason, then [=/reject=] |p| with
2358
2353
an appropriate error (e.g. an "{{UnknownError}}" {{DOMException}})
2359
2354
and terminate these steps.
@@ -4964,16 +4959,16 @@ The <dfn attribute for=IDBTransaction>onerror</dfn> attribute is an [=/event han
4964
4959
4965
4960
<div algorithm>
4966
4961
4967
-
To <dfn>open a database</dfn> with |origin| which requested the [=database=] to be opened, a database |name|, a database |version|, and a |request|, run these steps:
4962
+
To <dfn>open a database</dfn> with |storageKey| which requested the [=database=] to be opened, a database |name|, a database |version|, and a |request|, run these steps:
4968
4963
4969
-
1. Let |queue| be the [=connection queue=] for |origin| and |name|.
4964
+
1. Let |queue| be the [=connection queue=] for |storageKey| and |name|.
4970
4965
4971
4966
1. Add |request| to |queue|.
4972
4967
4973
4968
1. Wait until all previous requests in |queue| have been processed.
4974
4969
4975
4970
1. Let |db| be the [=database=][=database/named=] |name| in
4976
-
|origin|, or null otherwise.
4971
+
|storageKey|, or null otherwise.
4977
4972
4978
4973
1. If |version| is undefined, let |version| be 1 if |db| is null, or
4979
4974
|db|'s [=database/version=] otherwise.
@@ -5060,7 +5055,7 @@ optional |forced flag|, run these steps:
5060
5055
5061
5056
<aside class=note>
5062
5057
The <a event>`close`</a> event only fires if the connection closes
5063
-
abnormally, e.g. if the origin's storage is cleared, or there is
5058
+
abnormally, e.g. if the [=/storage key=]'s storage is cleared, or there is
5064
5059
corruption or an I/O error. If {{IDBDatabase/close()}} is called explicitly
5065
5060
the event *does not* fire.
5066
5061
</aside>
@@ -5089,18 +5084,18 @@ optional |forced flag|, run these steps:
5089
5084
5090
5085
<div algorithm>
5091
5086
5092
-
To <dfn>delete a database</dfn> with the |origin| that
5087
+
To <dfn>delete a database</dfn> with the |storageKey| that
5093
5088
requested the [=database=] to be deleted, a database |name|, and a
5094
5089
|request|, run these steps:
5095
5090
5096
-
1. Let |queue| be the [=connection queue=] for |origin| and |name|.
5091
+
1. Let |queue| be the [=connection queue=] for |storageKey| and |name|.
5097
5092
5098
5093
1. Add |request| to |queue|.
5099
5094
5100
5095
1. Wait until all previous requests in |queue| have been processed.
5101
5096
5102
5097
1. Let |db| be the [=database=][=database/named=] |name| in
5103
-
|origin|, if one exists. Otherwise, return 0 (zero).
5098
+
|storageKey|, if one exists. Otherwise, return 0 (zero).
5104
5099
5105
5100
1. Let |openConnections| be the [=/set=] of all [=/connections=]
5106
5101
associated with |db|.
@@ -6606,10 +6601,10 @@ of user tracking:
6606
6601
User agents may require the user to authorize access to databases
6607
6602
before a site can use the feature.
6608
6603
6609
-
: Origin-tracking of stored data
6604
+
: Attribution of third-party storage
6610
6605
::
6611
6606
User agents may record the [=/origins=] of sites that contained content
6612
-
from third-party origins that caused data to be stored.
6607
+
from third-party [=/origins=] that caused data to be stored.
6613
6608
6614
6609
If this information is then used to present the view of data
6615
6610
currently in persistent storage, it would allow the user to make
@@ -6717,12 +6712,12 @@ user's wish list; or a hostile site could set a user's session
6717
6712
identifier to a known ID that the hostile site can then use to track
6718
6713
the user's actions on the victim site.
6719
6714
6720
-
Thus, strictly following the <span>origin</span> model described in
6715
+
Thus, strictly following the storage key partitioning model described in
6721
6716
this specification is important for user security.
6722
6717
6723
-
If origins or database names are used to construct paths for
6718
+
If host names or database names are used to construct paths for
6724
6719
persistence to a file system they must be appropriately escaped to
6725
-
prevent an adversary from accessing information from other origins
6720
+
prevent an adversary from accessing information from other [=/storage keys=]
0 commit comments