Closed Bug 2065909 Opened 3 months ago Closed 2 months ago

Address bar expands and toolbar icons disappear after entering/exiting fullscreen (macOS)

Categories

(Core :: Widget: Cocoa, defect)

Firefox 153
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: rebop, Unassigned)

Details

Attachments

(2 files)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:140.0) Gecko/20100101 Firefox/140.0

Steps to reproduce:

Steps to reproduce:

Open Firefox 153.0.4 on macOS with a normal-sized window
Enter fullscreen via ⌘⇧F
Exit fullscreen via ⌘⇧F again
(Optional, to confirm the toolbar isn't permanently broken) Double-click the title bar area to maximize, then double-click again to restore to normal views)

Actual results:

Entering fullscreen immediately causes the address bar to expand dramatically, pushing/hiding several toolbar icons on the right side of the navigation toolbar. This broken layout persists after exiting fullscreen — it does not self-correct. Double-clicking to maximize/unmaximize the window immediately restores the toolbar to its correct, normal layout.

Expected results:

The toolbar layout should remain correct (as it was before entering fullscreen) both during fullscreen and after exiting it, without requiring an unrelated action like maximizing/unmaximizing to fix it.

Firefox 140 ESR does not exhibit this problem. Reproduced with Themes disabled, in Troubleshooting Mode (all extensions/customizations off), with my_userChrome.css disabled, and with xulstore.json rebuilt fresh — confirms this is default Firefox behavior. Possibly related (not identical): Bug 1928255, Bug 1928866.

Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:153.0) Gecko/20100101 Firefox/153.0

The Bugbug bot thinks this bug should belong to the 'Core::Widget: Cocoa' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Widget: Cocoa
Product: Firefox → Core

Could you run mozregression to see when this started happening? You can either choose to use the GUI tool, or simply run these three commands in a Terminal window:

sudo easy_install pip
sudo python3 -m pip install -U mozregression --ignore-installed
mozregression

A number of Firefox versions will open in succession to narrow down when this started occurring. Simply type "good" or "bad" in Terminal based on whether or not a build reproduces the bug. Once finished, please post the output from the last run. It should give a last good and first bad revision as well as a link to look at the changesets in that range. Thank you!

Severity: -- → S3
Flags: needinfo?(rebop)

I can tell you I use 140ESR and it works as expected. I downloaded and installed 153 to be ready for 153ESR with all my settings and changes. I now have it as desired with only two bugs, this which I think is major and a partially hidden enable button in all themes in addons. I did quite a bit of work to get to this point and do not wish to destabilize where I am . And since I do not understand what these regressions will , what they may leave behind, etc, I consider it risky and prefer not to try.

As I mentioned, Firefox 140 ESR does not exhibit this problem. I was able to reproduce this with Themes disabled, in Troubleshooting Mode (all extensions/customizations off), with my_userChrome.css disabled, and with xulstore.json rebuilt fresh — which I belive confirms this is default Firefox behavior in 153.

Flags: needinfo?(rebop)

mozregression uses independent profiles and has never destabilized any of my current settings with my current profile. Unfortunately, since we only have one report of this behavior that I'm aware of (yours), it is highly unlikely that we will be able to make progress on this without your help. I am happy to reopen this bug if you are able to run mozregression, or if you are able to further isolate what might have caused this for you.

Status: UNCONFIRMED → RESOLVED
Closed: 3 months ago
Resolution: --- → INCOMPLETE

Well, it is something totally new to me and I thought I gave more than enough information and how I tested I thought thoroughly for someone else to reproduce. I did not think I would have to start testing with programs I have never used on my mission critical computer.

From what i see appears t be safe and leaves little behind so I shall try it later today when free.

Thank you for giving this a shot. I'm going to reopen the bug and set a need-info for you whenever you get around to it.

Status: RESOLVED → REOPENED
Ever confirmed: true
Flags: needinfo?(rebop)
Resolution: INCOMPLETE → ---

Was about to download and try and a few questions...

Can you tell me what settings I need to set? Would like to be using the GUI. And since my last known good was 140esr and first known bad is 153 about how many builds will I have to test? This will help me plan.

Thanks.

Flags: needinfo?(rebop)

