Skip to content

Commit

Permalink
Some cleanups came up during another PR's review. (#789)
Browse files Browse the repository at this point in the history
SHA: c277235
Reason: push, by JensenPaul

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
qingxinwu and github-actions[bot] committed Sep 14, 2023
1 parent ea70ae4 commit fb2b475
Showing 1 changed file with 24 additions and 15 deletions.
39 changes: 24 additions & 15 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<link href="https://www.w3.org/StyleSheets/TR/2021/cg-draft" rel="stylesheet">
<meta content="Bikeshed version 82ce88815, updated Thu Sep 7 16:33:55 2023 -0700" name="generator">
<link href="https://wicg.github.io/turtledove/" rel="canonical">
<meta content="98b0b43276048a26f66c054780b75584141bbf92" name="document-revision">
<meta content="c277235aa0ed7bc21c57dce981d0ee7c0f4f1264" name="document-revision">
<style>
/* domintro from https://resources.whatwg.org/standard.css */
.domintro {
Expand Down Expand Up @@ -3324,7 +3324,8 @@ <h3 class="heading settled" data-level="4.1" id="runadauction"><span class="secn
<li data-md>
<p>Let <var>precisionScaledValue</var> be <var>normValue</var> multiplied by 256.</p>
<li data-md>
<p>Let <var>noisyScaledValue</var> be <var>precisionScaledValue</var> plus a random <code class="idl"><a data-link-type="idl" href="https://webidl.spec.whatwg.org/#idl-double" id="ref-for-idl-double⑧">double</a></code> value greater than or equal to 0 but less than 1.</p>
<p>Let <var>noisyScaledValue</var> be <var>precisionScaledValue</var> plus a random <code class="idl"><a data-link-type="idl" href="https://webidl.spec.whatwg.org/#idl-double" id="ref-for-idl-double⑧">double</a></code> value greater than or
equal to 0 but less than 1.</p>
<li data-md>
<p>Let <var>truncatedScaledValue</var> be the largest integer not greater than <var>noisyScaledValue</var>.</p>
<li data-md>
Expand Down Expand Up @@ -3507,7 +3508,8 @@ <h3 class="heading settled" data-level="4.1" id="runadauction"><span class="secn
<li data-md>
<p>If <var>igAd</var>’s <a data-link-type="dfn" href="#interest-group-ad-buyer-reporting-id" id="ref-for-interest-group-ad-buyer-reporting-id②">buyer reporting ID</a> <a data-link-type="dfn" href="https://infra.spec.whatwg.org/#map-exists" id="ref-for-map-exists④⑨">exists</a>, <a data-link-type="dfn" href="https://infra.spec.whatwg.org/#map-set" id="ref-for-map-set②⑨">set</a> <var>reportWinBrowserSignals</var>["<code class="idl"><a data-link-type="idl" href="#dom-reportwinbrowsersignals-buyerreportingid" id="ref-for-dom-reportwinbrowsersignals-buyerreportingid">buyerReportingId</a></code>"] to <var>igAd</var>’s <a data-link-type="dfn" href="#interest-group-ad-buyer-reporting-id" id="ref-for-interest-group-ad-buyer-reporting-id③">buyer reporting ID</a>.</p>
<li data-md>
<p>Otherwise, <a data-link-type="dfn" href="https://infra.spec.whatwg.org/#map-set" id="ref-for-map-set③⓪">Set</a> <var>reportWinBrowserSignals</var>["<code class="idl"><a data-link-type="idl" href="#dom-reportwinbrowsersignals-interestgroupname" id="ref-for-dom-reportwinbrowsersignals-interestgroupname">interestGroupName</a></code>"] to <var>winner</var>’s <a data-link-type="dfn" href="#generated-bid-interest-group" id="ref-for-generated-bid-interest-group①⑥">interest group</a> <a data-link-type="dfn" href="#interest-group-name" id="ref-for-interest-group-name①④">name</a>.</p>
<p>Otherwise, <a data-link-type="dfn" href="https://infra.spec.whatwg.org/#map-set" id="ref-for-map-set③⓪">Set</a> <var>reportWinBrowserSignals</var>["<code class="idl"><a data-link-type="idl" href="#dom-reportwinbrowsersignals-interestgroupname" id="ref-for-dom-reportwinbrowsersignals-interestgroupname">interestGroupName</a></code>"]
to <var>winner</var>’s <a data-link-type="dfn" href="#generated-bid-interest-group" id="ref-for-generated-bid-interest-group①⑥">interest group</a> <a data-link-type="dfn" href="#interest-group-name" id="ref-for-interest-group-name①④">name</a>.</p>
</ol>
<li data-md>
<p>Let <var>buyerReportingScript</var> be the result of <a data-link-type="dfn" href="#fetch-script" id="ref-for-fetch-script③">fetching script</a> with <var>winner</var>’s <a data-link-type="dfn" href="#generated-bid-interest-group" id="ref-for-generated-bid-interest-group①⑦">interest group</a>'s <a data-link-type="dfn" href="#interest-group-bidding-url" id="ref-for-interest-group-bidding-url⑤">bidding url</a>.</p>
Expand Down Expand Up @@ -4233,24 +4235,29 @@ <h4 class="heading settled" data-level="6.3.1" id="bidding-global-scope"><span c
<li data-md>
<p><a data-link-type="dfn" href="https://infra.spec.whatwg.org/#strip-leading-and-trailing-ascii-whitespace" id="ref-for-strip-leading-and-trailing-ascii-whitespace">Strip leading and trailing ASCII whitespace</a> from <var>input</var>.</p>
<li data-md>
<p>If <var>input</var> <a data-link-type="dfn" href="https://infra.spec.whatwg.org/#string-starts-with" id="ref-for-string-starts-with①">starts with</a> "<code>0</code>" but <a data-link-type="dfn" href="https://infra.spec.whatwg.org/#string-is" id="ref-for-string-is">is</a> not "<code>0</code>" and does not <a data-link-type="dfn" href="https://infra.spec.whatwg.org/#string-starts-with" id="ref-for-string-starts-with②">start with</a> "<code>0.</code>", then return null as the dimension and the empty string as the dimension unit.</p>
<p>If <var>input</var> <a data-link-type="dfn" href="https://infra.spec.whatwg.org/#string-starts-with" id="ref-for-string-starts-with①">starts with</a> "<code>0</code>" but <a data-link-type="dfn" href="https://infra.spec.whatwg.org/#string-is" id="ref-for-string-is">is</a> not "<code>0</code>" and does not <a data-link-type="dfn" href="https://infra.spec.whatwg.org/#string-starts-with" id="ref-for-string-starts-with②">start with</a> "<code>0.</code>", then return null as the dimension and the empty string as the
dimension unit.</p>
<li data-md>
<p><a data-link-type="dfn" href="https://infra.spec.whatwg.org/#collect-a-sequence-of-code-points" id="ref-for-collect-a-sequence-of-code-points">Collect a sequence of code points</a> that are <a data-link-type="dfn" href="https://infra.spec.whatwg.org/#ascii-digit" id="ref-for-ascii-digit">ASCII digits</a> or U+002E (.), given <var>position</var>. Let that be <var>dimensionString</var>.</p>
<p><a data-link-type="dfn" href="https://infra.spec.whatwg.org/#collect-a-sequence-of-code-points" id="ref-for-collect-a-sequence-of-code-points">Collect a sequence of code points</a> that are <a data-link-type="dfn" href="https://infra.spec.whatwg.org/#ascii-digit" id="ref-for-ascii-digit">ASCII digits</a> or U+002E (.), given <var>position</var>.
Let that be <var>dimensionString</var>.</p>
<li data-md>
<p>If <var>dimensionString</var> is the empty string, then return null as the dimension and the empty string as the dimension unit.</p>
<p>If <var>dimensionString</var> is the empty string, then return null as the dimension and the empty
string as the dimension unit.</p>
<li data-md>
<p>Let <var>dimension</var> be the result of parsing <var>dimensionString</var> using the <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#rules-for-parsing-floating-point-number-values" id="ref-for-rules-for-parsing-floating-point-number-values">rules for parsing floating-point number values</a>.</p>
<li data-md>
<p>If <var>dimension</var> is an error, then return null as the dimension and the empty string as the dimension unit.</p>
<li data-md>
<p><a data-link-type="dfn" href="https://infra.spec.whatwg.org/#collect-a-sequence-of-code-points" id="ref-for-collect-a-sequence-of-code-points①">Collect a sequence of code points</a> that are <a data-link-type="dfn" href="https://infra.spec.whatwg.org/#ascii-lower-alpha" id="ref-for-ascii-lower-alpha">ASCII lower alpha</a>, given <var>position</var>. Let that be <var>dimensionUnit</var>.</p>
<p><a data-link-type="dfn" href="https://infra.spec.whatwg.org/#collect-a-sequence-of-code-points" id="ref-for-collect-a-sequence-of-code-points①">Collect a sequence of code points</a> that are <a data-link-type="dfn" href="https://infra.spec.whatwg.org/#ascii-lower-alpha" id="ref-for-ascii-lower-alpha">ASCII lower alpha</a>, given <var>position</var>. Let
that be <var>dimensionUnit</var>.</p>
<li data-md>
<p>If <var>position</var> is not past the end of <var>input</var>, then return null as the dimension and the empty string as the dimension unit.</p>
<p>If <var>position</var> is not past the end of <var>input</var>, then return null as the dimension and the empty
string as the dimension unit.</p>
<li data-md>
<p>If <var>dimensionUnit</var> <a data-link-type="dfn" href="https://infra.spec.whatwg.org/#string-is" id="ref-for-string-is①">is</a> the empty string, then set <var>dimensionUnit</var> to "px".</p>
<li data-md>
<p>If <var>dimensionUnit</var> <a data-link-type="dfn" href="https://infra.spec.whatwg.org/#string-is" id="ref-for-string-is②">is</a> not "px", "sh", or "sw", then return null as the dimension and the empty string as the
dimension unit.</p>
<p>If <var>dimensionUnit</var> <a data-link-type="dfn" href="https://infra.spec.whatwg.org/#string-is" id="ref-for-string-is②">is</a> not "px", "sh", or "sw", then return null as the dimension and
the empty string as the dimension unit.</p>
<li data-md>
<p>Return <var>dimension</var> as the dimension and <var>dimensionUnit</var> as the dimension unit.</p>
</ol>
Expand Down Expand Up @@ -4846,7 +4853,9 @@ <h2 class="heading settled" data-level="9" id="structures"><span class="secno">9
<dd>True if the interest group owner was the only bidder that made bids with the second highest
score
<dt><code class="idl"><a data-link-type="idl" href="#dom-reportwinbrowsersignals-buyerreportingid" id="ref-for-dom-reportwinbrowsersignals-buyerreportingid①">buyerReportingId</a></code>
<dd>Set if the winning ad had a <a data-link-type="dfn" href="#interest-group-ad-buyer-reporting-id" id="ref-for-interest-group-ad-buyer-reporting-id⑦">buyer reporting ID</a> but not a <a data-link-type="dfn" href="#interest-group-ad-buyer-and-seller-reporting-id" id="ref-for-interest-group-ad-buyer-and-seller-reporting-id⑨">buyer and seller reporting ID</a> set in its listing in the interest group, and that value was <a data-link-type="dfn" href="#query-reporting-id-k-anonymity-count" id="ref-for-query-reporting-id-k-anonymity-count④">jointly k-anonymous</a> combined with interest group owner, bidding script URL, and ad creative URL.
<dd>Set if the winning ad had a <a data-link-type="dfn" href="#interest-group-ad-buyer-reporting-id" id="ref-for-interest-group-ad-buyer-reporting-id⑦">buyer reporting ID</a> but not a <a data-link-type="dfn" href="#interest-group-ad-buyer-and-seller-reporting-id" id="ref-for-interest-group-ad-buyer-and-seller-reporting-id⑨">buyer and seller reporting ID</a> set in its listing in the interest group,
and that value was <a data-link-type="dfn" href="#query-reporting-id-k-anonymity-count" id="ref-for-query-reporting-id-k-anonymity-count④">jointly k-anonymous</a> combined with
interest group owner, bidding script URL, and ad creative URL.
<dt><code class="idl"><a data-link-type="idl" href="#dom-reportwinbrowsersignals-interestgroupname" id="ref-for-dom-reportwinbrowsersignals-interestgroupname①">interestGroupName</a></code>
<dd>
Only set if the tuple of interest group owner, name, bidding script URL and ad creative URL
Expand Down Expand Up @@ -5038,11 +5047,11 @@ <h3 class="heading settled dfn-paneled" data-dfn-type="dfn" data-level="9.4" dat
Owners of interest groups allowed to participate in the auction. Each <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/browsers.html#concept-origin" id="ref-for-concept-origin②③">origin’s</a> <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/browsers.html#concept-origin-scheme" id="ref-for-concept-origin-scheme④">scheme</a> must be "<code>https</code>".</p>
<dt data-md><dfn class="dfn-paneled" data-dfn-for="auction config" data-dfn-type="dfn" data-noexport id="auction-config-auction-signals">auction signals</dfn>
<dd data-md>
<p>Null or a <a data-link-type="dfn" href="https://infra.spec.whatwg.org/#string" id="ref-for-string④①">string</a> or a <code class="idl"><a data-link-type="idl" href="https://webidl.spec.whatwg.org/#idl-promise" id="ref-for-idl-promise①⓪">Promise</a></code> or failure.
<p>Null, a <a data-link-type="dfn" href="https://infra.spec.whatwg.org/#string" id="ref-for-string④①">string</a>, a <code class="idl"><a data-link-type="idl" href="https://webidl.spec.whatwg.org/#idl-promise" id="ref-for-idl-promise①⓪">Promise</a></code>, or failure.
Opaque JSON data passed to both sellers' and buyers' <a data-link-type="dfn" href="#script-runner" id="ref-for-script-runner①">script runners</a>.</p>
<dt data-md><dfn class="dfn-paneled" data-dfn-for="auction config" data-dfn-type="dfn" data-noexport id="auction-config-seller-signals">seller signals</dfn>
<dd data-md>
<p>Null or a <a data-link-type="dfn" href="https://infra.spec.whatwg.org/#string" id="ref-for-string④②">string</a> or a <code class="idl"><a data-link-type="idl" href="https://webidl.spec.whatwg.org/#idl-promise" id="ref-for-idl-promise①①">Promise</a></code> or failure.
<p>Null, a <a data-link-type="dfn" href="https://infra.spec.whatwg.org/#string" id="ref-for-string④②">string</a>, a <code class="idl"><a data-link-type="idl" href="https://webidl.spec.whatwg.org/#idl-promise" id="ref-for-idl-promise①①">Promise</a></code>, or failure.
Opaque JSON data passed to the seller’s <a data-link-type="dfn" href="#script-runner" id="ref-for-script-runner②">script runner</a>.</p>
<dt data-md><dfn class="dfn-paneled" data-dfn-for="auction config" data-dfn-type="dfn" data-noexport id="auction-config-seller-timeout">seller timeout</dfn>
<dd data-md>
Expand All @@ -5051,12 +5060,12 @@ <h3 class="heading settled dfn-paneled" data-dfn-type="dfn" data-level="9.4" dat
the timeout, the bid being scored is not considered further.</p>
<dt data-md><dfn class="dfn-paneled" data-dfn-for="auction config" data-dfn-type="dfn" data-noexport id="auction-config-per-buyer-signals">per buyer signals</dfn>
<dd data-md>
<p>Null or a <code class="idl"><a data-link-type="idl" href="https://webidl.spec.whatwg.org/#idl-promise" id="ref-for-idl-promise①②">Promise</a></code> or failure or an <a data-link-type="dfn" href="https://infra.spec.whatwg.org/#ordered-map" id="ref-for-ordered-map③⓪">ordered map</a> whose <a data-link-type="dfn" href="https://infra.spec.whatwg.org/#map-getting-the-keys" id="ref-for-map-getting-the-keys①③">keys</a> are <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/browsers.html#concept-origin" id="ref-for-concept-origin②④">origins</a> and
<p>Null, a <code class="idl"><a data-link-type="idl" href="https://webidl.spec.whatwg.org/#idl-promise" id="ref-for-idl-promise①②">Promise</a></code>, failure, or an <a data-link-type="dfn" href="https://infra.spec.whatwg.org/#ordered-map" id="ref-for-ordered-map③⓪">ordered map</a> whose <a data-link-type="dfn" href="https://infra.spec.whatwg.org/#map-getting-the-keys" id="ref-for-map-getting-the-keys①③">keys</a> are <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/browsers.html#concept-origin" id="ref-for-concept-origin②④">origins</a> and
whose <a data-link-type="dfn" href="https://infra.spec.whatwg.org/#map-getting-the-values" id="ref-for-map-getting-the-values①④">values</a> are <a data-link-type="dfn" href="https://infra.spec.whatwg.org/#string" id="ref-for-string④③">strings</a>. <a data-link-type="dfn" href="https://infra.spec.whatwg.org/#map-getting-the-keys" id="ref-for-map-getting-the-keys①④">Keys</a> are buyers and must be valid HTTPS origins. <a data-link-type="dfn" href="https://infra.spec.whatwg.org/#map-getting-the-values" id="ref-for-map-getting-the-values①⑤">Values</a> are opaque JSON data
passed to corresponding buyer’s <a data-link-type="dfn" href="#script-runner" id="ref-for-script-runner③">script runner</a>.</p>
<dt data-md><dfn class="dfn-paneled" data-dfn-for="auction config" data-dfn-type="dfn" data-noexport id="auction-config-per-buyer-timeouts">per buyer timeouts</dfn>
<dd data-md>
<p>Null or a <code class="idl"><a data-link-type="idl" href="https://webidl.spec.whatwg.org/#idl-promise" id="ref-for-idl-promise①③">Promise</a></code> or failure or an <a data-link-type="dfn" href="https://infra.spec.whatwg.org/#ordered-map" id="ref-for-ordered-map③①">ordered map</a> whose <a data-link-type="dfn" href="https://infra.spec.whatwg.org/#map-getting-the-keys" id="ref-for-map-getting-the-keys①⑤">keys</a> are <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/browsers.html#concept-origin" id="ref-for-concept-origin②⑤">origins</a> and
<p>Null, a <code class="idl"><a data-link-type="idl" href="https://webidl.spec.whatwg.org/#idl-promise" id="ref-for-idl-promise①③">Promise</a></code>, failure, or an <a data-link-type="dfn" href="https://infra.spec.whatwg.org/#ordered-map" id="ref-for-ordered-map③①">ordered map</a> whose <a data-link-type="dfn" href="https://infra.spec.whatwg.org/#map-getting-the-keys" id="ref-for-map-getting-the-keys①⑤">keys</a> are <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/browsers.html#concept-origin" id="ref-for-concept-origin②⑤">origins</a> and
whose <a data-link-type="dfn" href="https://infra.spec.whatwg.org/#map-getting-the-values" id="ref-for-map-getting-the-values①⑥">values</a> are <a data-link-type="dfn" href="https://w3c.github.io/hr-time/#dfn-duration" id="ref-for-dfn-duration⑤">durations</a> in milliseconds. <a data-link-type="dfn" href="https://infra.spec.whatwg.org/#map-getting-the-keys" id="ref-for-map-getting-the-keys①⑥">Keys</a> are buyers and must be valid HTTPS origins. <a data-link-type="dfn" href="https://infra.spec.whatwg.org/#map-getting-the-values" id="ref-for-map-getting-the-values①⑦">Values</a> restrict the runtime of
corresponding buyer’s <code>generateBid()</code> script. If the timeout expires, only the bid submitted
via <code>setBid()</code> is considered.</p>
Expand Down

0 comments on commit fb2b475

Please sign in to comment.