@@ -6090,9 +6090,6 @@ agent's <a>CORS-preflight cache</a> for which there is a <a>cache entry match</a
6090
6090
<li><p> If <var> request</var> 's <a for=request>timing allow failed flag</a> is set, then return
6091
6091
failure.
6092
6092
6093
- <li><p> If <var> request</var> 's <a for=request>response tainting</a> is "<code> basic</code> ", then
6094
- return success.
6095
-
6096
6093
<li><p> Let <var> values</var> be the result of
6097
6094
<a for="header list">getting, decoding, and splitting</a> `<code> Timing-Allow-Origin</code> ` from
6098
6095
<var> response</var> 's <a for=response>header list</a> .
@@ -6102,6 +6099,20 @@ agent's <a>CORS-preflight cache</a> for which there is a <a>cache entry match</a
6102
6099
<li><p> If <var> values</var> <a for=list>contains</a> the result of
6103
6100
<a>serializing a request origin</a> with <var> request</var> , then return success.
6104
6101
6102
+ <li>
6103
+ <p> If <var> request</var> 's <a for=request>mode</a> is "<code> navigate</code> " and
6104
+ <var> request</var> 's <a for=request>current URL</a>' s <a for=url>origin</a> is not
6105
+ <a>same origin</a> with <var> request</var> 's <a for=request>origin</a> , then return failure.
6106
+
6107
+ <p class=note> This is necessary for navigations of a nested browsing context. There,
6108
+ <var> request</var> 's <a for=request>origin</a> would be the container document' s
6109
+ <a for=Document>origin</a> and the <a>TAO check</a> would return failure. Since navigation timing
6110
+ never validates the results of the <a>TAO check</a> , the nested document would still have access
6111
+ to the full timing information, but the container document would not.
6112
+
6113
+ <li><p> If <var> request</var> 's <a for=request>response tainting</a> is "<code> basic</code> ", then
6114
+ return success.
6115
+
6105
6116
<li><p> Return failure.
6106
6117
</ol>
6107
6118
0 commit comments