Skip to content

Commit

Permalink
Bug 1856448 [wpt PR 42224] - Shared Storage: Change from per-origin t…
Browse files Browse the repository at this point in the history
…o per-site budgets, a=testonly

Automatic update from web-platform-tests
Shared Storage: Change from per-origin to per-site budgets

We update to using per-site privacy budgets instead of per-origin
privacy budgets. This will align with enrollment enforcement, which is
per-site.

See also WICG/shared-storage#112 and
WICG/shared-storage#118.

To accomplish this, we migrate the `SharedStorageDatabase` to version
4, where the `budget_mapping` table's `context_origin` column has been
renamed to `context_site`, and any existing data for version 3
databases will have each serialized origin in that column replaced by
the corresponding serialization of the origin's site.

We also update the names and types of other members and parameters as
needed.

Bug: 1218540,1485598
Change-Id: I3d956f5f2cd54a5da76a20e7d63411b3b7fc51ef
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4879582
Reviewed-by: Philip Rogers <pdrchromium.org>
Commit-Queue: Cammie Smith Barnes <cammiechromium.org>
Reviewed-by: Ayu Ishii <ayuichromium.org>
Reviewed-by: Garrett Tanzer <gtanzerchromium.org>
Reviewed-by: Avi Drissman <avichromium.org>
Reviewed-by: danakj <danakjchromium.org>
Reviewed-by: Yao Xiao <yaoxiachromium.org>
Cr-Commit-Position: refs/heads/main{#1204170}

--

wpt-commits: 25ddb07c3be61b730b94a7ff1bc17f5a4c7c1be2
wpt-pr: 42224

UltraBlame original commit: 679462d3a7918390311e4b11a58dcabb09cd72e2
  • Loading branch information
marco-c committed Oct 13, 2023
1 parent 2dc05b0 commit 4f25e94
Showing 1 changed file with 100 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
'
;
function
getOtherOriginURL
getCrossSiteURL
(
url
)
Expand All @@ -180,7 +180,7 @@
(
)
.
AUTHENTICATED_ORIGIN
HTTPS_NOTSAMESITE_ORIGIN
)
)
;
Expand Down Expand Up @@ -257,7 +257,7 @@
/
The
per
origin
site
per
pageload
limit
Expand Down Expand Up @@ -301,33 +301,87 @@
"
)
;
let
url1
=
generateURL
(
"
/
shared
-
storage
-
selecturl
-
limit
/
This
"
+
"
resources
/
run
-
url
will
already
have
a
search
param
of
(
-
selection
-
operation
-
limit
-
inner
.
https
.
html
"
[
ancestorKey
]
)
;
/
/
The
overall
pageload
budget
should
have
3
bits
remaining
as
we
have
set
/
/
it
to
start
at
9
.
url1
.
searchParams
.
append
(
bitsKey
"
"
6
3
"
)
appended
.
let
;
url1
=
getRemoteOriginURL
getCrossSiteURL
(
url0
url1
)
;
attachIFrame
Expand Down Expand Up @@ -402,34 +456,44 @@
pageload
limit
is
12
9
bits
here
it
should
have
already
/
/
already
been
reached
but
we
need
to
verify
this
using
a
third
origin
whose
per
even
though
url2
'
s
site
should
have
3
bits
/
/
origin
remaining
in
the
per
-
site
budget
since
it
is
fresh
same
-
site
with
url1
.
url2
.
Expand All @@ -445,7 +509,7 @@
;
url2
=
getOtherOriginURL
getCrossSiteURL
(
url2
)
Expand Down

0 comments on commit 4f25e94

Please sign in to comment.