Closed Bug 816449 Opened 12 years ago Closed 9 years ago

When resizing a canvas element on the resize event on a Mac, the canvas won't respond until you do some drastic actions such as hiding the element

Categories

(Core :: Graphics: Canvas2D, defect)

17 Branch
x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: geoffrey.gourdet, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:17.0) Gecko/17.0 Firefox/17.0
Build ID: 20121119183901

Steps to reproduce:

Mac OSX 10.6.8

I resize the canvas on window.onresize event so the canvas height/width is always equal to document.documentElement.clientHeight/Width and I use the drawImage method to redraw the last image that was displayed with new dimensions.


Actual results:

The canvas element will not respond to the drawImage method until I open a new browsing tab or hide the element (via the opacity, visibility or display property)

Note that if I use the click event instead of the resize event it works just fine.


Expected results:

The canvas should respond to the drawImage method or any other action instantly on the resize event.

Note that I don't have the issue on a PC or on any other up to date browser on a Mac (tested with Opera, Google Chrome and Safari).
Component: Untriaged → Canvas: 2D
Product: Firefox → Core
Could you attach a minimal testcase, please?
Flags: needinfo?(geoffrey.gourdet)
Hello,

You can see an example here : http://jsfiddle.net/qMNxj/
Flags: needinfo?(geoffrey.gourdet)
Does this still reproduce for you?
Flags: needinfo?(geoffrey.gourdet)
The testcase in comment 2 appears to be broken AFAICT.

Closing this as incomplete due to inactivity and the lack of a reproducible test case. Feel free to reopen the bug if there's an updated testcase that still reproduces the issue.
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Flags: needinfo?(geoffrey.gourdet)
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.