Tapping ESC to close a modal also changes window from full size to normal
Categories
(Core :: Widget: Cocoa, defect)
Tracking
()
People
(Reporter: fatihyldz1, Unassigned)
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:94.0) Gecko/20100101 Firefox/94.0
Steps to reproduce:
I'm using M1 Macbook Pro on Monterey and I don't know which one caused this issue but when I use Firefox full screen and tap on ESC to close a modal on a web app, full screen changes to normal size.
Actual results:
I'm not sure whether this is relevant to new mac operating system or the latest firefox update. It was working good before. Now it's just annoying. Both updates almost came at the same times. So I didn't notice which one caused this issue. Most probably an update from Firefox caused this issue. There was a very little time between these 2 updates.
Expected results:
When I tap on ESC, it should not change the window size from full screen to normal. This wasn't working like this. When you tap on ESC, it closes a pop up on a web page.
Updated•4 years ago
|
Comment 1•4 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Widget: Cocoa' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.
Comment 2•4 years ago
|
||
This is an intentional change (see bug 1732367). If this interferes with your workflow you can disable this behavior by setting the browser.fullscreen.exit_on_escape pref to false in about:config.
Comment 3•4 years ago
|
||
A well-behaving web app which handles the ESC key should call event.preventDefault(). This will stop Firefox (and also Safari) from exiting full screen mode. Can you share which web app you are experiencing this with, and maybe even ask them to add the preventDefault() call?
| Reporter | ||
Comment 4•4 years ago
|
||
I changed the setting from about:config and voila, it worked.
It affects all web applications in different tabs, no specific one. Probably this was false in past versions. I don't know how this changed to true. According to about:config, default is true.
Comment 5•4 years ago
|
||
Huh, then all those web applications need to be fixed. Could you give some examples?
| Reporter | ||
Comment 6•4 years ago
|
||
Sure, if you can reproduce, it's surprising. :)
drive.google.com
web.whatsapp.com
| Reporter | ||
Comment 7•4 years ago
|
||
oups mistake, drive.google.com and mail.google.com works well. however, firebase doesn't. :)
console.firebase.google.com
| Reporter | ||
Comment 8•4 years ago
|
||
lol it also happens here
bugzilla.mozilla.org
| Reporter | ||
Comment 9•4 years ago
|
||
linkedin.com similarly changes screen size. I use ESC a lot to stop something or close a modal. So I changed the setting and I'm happy now. :)
Description
•