If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

Bogus JS 'resize' events are fired when transitioning a canvas between fullscreen modes.

NEW
Unassigned

Status

()

Core
DOM
3 years ago
3 years ago

People

(Reporter: Jukka Jylänki, Unassigned)

Tracking

(Blocks: 1 bug)

33 Branch
x86
Windows 7
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

3 years ago
STR:

1. Visit https://dl.dropboxusercontent.com/u/40949268/emcc/bugs/bogus_resize_event.html
2. Click the button "Fullscreen bare" on the page.
3. Press esc to transition back to Windowed mode.
4. Open the web console and observe the results:

Observed: The web console prints something like in this image: https://dl.dropboxusercontent.com/u/40949268/emcc/bugs/bogus_resize_event_firefox.png

Note that there are two 'resize' events received for a unexplainable 1936x1056 size, and when transitioning back to windowed mode, the resize event for 300x300 is triggered twice.

The test in the page was conducted on a dualmonitor setup where the main monitor is of size 1920x1080, and a secondary monitor with size 1440x900, although suspecting that this does not matter.

Expected: The log should read

"TO FS: CSS size: 300x300, RTT Size: 300x300" bogus_resize_event.html:78
"RESIZED! New CSS size: 1920x1080, RTT Size: 300x300" bogus_resize_event.html:91
"RESIZED! New CSS size: 300x300, RTT Size: 300x300"

without extraneous resize events.

Not sure if I reported this to the proper Component, so please correct me if I got this wrong.
(Reporter)

Updated

3 years ago
Blocks: 1083015
I expect that issue is that as we transition to fullscreen we do resize events in the usual way, which happens to be partway through the transition...
Component: Graphics → DOM
You need to log in before you can comment on or make changes to this bug.