It seems while rebasing in #30429 (moved) we did not realize that the letterboxing patches made it into ESR 68 yet the pref to enabled the functionality needs still to get set.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Child items 0
Show closed items
No child items are currently assigned. Use child items to break down this issue into smaller parts.
Linked items 0
Link issues together to show that they're related.
Learn more.
I think we want to bind the behavior to the letterboxing pref maybe? That is: if letterboxing is enabled don't show any notification if resizing is happening (but make sure that our window is still properly rounded when created) and if letterboxing is disabled (because folks don't like the new behavior) fall back to the current status quo)
Hm, so this leaves is in a weird situation, kind of: disabling/enabling letterboxing happens instantly. However, showing/not showing the notification box depends on the window creation state, which gives surprising results. You'd e.g. get the notification bar if you just enabled letterboxing but you started without it being on and vice versa. I think we should find a better way binding letterboxing to the notification bar.
If that's to tricky I am fine just disabling that part entirely. However, in that case we could just rip the resizelistener etc. out.
Mmm, actually I thought about that, but not sure how I tested that I thought letterboxing was not being enabled instantly, just on a new window.
In any case, here is a revised patch: https://github.com/acatarineu/torbutton/commit/31598+2. Now the resize listener is always enabled and checking the pref when it's called. Being strict, this still has the issue that a user with the window already maximized changing letterboxing pref will not get any notification, since these are only shown on window resize right now. Do you think we should also handle those cases?
Mmm, actually I thought about that, but not sure how I tested that I thought letterboxing was not being enabled instantly, just on a new window.
In any case, here is a revised patch: https://github.com/acatarineu/torbutton/commit/31598+2. Now the resize listener is always enabled and checking the pref when it's called. Being strict, this still has the issue that a user with the window already maximized changing letterboxing pref will not get any notification, since these are only shown on window resize right now. Do you think we should also handle those cases?
No, I think what we have now is fine. I merged your patches to torbutton (commit 1edfec57049a76052fda8eb17b6e3b8f281e3361) and tor-browser (commit f19b6946fcccb42b3b060c5ecf53ba8ec524b420), thanks!