From ff18be61b09b1d8fc6717113d11075f0894cedaf Mon Sep 17 00:00:00 2001 From: Andrew Paseltiner Date: Wed, 28 May 2025 08:44:41 -0400 Subject: [PATCH] Resolve measureConversion promise with correct type Per its WebIDL definition, it returns a dictionary containing the encrypted report, rather than the report itself. --- api.bs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/api.bs b/api.bs index 321390f..1c0fdd6 100644 --- a/api.bs +++ b/api.bs @@ -1328,8 +1328,11 @@ The measureConversion(|options|) method |topLevelSite|, and |now|. 1. Let |encryptedReport| be the result of encrypting |report|. + 1. Let |result| be a {{PrivateAttributionConversionResult}} with the following items: + : {{PrivateAttributionConversionResult/report}} + :: |encryptedReport| 1. [=Queue a task=] on the [=Private Attribution task source=] to - [=resolve=] |promise| with |encryptedReport|. + [=resolve=] |promise| with |result|. 1. Return |promise|.