[giow] (3) I totally broke document.referrer a few weeks ago.
Affected topics: HTML, Video Text Tracks

git-svn-id: http://svn.whatwg.org/webapps@7762 340c8d12-0b0e-0410-8428-c7bf67bfef74
[giow] (3) Match reality, and factor out an algorithm.
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=20780
Affected topics: DOM APIs, HTML

git-svn-id: http://svn.whatwg.org/webapps@7763 340c8d12-0b0e-0410-8428-c7bf67bfef74