-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fenced frames: Propagate size from winning bid to fenced frame config.
Now with FLEDGE auction able to be run with size specified for ad in interest groups and bids, the winning ad may contain size info. This CL propagates the size from the winning bid to the fenced frame config. With this, fenced frame navigations using configs should render an ad according to the size in the config object. See Turtledove issue: WICG/turtledove#312 See Turtledove PR: WICG/turtledove#417 Bug: 1347953 Change-Id: I436c9a989cd941ef3788fb7abe0c960945fc4abf Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4356285 Reviewed-by: Nasko Oskov <nasko@chromium.org> Commit-Queue: Xiaochen Zhou <xiaochenzh@chromium.org> Cr-Commit-Position: refs/heads/main@{#1126568}
- Loading branch information
1 parent
edcd124
commit 1cd2c91
Showing
13 changed files
with
335 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
third_party/blink/web_tests/wpt_internal/fenced_frame/load-ad-with-size.https.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<!DOCTYPE html> | ||
<title>Fenced frames loading a winning ad from FLEDGE auction with size</title> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script src="resources/utils.js"></script> | ||
<script src="/common/dispatcher/dispatcher.js"></script> | ||
<script src="/common/utils.js"></script> | ||
|
||
<body> | ||
<script> | ||
promise_test(async (t) => { | ||
var frame = await attachFencedFrameContext({ | ||
generator_api: "fledge", | ||
resolve_to_config: true, | ||
ad_with_size: true | ||
}); | ||
|
||
const assert_dimensions = | ||
(expected_width, expected_height) => { | ||
getComputedStyle(document.documentElement).width; // Force layout. | ||
assert_equals(window.innerWidth, expected_width, "width"); | ||
assert_equals(window.innerHeight, expected_height, "height"); | ||
} | ||
await frame.execute(assert_dimensions, [100, 50]); | ||
}, "Fenced frame loading an ad with size."); | ||
</script> | ||
</body> | ||
|
||
</html> |
3 changes: 3 additions & 0 deletions
3
third_party/blink/web_tests/wpt_internal/fenced_frame/load-ad-with-size.https.html.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[load-ad-with-size.https.html] | ||
[Fenced frame loading an ad with size.] | ||
expected: FAIL |
Oops, something went wrong.