Skip to content

Commit

Permalink
[] (0) Allow port banning in WebSocket.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@3483 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jul 28, 2009
1 parent 0354960 commit e6aae62
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions source
Expand Up @@ -69752,9 +69752,6 @@ interface <dfn>WebSocket</dfn> {
U+0021 .. U+007E, then throw a <code>SYNTAX_ERR</code>
exception.</p></li>

<li><p>Return a new <code>WebSocket</code> object, and continue
these steps in the background (without blocking scripts).</p></li>

<li><p>Let <var title="">origin</var> be the <span title="ASCII
serialization of an origin">ASCII serialization</span> of the
<span>origin</span> of the script that invoked the <code
Expand All @@ -69777,6 +69774,14 @@ interface <dfn>WebSocket</dfn> {
title="">port</var> be that component's value; otherwise, there is
no explicit <var title="">port</var>.</p></li>

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

<li><p>Let <var title="">resource name</var> be the value of the
<span title="url-path">&lt;path&gt;</span> component (which might
be empty) of <var title="">url</var>.</p></li>
Expand All @@ -69790,6 +69795,9 @@ interface <dfn>WebSocket</dfn> {
name</var>, followed by the value of the <span
title="url-query">&lt;query&gt;</span> component.</p></li>

<li><p>Return a new <code>WebSocket</code> object, and continue
these steps in the background (without blocking scripts).</p></li>

<li>

<p><span>Establish a Web Socket connection</span> to a host <var
Expand Down

0 comments on commit e6aae62

Please sign in to comment.