drawImage with <video> doesn't work unless video is visible

RESOLVED WORKSFORME

Status

()

Core
Canvas: 2D
P2
normal
RESOLVED WORKSFORME
10 years ago
9 years ago

People

(Reporter: vlad, Assigned: roc)

Tracking

unspecified
x86
All
Points:
---
Bug Flags:
blocking1.9.2 +
wanted1.9.1 +
in-testsuite +

Firefox Tracking Flags

(status1.9.2 beta1-fixed, status1.9.1 .2-fixed)

Details

(URL)

Attachments

(1 attachment)

If you use drawImage with a video element that's not attached to the document (or I suspect is attached but display:none), nothing gets drawn.  I'm guessing that this is because the video frames aren't being created in this case.
Flags: wanted1.9.1+
Flags: blocking1.9.2?
I swear this used to work!
Assignee: nobody → roc
Flags: blocking1.9.2? → blocking1.9.2+
Priority: -- → P2
Created attachment 403603 [details]
testcase which works

This testcase works for me on Mac, so in general this feature does work.
layout/reftests/ogg-video/canvas-1a.xhtml actually tests this. 1.9.1 has that test too. It's enabled in reftest.list in all branches.

http://people.mozilla.com/~mnandigama/codecoverage_html/layout/base/nsLayoutUtils.cpp.gcov.html shows that the video code in nsLayoutUtils::GetSurfaceFromElement is covered.

I guess this got fixed since Vlad filed the report.
Status: NEW → RESOLVED
Last Resolved: 9 years ago
status1.9.1: --- → .2-fixed
status1.9.2: --- → beta1-fixed
Resolution: --- → FIXED
Flags: in-testsuite+
Resolution: FIXED → WORKSFORME
You need to log in before you can comment on or make changes to this bug.