Skip to content

Commit 2bc8d11

Browse files
committed
Bug 1940282 [wpt PR 49954] - Add support for Ad-Auction-Result-Nonce header for PA B&A, a=testonly
Automatic update from web-platform-tests Add support for Ad-Auction-Result-Nonce header for PA B&A Add support for the alternate authorization flow for Protected Audiences Bidding and Auction response (as described in WICG/turtledove#1233). This feature is behind the FledgeBiddingAndAuctionNonceSupport feature flag which is going to be enabled by default (for a waterfall rollout in M133). Bug: 385128725 Change-Id: Id3c622241c82ed0b71037bfeb1ca5432cd6e66dc Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6109795 Reviewed-by: Maks Orlovich <morlovichchromium.org> Commit-Queue: Russ Hamilton <behamiltongoogle.com> Reviewed-by: Brendon Tiszka <tiszkachromium.org> Cr-Commit-Position: refs/heads/main{#1403077} -- wpt-commits: 48f9ec1e463fbe03e411a77dae446b7c6de4f577 wpt-pr: 49954 UltraBlame original commit: a563508c0d80ba13ea308f1cac33bbf0b1e1eadf
1 parent 10647d0 commit 2bc8d11

File tree

3 files changed

+714
-2
lines changed

3 files changed

+714
-2
lines changed

testing/web-platform/tests/fledge/tentative/resources/authorize-server-response.py

Lines changed: 65 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,17 @@
3838
"
3939
)
4040

41+
if
42+
b
43+
"
44+
hashes
45+
"
46+
in
47+
request
48+
.
49+
GET
50+
:
51+
4152
hash_list
4253
=
4354
request
@@ -51,7 +62,7 @@
5162
hashes
5263
"
5364
)
54-
65+
5566
response
5667
.
5768
headers
@@ -66,7 +77,7 @@
6677
-
6778
Result
6879
"
69-
80+
7081
b
7182
"
7283
"
@@ -76,3 +87,55 @@
7687
hash_list
7788
)
7889
)
90+
91+
if
92+
b
93+
"
94+
nonces
95+
"
96+
in
97+
request
98+
.
99+
GET
100+
:
101+
102+
nonce_list
103+
=
104+
request
105+
.
106+
GET
107+
.
108+
get_list
109+
(
110+
b
111+
"
112+
nonces
113+
"
114+
)
115+
116+
response
117+
.
118+
headers
119+
.
120+
set
121+
(
122+
b
123+
"
124+
Ad
125+
-
126+
Auction
127+
-
128+
Result
129+
-
130+
Nonce
131+
"
132+
133+
b
134+
"
135+
"
136+
.
137+
join
138+
(
139+
nonce_list
140+
)
141+
)

testing/web-platform/tests/fledge/tentative/resources/ba-fledge-util.sub.js

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1961,6 +1961,69 @@ true
19611961
;
19621962
BA
19631963
.
1964+
authorizeServerResponseNonces
1965+
=
1966+
async
1967+
function
1968+
(
1969+
nonces
1970+
)
1971+
{
1972+
let
1973+
authorizeURL
1974+
=
1975+
new
1976+
URL
1977+
(
1978+
'
1979+
resources
1980+
/
1981+
authorize
1982+
-
1983+
server
1984+
-
1985+
response
1986+
.
1987+
py
1988+
'
1989+
window
1990+
.
1991+
location
1992+
)
1993+
;
1994+
authorizeURL
1995+
.
1996+
searchParams
1997+
.
1998+
append
1999+
(
2000+
'
2001+
nonces
2002+
'
2003+
nonces
2004+
.
2005+
join
2006+
(
2007+
'
2008+
'
2009+
)
2010+
)
2011+
;
2012+
await
2013+
fetch
2014+
(
2015+
authorizeURL
2016+
{
2017+
adAuctionHeaders
2018+
:
2019+
true
2020+
}
2021+
)
2022+
;
2023+
}
2024+
;
2025+
BA
2026+
.
19642027
configureCoordinator
19652028
=
19662029
async

0 commit comments

Comments
 (0)