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

RESOLVED INCOMPLETE

Status

()

Core
Canvas: 2D
RESOLVED INCOMPLETE
5 years ago
2 years ago

People

(Reporter: Geoffrey, Unassigned)

Tracking

17 Branch
x86
Mac OS X
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

5 years ago
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).

Updated

5 years ago
Component: Untriaged → Canvas: 2D
Product: Firefox → Core

Comment 1

5 years ago
Could you attach a minimal testcase, please?
Flags: needinfo?(geoffrey.gourdet)
(Reporter)

Comment 2

5 years ago
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
Last Resolved: 2 years ago
Flags: needinfo?(geoffrey.gourdet)
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.