canvas doesn't get cleared to transparent until context is created

RESOLVED WORKSFORME

Status

()

Core
Canvas: 2D
P2
normal
RESOLVED WORKSFORME
12 years ago
8 years ago

People

(Reporter: vlad, Assigned: vlad)

Tracking

Trunk
mozilla1.9alpha8
x86
All
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

The canvas element doesn't become transparent until getContext() is called on it, because that's the first time the actual image content is created.  Until that happens, we end up seeing solid white.  I'm not sure what's painting that solid white, though.
Priority: -- → P3
Target Milestone: --- → mozilla1.9beta1
Priority: P3 → --
Priority: -- → P2
Joe, if you get a chance, a testcase for this would be helpful.. I dunno why I didn't attach one in the first place.  This might be straightforward to fix, too.
Created attachment 307998 [details]
attempt at a testcase

Well, this is my quick attempt to reproduce this bug, but I can't see the canvas painting itself white before calling getContext() (both using an HTML body background of black and also using an image for a background). 

Click in the upper-left part of the window of the testcase.
This slipped through the cracks.  Do you still see this?  Your testcase works fine under Windows for me (all black, until I click, then I get red).
worksforme, haven't seen/heard of this
Status: NEW → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.