(In reply to rebop@well.com from comment #7)

Was about to download and try and a few questions...

Can you tell me what settings I need to set? Would like to be using the GUI. And since my last known good was 140esr and first known bad is 153 about how many builds will I have to test? This will help me plan.

Since this is rather quick for you to reproduce, I recommend using the default settings and not even worrying about the first good and first bad. I would set aside 10 minutes to test, plus the time it takes to download the builds, which it will do automatically for you.

And again.

platform: macOS-15.7.9-arm64-arm-64bit
python: 3.12.4 FROZEN (64bit)
mozregression: 7.3.0
message: IndexError: list index out of range
traceback: File "mozregui/bisection.py", line 93, in check_merge
File "/var/folders/54/9q8n2q756fscbzfmlcw_yfvh0000gn/T/_MEI1T1B2S/mozregression/bisector.py", line 279, in handle_merge
most_recent_push = self.build_range[1]
~~~~~~~~~~~~~~~~^^^
File "/var/folders/54/9q8n2q756fscbzfmlcw_yfvh0000gn/T/_MEI1T1B2S/mozregression/build_range.py", line 93, in getitem
return self._future_build_infos[item].build_info
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^

And was running slow, each build a week apart give or take.

That crash looks like a bug in mozregression itself rather than anything you did wrong. It also does not mean the run was wasted: mozregression prints the result of the nightly search before it starts the step that crashes, so the part we need is most likely already in the log window.

Let's try this as follows:

  1. If a mozregression window is still open, click into the log pane at the bottom, press Cmd+A, then Cmd+C, and paste the result here. That may be all we need.

  2. If both windows are already closed, please run it once more with a single change: set the last known good date to 2025-05-20 and leave the first known bad date at today's date. The default good date is one year back, which is already past Firefox 140 and can lead to a wrong answer.

  3. Answer "good" when the toolbar stays correct after entering and exiting fullscreen, "bad" when it does not.

  4. It will most likely crash again at the end with the same "list index out of range" message. Copy the log pane at that point and paste it here.

If you would rather not run mozregression again, here is an alternative that cannot crash. Please try these three builds, one at a time, and tell me which are good and which are bad:

https://archive.mozilla.org/pub/firefox/releases/143.0/mac/en-US/Firefox%20143.0.dmg
https://archive.mozilla.org/pub/firefox/releases/147.0/mac/en-US/Firefox%20147.0.dmg
https://archive.mozilla.org/pub/firefox/releases/150.0/mac/en-US/Firefox%20150.0.dmg

For each one: open the .dmg, drag "Firefox" onto your Desktop, then start it from a Terminal window with a throwaway profile so your own profile is not touched:

~/Desktop/Firefox.app/Contents/MacOS/firefox --no-remote --profile /tmp/fxtest

Quit it, delete the copy from your Desktop, and repeat with the next one.

Flags: needinfo?(rebop)
Flags: needinfo?(rebop)
Flags: needinfo?(rebop)

I've reinstalled mozregression and will try again later today. I never got any good reults, but it started at Dec 25 and crashed maybe at July 25. Seems to me I need to work up from known good which was 140ESR?

I shall try.

And if it succeeds. Where do I copy what to post to assist you folks in know wing where the issue started?

Flags: needinfo?(rebop)

Yes, please set the good end back so that it covers Firefox 140.

  1. In the wizard, set the last known good date to 2025-05-20 and leave the first known bad date at today's date.

  2. Answer "good" when the toolbar stays correct after entering and exiting fullscreen, "bad" when it does not.

  3. When it stops, whether it finishes or crashes, click into the log pane at the bottom of the mozregression window, press Cmd+A, then Cmd+C, and paste everything here in bugzilla.

The lines we are after say "Last good revision" and "First bad revision", but please paste the whole log rather than hunting for them.

Flags: needinfo?(rebop)
Attached file 1000 line log —

Good news / bad news....

Good news is I changed this time to 64bit and dod not crash. Bad news, it never found a good build! Not sure why we are not starting with 140 as that works. Wish I could do a zoom with screen share on a working and failing version. Its 100% repeatable.

Here comes the log....

Hopefully that worked. it asked to summarize and it would attach the log here.

Flags: needinfo?(rebop)

Humble apologies:

Update — root cause identified, not a core Firefox bug

Following up on this report: after further investigation (bisecting extensions, prefs, and CSS independently), I've isolated the actual cause to a customization rule in my own userChrome.css setup (from the Aris-t2/CustomCSSforFx project), not core Firefox behavior as I originally suspected.

The offending rule:

css
#main-window:is([tabsintitlebar],[customtitlebar])[sizemode="fullscreen"] #navigator-toolbox #PanelUI-button {
visibility: collapse;
}

This rule collapses the app-menu (#PanelUI-button) specifically when sizemode="fullscreen" is set on macOS. Commenting it out fully resolves the fullscreen malformation I reported. My guess is that visibility: collapse on a toolbar-embedded button triggers a layout reflow that collides with Firefox's own toolbox restructuring during the fullscreen transition (Cocoa-specific), producing the malformed layout.

This likely also explains why mozregression couldn't isolate a single bad build — the underlying transition timing this interacts with appears to be present across a wide range of builds, not introduced in one specific regression window.

Apologies for the noise — my earlier testing (Themes disabled, Troubleshoot Mode, xulstore rebuild) didn't catch this because none of those steps happened to isolate userChrome.css specifically from other customization layers. Feel free to close this as INVALID/WORKSFORME, or downgrade priority since it's a self-inflicted CSS conflict rather than a Firefox regression. Happy to provide more detail if the Cocoa widget behavior itself (reflow-on-collapse during fullscreen transition) is still of interest.

Thank you for letting us know!

Status: REOPENED → RESOLVED
Closed: 3 months ago → 2 months ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: