Closed Bug 470371 Opened 16 years ago Closed 15 years ago

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

Categories

(Core :: Graphics: Canvas2D, defect, P2)

x86
All
defect

Tracking

()

RESOLVED WORKSFORME
Tracking Status
status1.9.2 --- beta1-fixed
status1.9.1 --- .2-fixed

People

(Reporter: vlad, Assigned: roc)

References

()

Details

Attachments

(1 file)

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+
Attached file 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
Closed: 15 years ago
Resolution: --- → FIXED
Flags: in-testsuite+
Resolution: FIXED → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: