Open Bug 2046896 Opened 5 months ago Updated 19 days ago

Rectangle.app now impacts firefox performance.

Categories

(Core :: Disability Access APIs, defect)

defect

Tracking

()

People

(Reporter: mgaudet, Unassigned)

References

(Blocks 1 open bug)

Details

STR:

  1. Install https://rectangleapp.com/
  2. mozregression --launch 2026-03-11
  3. run https://www.browserbench.org/Speedometer3.1/ (potentially repeat a few x to get a note of your range of scores) and note score
  4. Launch Rectangle
  5. run SP3 again and note score -- no real noticeable impact
  6. Quit Rectangle
  7. mozregression --launch 2026-06-11
  8. Run SP3, note scores
  9. Launch Rectangle
  10. Run SP3 note scores

Expected: Scores don't vary largely
Actual: knocks 20% off score.

I had previously observed this for Chrome (see related http://github.com/rxhanson/Rectangle/issues/1751), but previously Firefox was immune.

It appears the difference is accessibility being enabled; what's unclear to me is why this was not the case in March.

Component: Other → Disability Access APIs
Product: External Software Affecting Firefox → Core

Bug 1997441 or bug 2028944 could be relevant. Either way, though, this could only happen if something on your system is querying Firefox accessibility. Those bugs deal with cases where a client queried accessibility, but Firefox failed to respond correctly. So, yes, accessibility will be instantiated by certain accessibility queries when it wasn't previously, but the fact that it wasn't previously was a bug that broke users.

This comment on the GitHub issue you mentioned suggests that Rectangle doesn't itself enable accessibility, but rather only re-enables accessibility if something else already enabled it. Assuming that's correct, then there must be another accessibility client on your system that is querying Firefox. Do you have any idea what that might be?

Blocks: a11yperf
Severity: -- → S3
Flags: needinfo?(mgaudet)

In my accessibility list I have the following enabled:

  • Handy
  • Keyboard Maestro
  • Keyboard Maestro Engine
  • Rectangle

In the list, but disabled,

  • 1Password
  • HazeOver
  • MonitorControl
  • OBSBOT Centre
  • zoom.us

So as an experiment: I incrementally disabled all of them; it did not change impact of rectangle. So at this point the only one with Accessibility access is rectangle itself.

Not sure if there's other potential ways this could get impacted tho.

Flags: needinfo?(mgaudet)

Can I clarify: when you disabled them, did you restart Firefox before trying the next test? The Firefox accessibility engine can't currently shut itself down after an OS client pokes it. Doing that is something we've talked about, but it's quite risky because it can break legitimate clients that happen to go idle for a while.

Strongly suspect I did not.

I will revisit this when I get some time -- self ni? to make sure I don't drop this.

Flags: needinfo?(mgaudet)

Ok, so I re-ran the experiment with only Rectangle.app enabled in "Privacy and Security > Accessibility", and saw the same behaviour (on same build). So as far as I know the aforementioned comment in the Rectangle repo is probably wrong; Notably I also see this behaviour purely turning Rectangle on -- no resizing actually happens at all.

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