kasper / phoenix

A lightweight macOS window and app manager scriptable with JavaScript
https://kasper.github.io/phoenix/
Other
4.39k stars 128 forks source link

AXEnhancedUserInterface attribute issues discovered using 1Password 8 #301

Open tombell opened 2 years ago

tombell commented 2 years ago

Since Stark and Phoenix are quite similar, I thought I'd share something I've come across with Stark since upgrading to 1Password 8 for mac.

I noticed, after using the 1Password 8 extension for Chrome to log into a site, then using my window manager to move/size the window, it acted strangely. I can consistently reproduce this by closing Chrome, filling in a password, and trying again. I decided to download and setup Phoenix with similar key binds and positions/sizes to see if it was just my implementation, however Phoenix appears to suffer the same way.

This tweet containing a video showing off the weirdness. I've also send an email to 1Password support to see if they can share any light on it.

The 1Password 8 update requires accessibility permissions now, so I suspect they're doing something weird to talk to Chrome, and I'm unsure how to figure out what if anything is going on.

Thought I'd report just incase others start seeing similar behaviour with 1Password 8 for mac being released this week.

tombell commented 2 years ago

After some more digging last night, this isn't to do with the Chrome extension as I first thought.

It's due to the AXEnhancedUserInterface attribute being set on the application, and causing the repositioning and resizing issues.

I'm working on fixing this in Stark in this draft MR, I believe Phoenix will be able to use the similar calls to fix this as well.

Kauhsa commented 2 years ago

Yeah, I have a similar issue in Google Chrome in general, and I'm not using the 1Password extension for it. I tried to fix this in #310.