Open Bug 1799681 Opened 3 years ago Updated 3 years ago

Bringing firefox to the foreground when another application has focus results in a short freeze

Categories

(Core :: Widget: Cocoa, defect, P3)

Firefox 106
defect

Tracking

()

UNCONFIRMED

People

(Reporter: info, Unassigned)

Details

Attachments

(2 files)

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

Steps to reproduce:

  • Run firefox on mac
  • Leave running for a long time
  • Press command+tab to switch to other application
  • Press command+tab to switch back to firefox

(see attached profile)

Actual results:

Firefox freezes for a few seconds before becoming interactive.

Expected results:

Switching firefox to the foreground should be near instant

The entire freeze time (1 second) seems to be spent on the main thread in [NSApplication setMainMenu:]

Hi Max,

I wasn't able to reproduce this issue on MacOS 11.6, however, I'm going to set a component in order to get this looked at by the development team.

Meanwhile, could you please check if this also occurs on Firefox Nightly?
You can get it from here: https://www.mozilla.org/en-US/firefox/108.0a1/releasenotes/

Thanks!

Component: Untriaged → Widget: Cocoa
Flags: needinfo?(info)
Product: Firefox → Core

I'll leave nightly open for a while to see if I can reproduce it there.

It might have something to do with the fact that my mac has a notch and runs raycast. Both of which use up a lot of menu bar space.

Severity: -- → S3
Priority: -- → P3

The hang on nightly seems to be less severe. Not sure if that's due to any changes or due to me using it less.

Attached is the profile for switching focus for nightly. It also spends a lot of time in [NSApplication setMainMenu:]

Flags: needinfo?(info)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: