Skip to content

Commit

Permalink
use better way of getting document
Browse files Browse the repository at this point in the history
  • Loading branch information
blu25 committed Jan 28, 2025
1 parent acede8a commit f58da31
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions spec.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1759,8 +1759,10 @@ Several APIs specific to fenced frames are defined on the {{Fence}} interface.
<div algorithm>
The <dfn method for=Fence>reportEvent(|event|)</dfn> method steps are:

1. If [=this=]'s {{Document}} is not [=Document/fully active=], then [=exception/throw=] a
{{SecurityError}} {{DOMException}}.
1. Let |document| be [=this=]'s [=relevant global object=]'s [=associated Document=].

1. If |document| is not [=Document/fully active=], then [=exception/throw=] a {{SecurityError}}
{{DOMException}}.

1. Let |instance| be [=this=]'s [=relevant global object=]'s [=Window/browsing context=]'s
[=browsing context/fenced frame config instance=].
Expand All @@ -1771,8 +1773,6 @@ Several APIs specific to fenced frames are defined on the {{Fence}} interface.

1. If |instance|'s [=fenced frame config instance/fenced frame reporter=] is null, then return.

1. Let |document| be [=this=]'s [=relevant global object=]'s [=associated Document=].

1. Let |request initiator| be [=this=]'s [=relevant settings object=]'s [=environment settings
object/origin=].

Expand Down Expand Up @@ -1871,8 +1871,8 @@ Several APIs specific to fenced frames are defined on the {{Fence}} interface.
The <dfn method for=Fence>setReportEventDataForAutomaticBeacons(|event|)</dfn>
method steps are:

1. If [=this=]'s {{Document}} is not [=Document/fully active=], then [=exception/throw=] a
{{SecurityError}} {{DOMException}}.
1. If [=this=]'s [=relevant global object=]'s [=associated Document=] is not [=Document/fully
active=], then [=exception/throw=] a {{SecurityError}} {{DOMException}}.

1. If |event| does not have a {{FenceEvent/destination}} or |event| does not have a
{{FenceEvent/eventType}}:
Expand Down Expand Up @@ -1955,8 +1955,8 @@ Several APIs specific to fenced frames are defined on the {{Fence}} interface.
<div algorithm>
The <dfn method for=Fence>notifyEvent(|event|)</dfn> method steps are:

1. If [=this=]'s {{Document}} is not [=Document/fully active=], then [=exception/throw=] a
{{SecurityError}} {{DOMException}}.
1. If [=this=]'s [=relevant global object=]'s [=associated Document=] is not [=Document/fully
active=], then [=exception/throw=] a {{SecurityError}} {{DOMException}}.

1. Let |navigable| be [=this=]'s [=relevant global object=]'s [=Window/navigable=].

Expand Down Expand Up @@ -2000,8 +2000,8 @@ Several APIs specific to fenced frames are defined on the {{Fence}} interface.

1. Let |p| be [=a new promise=].

1. If [=this=]'s {{Document}} is not [=Document/fully active=], then [=exception/throw=] a
{{SecurityError}} {{DOMException}}.
1. If [=this=]'s [=relevant global object=]'s [=associated Document=] is not [=Document/fully
active=], then [=exception/throw=] a {{SecurityError}} {{DOMException}}.

1. Let |instance| be [=this=]'s [=relevant global object=]'s [=Window/browsing context=]'s
[=browsing context/fenced frame config instance=].
Expand Down

0 comments on commit f58da31

Please sign in to comment.