← Back to release summary

Privacy Sandbox: Protected Audience - Fix implementation, explainer and spec for renderSize and requestedSize

Category
Miscellaneous
Type
Chromium catches up
Status
In development (Chrome In development)
Intent stage
None

WPT details: It is tested by third_party/blink/web_tests/external/wpt/fledge/tentative/score-ad-browser-signals.https.window.js.

Summary

This item is about a few issues we have in: 1. The renderSize field of the browserSignals argument to the scoreAd function. 2. The requestedSize field of the browserSignals argument to the generateBid function. The issues are: 1. The explainer states that the scoreAd function has a parameter browserSignals, which contains an optional field renderSize. However, this renderSize field is not implemented. It is also missing from the spec. 2. The requestedSize field has already been implemented but it is missing from the spec. 3. The explainer contains code examples for the renderSize field. However, in the code example, the renderSize field only shows numeric values for its width and height. This is incorrect because it should have the units appended. 4. Similarly, the explainer contains code examples for the requestedSize field. However, in the code example, the requestedSize field only shows numeric values for its width and height. This is incorrect because it should have the units appended. The item fixes all three issues. 1. Implement the renderSize field behind a default disabled flag: "RenderSizeInScoreAdBrowserSignals". Add this field to spec. 2. Add requestedSize to the spec. 3. Update the explainer for renderSize. 4. Update the explainer for requestedSize.

Motivation

1. The explainer states that the scoreAd function has a parameter browserSignals, which contains an optional field renderSize. However, this renderSize field is not implemented. It is also missing from the spec. 2. The explainer contains code example for the renderSize field. However, in the code example, the renderSize field only shows numeric values for its width and height. This is incorrect because it should have the units appended. 3. Similarly, the explainer contains code example for the requestedSize field. However, in the code example, the requestedSize field only shows numeric values for its width and height. This is incorrect because it should have the units appended.

Standards & signals

Ecosystem

Docs: https://github.com/WICG/turtledove/blob/main/FLEDGE https://github.com/WICG/turtledove/blob/main/FLEDGE.md#23-scoring-bids https://github.com/WICG/turtledove/pull/1145 https://github.com/WICG/turtledove/pull/1141

View on chromestatus.com