Cross-domain video loads do not prompt for authorization.
authorjer.noble@apple.com <jer.noble@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 28 Jun 2016 18:25:27 +0000 (18:25 +0000)
committerjer.noble@apple.com <jer.noble@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 28 Jun 2016 18:25:27 +0000 (18:25 +0000)
commit39e74ad776726c9b51519262396cdaacc9fcfe03
tree318a3c1c9f74bafaf1a068dccd689feecc655ed2
parentc7cf4e05310e352c456a56f298060044022152ab
Cross-domain video loads do not prompt for authorization.
https://bugs.webkit.org/show_bug.cgi?id=159195
<rdar://problem/26234612>

Reviewed by Brent Fulgham.

Source/WebCore:

Test: http/tests/media/video-auth.html (modified)

We should prompt for authorization when a cross-origin <video> is embedded
in a web page.

* loader/MediaResourceLoader.cpp:
(WebCore::MediaResourceLoader::requestResource):

LayoutTests:

Add a cross-origin authorization sub-test.

* http/tests/media/video-auth.html:
* http/tests/media/video-auth-expected.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@202579 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/http/tests/media/video-auth-expected.txt
LayoutTests/http/tests/media/video-auth.html
Source/WebCore/ChangeLog
Source/WebCore/loader/MediaResourceLoader.cpp