Skip to content

Commit

Permalink
improve initiatorType
Browse files Browse the repository at this point in the history
- 'fetch' for fetch() initiated requests
- 'preflight' for CORS-preflight requests
- 'other' to catch all other cases

closes #8
  • Loading branch information
igrigorik committed Sep 23, 2015
1 parent 74e63a2 commit a3415bc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,9 @@ <h3>The <code>PerformanceResourceTiming</code> Interface</h3>
<p>If the initiator is a CSS resource downloaded by the <code><a href="http://www.w3.org/TR/css-syntax-3/#consume-a-url-token">url()</a></code> syntax [[!CSS-SYNTAX-3]], such as <code>@import url()</code> or <code>background: url()</code>,
on getting, the <code><a href="#widl-PerformanceResourceTiming-initiatorType">initiatorType</a></code> attribute MUST return the DOMString <code>"css"</code>.</p>
<p>If the initiator is an XMLHttpRequest object [[!XMLHttpRequest]], on getting, the <code><a href="#widl-PerformanceResourceTiming-initiatorType">initiatorType</a></code> attribute MUST return the DOMString <code>"xmlhttprequest"</code>.</p>
<p>If the initiator is the <a href="https://fetch.spec.whatwg.org/#dom-global-fetch">Fetch method</a> [[!Fetch]], on getting, the <code><a href="#widl-PerformanceResourceTiming-initiatorType">initiatorType</a></code> attribute MUST return the DOMString <code>"fetch"</code>.</p>
<p>If the initiator is the <a href="https://fetch.spec.whatwg.org/#cors-preflight-fetch">CORS-preflight fetch</a> [[!Fetch]], on getting, the <code><a href="#widl-PerformanceResourceTiming-initiatorType">initiatorType</a></code> attribute MUST return the DOMString <code>"preflight"</code>.</p>
<p>Otherwise, on getting, the initiatorType attribute MUST return the DOMString <code>"other"</code>.</p>
</dd>

<dt>readonly attribute DOMString nextHopProtocol</dt>
Expand Down

0 comments on commit a3415bc

Please sign in to comment.