Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
brusshamilton committed Feb 26, 2025
1 parent ea3c895 commit 50053f9
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions spec.bs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ spec: RFC8941; urlPrefix: https://httpwg.org/specs/rfc8941.html
spec: WebAssembly; urlPrefix: https://webassembly.github.io/spec/core/
type: dfn
urlPrefix: appendix/embedding.html
text: error; url: embed-error
text: embed error; url: embed-error
spec: WebAssembly-js-api; urlPrefix: https://webassembly.github.io/spec/js-api/
type: dfn
text: compiling a WebAssembly module; url: #compile-a-webassembly-module
Expand Down Expand Up @@ -110,11 +110,13 @@ spec: CSPEE; urlPrefix: https://w3c.github.io/webappsec-cspee/
spec: webdriver; urlPrefix: https://w3c.github.io/webdriver/
type: dfn
text: getting a property; url: dfn-getting-properties
text: undefined; url: dfn-undefined
</pre>

<pre class=link-defaults>
spec:encoding; type:dfn; text:utf-8
spec:infra; type:dfn; text:user agent
spec:webdriver2; type:dfn; text:remote end steps
</pre>

<style>
Expand Down Expand Up @@ -2659,7 +2661,7 @@ To <dfn>fetch WebAssembly</dfn> given a [=URL=] |url| and an [=environment setti
1. If [=validate fetching response=] with |response|, |responseBody| and "`application/wasm`"
returns false, set |moduleObject| to failure and return.
1. Let |module| be the result of [=compiling a WebAssembly module=] |response|.
1. If |module| is [=error=], set |moduleObject| to failure.
1. If |module| is [=embed error|error=], set |moduleObject| to failure.
1. Otherwise, set |moduleObject| to |module|.
1. Wait for |moduleObject| to be set.
1. Return |moduleObject|.
Expand Down Expand Up @@ -10160,31 +10162,31 @@ The [=k-anonymity overrides=] are checked before and take precedence over the
</figure>

<div algorithm="remote end steps">
The <dfn export for="Protected Audience">remote end steps</dfn> are:
The [=remote end steps=] are:

1. If |parameters| is not a JSON [[ECMASCRIPT#sec-json-object|Object]], return a
[=error|WebDriver error=] with [=error code=] [=invalid argument=].
1. Let |owner| be the result of [=getting a property=] named `"owner"` from
|parameters|.
1. If |owner| is {{undefined}} or is not a [=string=], return a
1. If |owner| is [=undefined=] or is not a [=string=], return a
[=error|WebDriver error=] with [=error code=] [=invalid argument=].
1. Let |owner origin| be the result running [=parse an https origin=] on |owner|.
1. If |owner origin| is failure, return a [=error|WebDriver error=] with
[=error code=] [=invalid argument=].
1. Let |name| be the result of [=getting a property=] named `"name"` from
|parameters|.
1. If |name| is {{undefined}} or is not a [=string=], return a
1. If |name| is [=undefined=] or is not a [=string=], return a
[=error|WebDriver error=] with [=error code=] [=invalid argument=].
1. Let |hashes| be the result of [=getting a property=] named `"hashes"` from
|parameters|.
1. If |hashes| is {{undefined}} or is not a [=list=], return a
1. If |hashes| is [=undefined=] or is not a [=list=], return a
[=error|WebDriver error=] with [=error code=] [=invalid argument=].
1. Let |override| be a [=map=] whose [=map/keys=] are [=SHA-256=] hashes and
whose [=map/values=] are [=k-anonymity records=].
1. [=list/For each=] |hash string| of |hashes|:
1. If |hash string| is not a [=string=], return a
1. [=list/For each=] |hashString| of |hashes|:
1. If |hashString| is not a [=string=], return a
[=error|WebDriver error=] with [=error code=] [=invalid argument=].
1. Let |hash| be the result of running [=forgiving-base64 decode=] with |hash string|.
1. Let |hash| be the result of running [=forgiving-base64 decode=] with |hashString|.
1. If |hash| is failure or |hash|'s [=byte sequence/length=] is not 32, return
a [=error|WebDriver error=] with [=error code=] [=invalid argument=].
1. Let |record| be a new [=k-anonymity record=].
Expand Down

0 comments on commit 50053f9

Please sign in to comment.