Skip to content

Commit

Permalink
use this relevant settings object to compare origins
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosjoan91 committed Jan 20, 2021
1 parent 0b69480 commit df90390
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -93462,8 +93462,9 @@ function sendData(data) {
data-x="concept-document-window">associated <code>Document</code></span> has the <span>sandboxed
modals flag</span> set, then return.</p></li>

<li><p>If the alert was invoked inside an iframe that is not <span>same origin-domain</span>
with the top level frame, then return.</p></li>
<li><p>If <span>this</span>'s <span>relevant settings object</span>'s <span>origin</span> and
<span>this</span>'s <span>relevant settings object</span>'s <span>top-level origin</span> are
not <span>same origin-domain</span>, then return.</p></li>

<li><p>Optionally, return. (For example, the user agent might give the user the option
to ignore all alerts, and would thus abort at this step whenever the method was
Expand Down Expand Up @@ -93497,8 +93498,9 @@ function sendData(data) {
data-x="concept-document-window">associated <code>Document</code></span> has the <span>sandboxed
modals flag</span> set, then return.</p></li>

<li><p>If the confirm dialog was invoked inside an iframe that is not
<span>same origin-domain</span> with the top level frame, then return false.</p></li>
<li><p>If <span>this</span>'s <span>relevant settings object</span>'s <span>origin</span> and
<span>this</span>'s <span>relevant settings object</span>'s <span>top-level origin</span> are
not <span>same origin-domain</span>, then return false.</p></li>

<li><p>Optionally, return false. (For example, the user agent might give
the user the option to ignore all prompts, and would thus abort at this step whenever the method
Expand Down Expand Up @@ -93530,8 +93532,9 @@ function sendData(data) {
data-x="concept-document-window">associated <code>Document</code></span> has the <span>sandboxed
modals flag</span> set, then return.</p></li>

<li><p>If the prompt was invoked inside an iframe that is not <span>same origin-domain</span>
with the top level frame, then return null.</p></li>
<li><p>If <span>this</span>'s <span>relevant settings object</span>'s <span>origin</span> and
<span>this</span>'s <span>relevant settings object</span>'s <span>top-level origin</span> are
not <span>same origin-domain</span>, then return null.</p></li>

<li><p>Optionally, return null. (For example, the user agent might give the
user the option to ignore all prompts, and would thus abort at this step whenever the method was
Expand Down

0 comments on commit df90390

Please sign in to comment.