[html5] r3557 - [] (0) Allow location.replace() to be accessed cross-origin too.

whatwg at whatwg.org whatwg at whatwg.org
Fri Aug 7 17:51:32 PDT 2009


Author: ianh
Date: 2009-08-07 17:51:31 -0700 (Fri, 07 Aug 2009)
New Revision: 3557

Modified:
   index
   source
Log:
[] (0) Allow location.replace() to be accessed cross-origin too.

Modified: index
===================================================================
--- index	2009-08-08 00:20:47 UTC (rev 3556)
+++ index	2009-08-08 00:51:31 UTC (rev 3557)
@@ -52114,8 +52114,15 @@
    <a href=#allowed-to-navigate>allowed to navigate</a> the browsing context with which
    the <code><a href=#location>Location</a></code> object is associated
 
-  </ul><p>User agents must not allow scripts to override the <code title=dom-location-href><a href=#dom-location-href>href</a></code> attribute's setter.</p>
+   <li>The <code title=dom-location-replace><a href=#dom-location-replace>replace()</a></code> method,
+   if the script is running in a <a href=#browsing-context>browsing context</a> that is
+   <a href=#allowed-to-navigate>allowed to navigate</a> the browsing context with which
+   the <code><a href=#location>Location</a></code> object is associated
 
+  </ul><p>User agents must not allow scripts to override the <code title=dom-location-href><a href=#dom-location-href>href</a></code> attribute's setter or the
+  <code title=dom-location-replace><a href=#dom-location-replace>replace()</a></code> method on the
+  <code><a href=#location>Location</a></code> object.</p>
+
   </div>
 
 

Modified: source
===================================================================
--- source	2009-08-08 00:20:47 UTC (rev 3556)
+++ source	2009-08-08 00:51:31 UTC (rev 3557)
@@ -59027,10 +59027,17 @@
    <span>allowed to navigate</span> the browsing context with which
    the <code>Location</code> object is associated
 
+   <li>The <code title="dom-location-replace">replace()</code> method,
+   if the script is running in a <span>browsing context</span> that is
+   <span>allowed to navigate</span> the browsing context with which
+   the <code>Location</code> object is associated
+
   </ul>
 
   <p>User agents must not allow scripts to override the <code
-  title="dom-location-href">href</code> attribute's setter.</p>
+  title="dom-location-href">href</code> attribute's setter or the
+  <code title="dom-location-replace">replace()</code> method on the
+  <code>Location</code> object.</p>
 
   </div>
 




More information about the Commit-Watchers mailing list