Closed
Bug 1205625
Opened 9 years ago
Closed 9 years ago
window deactivate event triggers on going into fullscreen
Categories
(Firefox :: Untriaged, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: noitidart, Unassigned)
Details
Attachments
(1 file)
53.54 KB,
image/png
|
Details |
User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0
Build ID: 20150914185908
Steps to reproduce:
listening for deactivate event on window with: https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XUL/Events#Window_events
it triggers when going into fullscreen
Actual results:
deactivate event triggers when going into fullscreen
Expected results:
it should not trigger
I tested on FF41.b09 with this code:
window.addEventListener("deactivate", e=>console.log('deactivate:', e))
window.addEventListener("activate", e=>console.log('activate:', e))
then focused window, then hit f11 to toggle fullscreen. i could not reproduce.
@sixtyten from irc #extdev reported this.
he shared this screenshot
Apparently this is probably an invalid bug, user from irc couldn't reproduce either.
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Resolution: --- → INVALID
I managed to reproduce it in another profile and separately on another machine. This only happens when firefox is maximized from STATE_NORMAL, not from STATE_MAXIMIZED.
Oops. I meant to say: It happens when I go into fullscreen from STATE_NORMAL. It doesn't happend when I go into fullscreen from STATE_MAXIMIZED.
Verified with this code from scratchpad that when you go to fullscreen from STATE_MAXIMIZED or STATE_NORMAL activate does trigger, but deactivate never triggers for me. So the bug is "activate triggers on fullscreen":
code for scratchpad:
window.addEventListener("deactivate", e=>console.log('deactivate:', e))
window.addEventListener("activate", e=>console.log('activate:', e))
window.fullScreen = true;
Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---
@sixty reports that:
if you attach act/deact listeners to a window. then focus the window. (you obviously get an initial activate message on time of focus) but now if you hit f11 you will get a deactivate then activate. I cant reproduce this part. I tried from both STATE_MAXIMIZED and STATE_NORMAL
Firefox 42 now animates going into fullscreen and I cannot reproduce this anymore (FF42 + Win8.1).
I don't see the animation, but i also cannot reproduce. What animates?
Comment 10•9 years ago
|
||
Youtube for example. Where the window would previously "jump", the screen now fades to black before showing the fullscreened video. It may be a youtube specific thing but either way I don't get any spurious events anymore, neither with DOM fullscreen nor regular fullscreen.
Comment 11•9 years ago
|
||
Just to verify; You two can not reproduce. Correct?
Flags: needinfo?(noitidart)
Reporter | ||
Comment 12•9 years ago
|
||
(In reply to Justin - QA from comment #11)
> Just to verify; You two can not reproduce. Correct?
Thanks Justin, thats correct, I could not reproduce. But sixtyten is the main guy on this, I filed for him. @sixtyten, should we invalid this? Or is is it still valid?
Flags: needinfo?(noitidart) → needinfo?(sixtyten)
Comment 13•9 years ago
|
||
(In reply to Justin - QA from comment #11)
> Just to verify; You two can not reproduce. Correct?
Correct.
(In reply to noitidart from comment #12)
> @sixtyten, should we invalid this?
Yes.
Flags: needinfo?(sixtyten)
Comment 14•9 years ago
|
||
Perfect. I will resolve this bug.
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago → 9 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•