| Index: Source/WebCore/html/canvas/CanvasRenderingContext.cpp
|
| ===================================================================
|
| --- Source/WebCore/html/canvas/CanvasRenderingContext.cpp (revision 119992)
|
| +++ Source/WebCore/html/canvas/CanvasRenderingContext.cpp (working copy)
|
| @@ -77,11 +77,12 @@
|
| if (!video || !canvas()->originClean())
|
| return false;
|
|
|
| - if (wouldTaintOrigin(video->currentSrc()))
|
| + if (!video->hasSingleSecurityOrigin())
|
| return true;
|
|
|
| - if (!video->hasSingleSecurityOrigin())
|
| + if (!(video->player() && video->player()->didPassCORSAccessCheck()) && wouldTaintOrigin(video->currentSrc()))
|
| return true;
|
| +
|
| #else
|
| UNUSED_PARAM(video);
|
| #endif
|
|
|