[Webkit-unassigned] [Bug 241718] New: Video CORS requests with a 302 redirect cause tainted canvas
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Jun 17 10:14:09 PDT 2022
https://bugs.webkit.org/show_bug.cgi?id=241718
Bug ID: 241718
Summary: Video CORS requests with a 302 redirect cause tainted
canvas
Product: WebKit
Version: Safari 15
Hardware: Mac (Intel)
OS: macOS 12
Status: NEW
Severity: Normal
Priority: P2
Component: Canvas
Assignee: webkit-unassigned at lists.webkit.org
Reporter: adrian.rocke at pivotinteractives.com
CC: dino at apple.com
Overview
When a video element with crossorigin="use-credentials" receives a 302 redirect, and then is inserted into a canvas with drawImage, the canvas becomes tainted. There is no CORS error when loading the video in the first place, but the canvas is still tainted. This isn't an issue in Chrome or Firefox
Steps to Reproduce
1. Load a video from a cross origin server that redirects to another cross origin server
2. draw the image on a canvas element
3. get the image data from the canvas
You can view this page here to see the issue: https://pi-web-br-safari-bug.herokuapp.com/safari-bug
This page works in Chrome and Firefox, but not Safari.
Actual Results
operation fails because of a tainted canvas
no CORS issue is logged in developer tools
Expected Results
operation should succeed since CORS was handled correctly
Build Date & Hardware
Version 15.5 (17613.2.7.1.8) on macOS 12.4 (21F79)
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220617/eb21085c/attachment-0001.htm>
More information about the webkit-unassigned
mailing list