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
- Specification: https://github.com/WICG/turtledove/pull/1141
- Firefox: No signal
- Safari: No signal
- Web developers: No signals
- Tracking bug: https://issues.chromium.org/u/1/issues/333628467
Ecosystem
- Web Platform Tests: https://wpt.fyi/results/?q=privacy-sandbox-protected-audience-fix-implementation-explainer-and-spec-for-rendersize-and-requestedsize
- Chrome Platform Showcase: https://chrome-platform-showcase.paulkinlan-ea.deno.net/features
- GenDN reference: https://gendn.paulkinlan-ea.deno.net/features
- chrome.dev demos search: https://www.google.com/search?q=site%3Achrome.dev+Privacy%20Sandbox%3A%20Protected%20Audience%20-%20Fix%20implementation%2C%20explainer%20and%20spec%20for%20renderSize%20and%20requestedSize
- MDN Web Docs: https://developer.mozilla.org/en-US/search?q=Privacy%20Sandbox%3A%20Protected%20Audience%20-%20Fix%20implementation%2C%20explainer%20and%20spec%20for%20renderSize%20and%20requestedSize
- Baseline status: https://webstatus.dev/?q=Privacy%20Sandbox%3A%20Protected%20Audience%20-%20Fix%20implementation%2C%20explainer%20and%20spec%20for%20renderSize%20and%20requestedSize
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