Skip to content

Commit

Permalink
Bug 1940282 [wpt PR 49954] - Add support for Ad-Auction-Result-Nonce …
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
marco-c committed Jan 16, 2025
1 parent 10647d0 commit 2bc8d11
Show file tree
Hide file tree
Showing 3 changed files with 714 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,17 @@
"
)

if
b
"
hashes
"
in
request
.
GET
:

hash_list
=
request
Expand All @@ -51,7 +62,7 @@
hashes
"
)

response
.
headers
Expand All @@ -66,7 +77,7 @@
-
Result
"

b
"
"
Expand All @@ -76,3 +87,55 @@
hash_list
)
)

if
b
"
nonces
"
in
request
.
GET
:

nonce_list
=
request
.
GET
.
get_list
(
b
"
nonces
"
)

response
.
headers
.
set
(
b
"
Ad
-
Auction
-
Result
-
Nonce
"

b
"
"
.
join
(
nonce_list
)
)
Original file line number Diff line number Diff line change
Expand Up @@ -1961,6 +1961,69 @@ true
;
BA
.
authorizeServerResponseNonces
=
async
function
(
nonces
)
{
let
authorizeURL
=
new
URL
(
'
resources
/
authorize
-
server
-
response
.
py
'
window
.
location
)
;
authorizeURL
.
searchParams
.
append
(
'
nonces
'
nonces
.
join
(
'
'
)
)
;
await
fetch
(
authorizeURL
{
adAuctionHeaders
:
true
}
)
;
}
;
BA
.
configureCoordinator
=
async
Expand Down
Loading

0 comments on commit 2bc8d11

Please sign in to comment.