Chromium Code Reviews| Index: Source/core/html/HTMLMediaElement.cpp |
| diff --git a/Source/core/html/HTMLMediaElement.cpp b/Source/core/html/HTMLMediaElement.cpp |
| index 87488bcd8747770f47dbde13f397416c2228c213..435326f20e0449509214c57796520b1e2dd59a3a 100644 |
| --- a/Source/core/html/HTMLMediaElement.cpp |
| +++ b/Source/core/html/HTMLMediaElement.cpp |
| @@ -1564,6 +1564,11 @@ bool HTMLMediaElement::isSafeToLoadURL(const KURL& url, InvalidURLAction actionI |
| return true; |
| } |
| +bool HTMLMediaElement::mediaDataIsCORSSameOrigin(SecurityOrigin* origin) const |
|
ddorwin
2015/02/06 21:41:33
Does the new function really tell us that it is CO
jrummell
2015/02/07 00:12:26
Acknowledged. Added comments to indicate this, jus
|
| +{ |
| + return hasSingleSecurityOrigin() && ((webMediaPlayer() && webMediaPlayer()->didPassCORSAccessCheck()) || !origin->taintsCanvas(currentSrc())); |
| +} |
| + |
| void HTMLMediaElement::startProgressEventTimer() |
| { |
| if (m_progressEventTimer.isActive()) |