whatwg/xhr — pull request #13 by hallvors (2013-11-09 22:50:08+00:00)
Title: One attempt at figuring out the referrer source issue

1) "script's referrer source" is no longer defined in HTML it seems (certainly not in the location it was according to the xrefs). I assume "API referrer source" is the equivalent concept (although I have not found any related discussion and it's not at all clear to me why the spec distinguishes between script's responsible document and its API referrer source as it does for example in step 4 here: http://www.whatwg.org/specs/web-apps/current-work/multipage/workers.html#processing-model-7

2) In fact referrer source should always be referencing a Document when xhr.send() runs - by the algorithms over in the Worker spec and those in XHR itself - but the "API referrer source" definition says it can be a URL too, so it seems prudent to take that into account and put in ".. if it's a document, otherwise..".