[wpt-sync] Sync PR 50126 - Move construction/signing of additional bids from wptserve to JS tests.
Categories
(Testing :: web-platform-tests, task, P4)
Tracking
(firefox136 fixed)
Tracking | Status | |
---|---|---|
firefox136 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Attachments
(1 file)
325.50 KB,
text/plain
|
Details |
Sync web-platform-tests PR 50126 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/50126
Details from upstream follow.
Orr Bernstein <orrb@google.com> wrote:
Move construction/signing of additional bids from wptserve to JS tests.
The original implementation of the additional bid web platform tests
relied on signing the additional bids in the wptserve-hosted handler,
additional-bids.py, in the expectation that most of the construction of
the additional bids would take place server-side with minor input from
the JS-based tests on how the additional bids should be transformed for
each test case. As the tests have evolved, it's become clear that most
- and now all - of the construction and transformation of the additional
bids is happening on the JS side of the boundary, leaving the
wptserve-hosted handler with only significant responsibility: taking the
fully-built additional bids and returning them, base64-encoded, in the
appropriately formattedAd-Auction-Additional-Bid
response headers.To achieve the shifting of responsibilities across this boundary, this
change moves the few remaining transformational functions of the
additional-bids.py into the additionalBidHelper in fledge-util.sub.js,
specifically enabling tests that verify the error behavior of
auction/seller/bid nonce mismatches, and replaces the Python-based
Ed25519 library with a JavaScript-based one. This change significantly
reduces the amount of communication needed across the boundary between
the tests and wptserve, enabling other test cases to be written more
easily.Change-Id: I5a1d59731d3724407af04304cb0cb616cb64a957
Reviewed-on: https://chromium-review.googlesource.com/6165883
WPT-Export-Revision: 6b266c5787f8214183188bd10b02ce46f7818d0c
Assignee | ||
Comment 1•1 month ago
|
||
Assignee | ||
Comment 2•1 month ago
|
||
Description
•