Skip to content

Commit

Permalink
remove user context / browsing context ID for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Thiago Perrotta committed Nov 14, 2023
1 parent 22c53fa commit 49bec97
Showing 1 changed file with 3 additions and 19 deletions.
22 changes: 3 additions & 19 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1382,7 +1382,6 @@ <h6 id="extension-module-command-permissions-setPermission">
permissions.SetPermissionParameters = {
descriptor: permissions.PermissionDescriptor,
state: permissions.PermissionState,
? context: browsingContext.BrowsingContext,
? origin: text,
}
</pre>
Expand All @@ -1406,30 +1405,15 @@ <h6 id="extension-module-command-permissions-setPermission">
<li>
Let |state| be the value of the <code>state</code> field of |command
parameters|.
</li>
<li>
Let |context id| be the value of the <code>context</code> field of
|command parameters|.
</li>
<li>
If |context id| is not present, let |context| be the [=top-level browsing context=]
of |session|. Otherwise, let |context| be the result of [=trying=] to
[=get a browsing context=] with |context id|.
</li>
<li>
Let |permission name| be the value of the <code>name</code> field of
|descriptor| representing {{PermissionDescriptor/name}}.
</li>
<li>
<!-- TODO: Only convert to an IDL value only once. -->
[=Convert to an IDL value=] (|descriptor|, |state|) of type {{PermissionSetParameters}}.
If this conversion throws an exception, return [=error=] with [=error code=] [=invalid argument=].
</li>
<li>
Let |typedDescriptor| be the object |descriptor| refers to, <a>converted to an IDL
value</a> of |permission name|'s [=powerful
feature/permission descriptor type=]. If this throws an exception,
return [=error=] with [=error code=] [=invalid argument=].
Let |typedDescriptor| be the object |descriptor| refers to, [=converted to an IDL value=] (|descriptor|, |state|) of
{{PermissionSetParameters}} |permission name|'s [=powerful feature/permission descriptor type=].
If this conversion throws an exception, return [=error=] with [=error code=] [=invalid argument=].
</li>
<li>
If |state| is an inappropriate [=permission state=] for any
Expand Down

0 comments on commit 49bec97

Please sign in to comment.