Media document sends incorrect referer header
authoreric.carlson@apple.com <eric.carlson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 13 Aug 2014 17:24:34 +0000 (17:24 +0000)
committereric.carlson@apple.com <eric.carlson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 13 Aug 2014 17:24:34 +0000 (17:24 +0000)
commit74423960ef50da1b78aa109f4f2bd40aed8ef9da
tree0804f3a9f18ea12c713f64b6715b6efe7545bbbd
parentefb3287dcd575d5b6e9f82c5db1a1e8eb23f92a1
Media document sends incorrect referer header
https://bugs.webkit.org/show_bug.cgi?id=135839

Reviewed by Jer Noble.

Source/WebCore:

Test: http/tests/media/media-document-referer.html

* html/MediaDocument.cpp:
(WebCore::MediaDocumentParser::MediaDocumentParser): Stash referrer.
(WebCore::MediaDocumentParser::createDocumentStructure): Set outgoing referrer.
(WebCore::MediaDocument::MediaDocument): Stash referrer.
* html/MediaDocument.h:

LayoutTests:

* http/tests/media/media-document-referer-expected.txt: Added.
* http/tests/media/media-document-referer.html: Added.
* http/tests/media/resources/video-referer-check-referer.php: Take expected referer as a
    parameter instead of hard coding it.
* http/tests/media/video-referer.html: Pass referer to loader script.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@172523 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/http/tests/media/media-document-referer-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/media/media-document-referer.html [new file with mode: 0644]
LayoutTests/http/tests/media/resources/video-referer-check-referer.php
LayoutTests/http/tests/media/video-referer.html
Source/WebCore/ChangeLog
Source/WebCore/html/MediaDocument.cpp
Source/WebCore/html/MediaDocument.h