[html5] r3483 - [] (0) Allow port banning in WebSocket.

whatwg at whatwg.org whatwg at whatwg.org
Tue Jul 28 15:12:58 PDT 2009


Author: ianh
Date: 2009-07-28 15:12:57 -0700 (Tue, 28 Jul 2009)
New Revision: 3483

Modified:
   source
Log:
[] (0) Allow port banning in WebSocket.

Modified: source
===================================================================
--- source	2009-07-28 22:11:33 UTC (rev 3482)
+++ source	2009-07-28 22:12:57 UTC (rev 3483)
@@ -69752,9 +69752,6 @@
    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
@@ -69777,6 +69774,14 @@
    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"><path></span> component (which might
    be empty) of <var title="">url</var>.</p></li>
@@ -69790,6 +69795,9 @@
    name</var>, followed by the value of the <span
    title="url-query"><query></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




More information about the Commit-Watchers mailing list