Skip to content

Commit

Permalink
turn assert into promise rejection
Browse files Browse the repository at this point in the history
  • Loading branch information
blu25 committed Oct 4, 2024
1 parent 7701d57 commit 2f16a84
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions spec.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1836,11 +1836,9 @@ Several APIs specific to fenced frames are defined on the {{Fence}} interface.

1. If |instance| is null, then [=resolve=] |p| with {{undefined}} and return |p|.

1. [=Assert=]: the [=relevant settings object=]'s [=environment settings object/origin=] and
|instance|'s [=fenced frame config instance/mapped url=]'s [=url/origin=] are [=same origin=].

Note: Only contexts that are [=same origin=] to the [=fenced frame config instance/mapped url=]
described in the [=fenced frame config instance=] are allowed to call this API.
1. If the [=relevant settings object=]'s [=environment settings object/origin=] and
|instance|'s [=fenced frame config instance/mapped url=]'s [=url/origin=] are not [=same
origin=], then [=reject=] |p| with a {{TypeError}}.

1. If [=this=]'s [=relevant global object=]'s [=Window/navigable=]'s [=navigable/traversable
navigable=] is not a [=fenced navigable container/fenced navigable=], then [=resolve=] |p| with
Expand Down

0 comments on commit 2f16a84

Please sign in to comment.