Skip to content

Commit

Permalink
[e] (0) 'security exception' got defined more precisely a while ago
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@4134 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Oct 14, 2009
1 parent 9424077 commit fd75b0a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
16 changes: 8 additions & 8 deletions complete.html
Original file line number Diff line number Diff line change
Expand Up @@ -64312,7 +64312,7 @@ <h5 id=the-abstractworker-abstract-interface><span class=secno>9.2.8.1 </span>Th
<p>If the <a href=#origin>origin</a> of the resulting <a href=#absolute-url>absolute
URL</a> is not the <a href=#same-origin title="same origin">same</a> as the
origin of the <a href=#first-script>first script</a>, then throw a
<span>security exception</span>.</p>
<code><a href=#security_err>SECURITY_ERR</a></code> exception.</p>

<p class=note>Thus, scripts must be external files with the same
scheme as the original page: you can't load a script from a <code title="">data:</code> URL or <code title="">javascript:</code>
Expand Down Expand Up @@ -64430,8 +64430,8 @@ <h5 id=shared-workers-and-the-sharedworker-interface><span class=secno>9.2.8.3 <

<p>If the <a href=#origin>origin</a> of <var title="">scriptURL</var> is
not the <a href=#same-origin title="same origin">same</a> as the origin of the
<a href=#first-script>first script</a>, then throw a <span>security
exception</span>.</p>
<a href=#first-script>first script</a>, then throw a <code><a href=#security_err>SECURITY_ERR</a></code>
exception.</p>

<p class=note>Thus, scripts must be external files with the same
scheme as the original page: you can't load a script from a <code title="">data:</code> URL or <code title="">javascript:</code>
Expand Down Expand Up @@ -64640,8 +64640,8 @@ <h4 id=importing-scripts-and-libraries><span class=secno>9.3.1 </span>Importing
<li><p>If any of the resulting <span title="absolute URL">absolute
URLs</span> have an <span>origin</span> that is not the <span
title="same origin">same</span> as the origin of the script that
invoked the method, then throw a <span>security
exception</span>.</p></li>
invoked the method, then throw a <code>SECURITY_ERR</code>
exception.</p></li>
-->

<li>
Expand Down Expand Up @@ -65692,9 +65692,9 @@ <h4 id=the-websocket-interface><span class=secno>10.3.2 </span>The <code><a href
these steps.</li>

<li><p>If <var title="">port</var> is a port to which the user
agent is configured to block access, then throw a <span>security
exception</span>. (User agents typically block access to well-known
ports like SMTP.)</li>
agent is configured to block access, then throw a
<code><a href=#security_err>SECURITY_ERR</a></code> exception. (User agents typically block
access to well-known ports like SMTP.)</li>
<!--
e.g. http://www.mozilla.org/projects/netlib/PortBanning.html
-->
Expand Down
16 changes: 8 additions & 8 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -72223,7 +72223,7 @@ interface <dfn>Worker</dfn> : <span>AbstractWorker</span> {
<p>If the <span>origin</span> of the resulting <span>absolute
URL</span> is not the <span title="same origin">same</span> as the
origin of the <span>first script</span>, then throw a
<span>security exception</span>.</p>
<code>SECURITY_ERR</code> exception.</p>

<p class="note">Thus, scripts must be external files with the same
scheme as the original page: you can't load a script from a <code
Expand Down Expand Up @@ -72356,8 +72356,8 @@ interface <dfn>SharedWorker</dfn> : <span>AbstractWorker</span> {

<p>If the <span>origin</span> of <var title="">scriptURL</var> is
not the <span title="same origin">same</span> as the origin of the
<span>first script</span>, then throw a <span>security
exception</span>.</p>
<span>first script</span>, then throw a <code>SECURITY_ERR</code>
exception.</p>

<p class="note">Thus, scripts must be external files with the same
scheme as the original page: you can't load a script from a <code
Expand Down Expand Up @@ -72606,8 +72606,8 @@ interface <dfn>WorkerUtils</dfn> {
<li><p>If any of the resulting <span title="absolute URL">absolute
URLs</span> have an <span>origin</span> that is not the <span
title="same origin">same</span> as the origin of the script that
invoked the method, then throw a <span>security
exception</span>.</p></li>
invoked the method, then throw a <code>SECURITY_ERR</code>
exception.</p></li>
-->

<li>
Expand Down Expand Up @@ -73813,9 +73813,9 @@ interface <dfn>WebSocket</dfn> {
these steps.</p></li>

<li><p>If <var title="">port</var> is a port to which the user
agent is configured to block access, then throw a <span>security
exception</span>. (User agents typically block access to well-known
ports like SMTP.)</p></li>
agent is configured to block access, then throw a
<code>SECURITY_ERR</code> exception. (User agents typically block
access to well-known ports like SMTP.)</p></li>
<!--
e.g. http://www.mozilla.org/projects/netlib/PortBanning.html
-->
Expand Down

0 comments on commit fd75b0a

Please sign in to comment.