Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editorial: define and improve use of permissions task source #398

Merged
merged 2 commits into from
Dec 9, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 16 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,15 @@ <h3>
</aside>
</section>
</section>
<section>
<h3>
Permissions task source
</h3>
<p>
The <dfn>permissions task source</dfn> is a [=task source=] used to
perform permissions-related [=tasks=] in this specification.
</p>
</section>
</section>
<section>
<h2>
Expand Down Expand Up @@ -827,9 +836,9 @@ <h4 id="query-method">
<li>If the conversion [=exception/throws=] an [=exception=], return <a>a promise
rejected with</a> that exception.
</li>
<li>Let <var>promise</var> be [=a new promise=].
<li>Let |promise:Promise| be [=a new promise=].
</li>
<li>Return <var>promise</var> and continue [=in parallel=]:
<li>Return |promise| and continue [=in parallel=]:
<ol>
<li>Let |status| be <a>create a `PermissionStatus`</a> with |typedDescriptor|.
</li>
Expand All @@ -838,7 +847,8 @@ <h4 id="query-method">
<li>Run |query|'s {{PermissionDescriptor/name}}'s [=powerful feature/permission
query algorithm=], passing |query| and |status|.
</li>
<li>[=Resolve=] <var>promise</var> with |status|.
<li>[=Queue a global task=] on the [=permissions task source=] with [=this=]'s
[=relevant global object=] to [=resolve=] |promise| with |status|.
</li>
</ol>
</li>
Expand Down Expand Up @@ -946,8 +956,8 @@ <h4>
algorithm=], passing |query| and |status|.
</li>
<li>
<a>Queue a task</a> on the <dfn class="export">permissions task source</dfn> to
<a>fire an event</a> named <code>change</code> at |status|.
<a>Queue a task</a> on the [=permissions task source=] to <a>fire an event</a> named
<code>change</code> at |status|.
</li>
</ol>
</section>
Expand Down Expand Up @@ -1092,7 +1102,7 @@ <h3 id="set-permission-command">
<li>For each <a>environment settings object</a> |target| in |targets|:
<ol>
<li>
<a>Queue a task</a> |task| on the <a>permissions task source</a> of |target|'s
<a>Queue a task</a> |task| on the [=permissions task source=] of |target|'s
[=relevant settings object=]'s [=environment settings object/global object=]'s
[=Window/browsing context=] to perform the following step:
<ol>
Expand Down