Separate the evidence from the decision
Canvas tainting protects data drawn from another origin without the required permission. A visible picture is therefore not proof that toBlob, toDataURL or pixel inspection is allowed. The useful artifact is a play/draw/export test matrix with the exact authorized origins and response behavior. This is a custom review-page integration problem; it is not a character-generation fault and does not imply that AISwapLab guarantees cross-origin screenshot export from every downloaded or hosted asset.
Build the evidence
- 01
Establish the input evidence
First confirm the intended reviewer is allowed to access the file and that the correct video actually plays. Record page and media origins without copying sensitive query tokens into the report. Test a same-origin or explicitly authorized local fixture to establish that the drawing/export code works. If that baseline fails, investigate media readiness, dimensions and canvas code before assuming a cross-origin cause. A zero-sized canvas or unavailable current frame can produce a different failure.
- 02
Run a controlled diagnostic
Set the video's crossOrigin mode before assigning its source and loading it. The source server must support the actual request mode and page origin; an attribute alone does not grant permission. After a frame is ready, draw it to a correctly sized canvas and handle export errors explicitly. A previous non-permitted draw can already taint a canvas, so use a fresh diagnostic canvas when comparing conditions. Keep private assets behind an authorized access design throughout the test.
- 03
Verify the actual handoff
Record whether playback succeeds, drawing occurs and export returns a usable image. Catch synchronous security failures and asynchronous export failure rather than reporting a blank file as success. Reopen any saved screenshot and bind it to the actual asset revision and captured media time. If the hosting system intentionally forbids cross-origin reading, use its supported review/export mechanism or obtain an approved same-origin derivative instead of treating the restriction as a defect to evade.
A bounded example
Illustrative case: a video plays from a media host, but calling toDataURL after drawing it raises a SecurityError. The local same-origin fixture exports correctly. That evidence points to the resource permission boundary rather than bad facial tracking or a corrupt MP4. Another case with a zero-width canvas needs a code fix instead. The sample is a documentation prototype, not an executed browser-security or live-hosting test.
Local workflow example
Documentation prototype only. No canvas security policy, private resource or shared-browser session was changed or tested.
// Authorized resource only; server CORS policy must match the page.
const video = document.createElement("video");
video.crossOrigin = "anonymous";
video.src = "https://media.example.test/approved.mp4";
// After a real frame is ready, use a fresh canvas and catch export failures.
// Playback success alone does not authorize canvas.toBlob()/toDataURL().Task evidence worksheet
| Test | Evidence | Meaning |
|---|---|---|
| Playback | Picture visible | Not pixel-read permission |
| Canvas export | Usable image or explicit failure | Origin-clean/readiness check |
| Authorized alternative | Owner-approved review path | No security bypass |
Acceptance evidence
- Separate play, draw and export outcomes in the report.
- Configure request mode before loading and require matching server permission.
- Do not weaken private access or label an empty export as successful evidence.
Stop condition
Stop when the necessary server policy cannot be changed by the authorized owner or when a workaround would disclose private media. Preserve the failed test as an access limitation and use a supported review tool. No new generation or repeated re-encoding can grant a browser permission to read pixels from an origin that has not authorized it.
