HTML Standard Tracker

Diff (omit for latest revision)
Filter

Short URL: http://html5.org/r/4042

File a bug

SVNBugCommentTime (UTC)
40427709[Gecko] [Opera] [Webkit] Block cross-origin PUT and DELETE from <form>s for now.2009-09-29 09:37
Index: source
===================================================================
--- source	(revision 4041)
+++ source	(revision 4042)
@@ -43758,9 +43758,15 @@
 
       </dl>
 
-      <p><span>Navigate</span> <var title="">target browsing
-      context</var> to <var title="">action</var> using the HTTP
-      method given by <var title="">method</var> and with <var
+      <p>If <var title="">method</var> is anything but GET or POST,
+      and the <span>origin</span> of <var title="">action</var> is not
+      the <span>same origin</span> as that of the <code>form</code>
+      element's <code>Document</code>, then abort these steps.</p>
+      <!-- CORS, one day -->
+
+      <p>Otherwise, <span>navigate</span> <var title="">target
+      browsing context</var> to <var title="">action</var> using the
+      HTTP method given by <var title="">method</var> and with <var
       title="">entity body</var> as the entity body, of type <var
       title="">MIME type</var>. If <var title="">target browsing
       context</var> was newly created for this purpose by the steps
@@ -43775,12 +43781,17 @@
       <p>Let <var title="">target browsing context</var> be <span>the
       form submission target browsing context</span>.</p>
 
-      <p><span>Navigate</span> <var title="">target browsing
-      context</var> to <var title="">action</var> using the DELETE
-      method. If <var title="">target browsing context</var> was newly
-      created for this purpose by the steps above, then it must be
-      navigated with <span>replacement enabled</span>.</p>
+      <p>If the <span>origin</span> of <var title="">action</var> is
+      not the <span>same origin</span> as that of the
+      <code>form</code> element's <code>Document</code>, then abort
+      these steps.</p> <!-- CORS, one day -->
 
+      <p>Otherwise, <span>navigate</span> <var title="">target
+      browsing context</var> to <var title="">action</var> using the
+      DELETE method. If <var title="">target browsing context</var>
+      was newly created for this purpose by the steps above, then it
+      must be navigated with <span>replacement enabled</span>.</p>
+
      </dd>
 
      <dt><dfn title="submit-get-action">Get action</dfn>

|