brave-browser: Add a setting to hide the `To exit full screen, press ESC` message when going fullscreen on videos
Test plan
- Fresh profile
- In tab 1, visit YouTube.com and view a view
- Click the full screen square icon in the bottom right of the video
- You should see the “To exit full screen, press <kbd>esc</kbd>” message
- Hit escape to go back to regular mode
- In tab 2, visit brave://settings/system
- Toggle the new
Show full screen reminder to press Esc on exitsetting to FALSE - Go back to tab 1
- Click the full screen square icon in the bottom right of the video
- You should NOT see the reminder from step 4
Platforms
Linux, macOS, Windows
Description
Folks should be able to turn off this message which shows each time they go fullscreen on a video in the browser
For example, Vivaldi has this configurable - under Webpages group in settings, with Show Fullscreen Reminder (defaulted to true).
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 23 (4 by maintainers)
Links to this issue
Commits related to this issue
- Add "Show Fullscreen reminder" option in setting page under System section. Fixes https://github.com/brave/brave-browser/issues/38928 — committed to jagadeshjai/brave-core by jagadeshjai 2 years ago
Verified
PASSEDusingCase One:
Show full screen reminder to press Esc on exitdefaulted toOn/EnabledSteps:
1.69.88brave://settings/systemEnabled/Onby defaulthttps://www.youtube.com/watch?v=sdVWKpqZaXgView in FullscreenConfirmed I saw
To exit full screen, press [Esc]Case Two:
Show full screen reminder to press Esc on exittoggled toOff/DisabledSteps:
1.69.88brave://settings/systemShow full screen reminder to press Esc on exittoDisabled/Offhttps://www.youtube.com/watch?v=sdVWKpqZaXgView in FullscreenConfirmed I didn’t see the
To exit full screen, press [Esc]@bsclifton FYI: As expected, based on
params, an appropriate bubble will be created. Since our primary goal is to only handle the bubble when going fullscreen on videos, I’ll do something like this:I guess this patch will probably hide both the tab-initiated and browser-initiated bubbles. I will check and confirm.
Hi @jagadeshjai that would be great! I think this can easily be done using a chromium_src override for
chrome/browser/ui/views/frame/browser_view.ccBasically, we can replace the
BrowserView::UpdateExclusiveAccessBubblemethod with a new method that checks the pref and exits if true. If pref is false, we can call the original Chromium method. I just verified this works great 😄Here’s the patch I tried (obviously we’d want to use the chromium_src override)
@rebron thanks for helping find a place to land it!
Hi @bsclifton , I would like to take this task.
Clarification - Do you want me to use this Option
Show FullscreenReminder for only tab-initiated fullscreen or including others as well(Like Browser initiated - F11).