Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Unable to use Apple Pay in Safari when Copilot is running #508

Open
2 tasks done
NSFatalError opened this issue May 9, 2024 · 2 comments
Open
2 tasks done
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@NSFatalError
Copy link

Before Reporting

  • I have checked FAQ, and there is no solution to my issue
  • I have searched the existing issues, and there is no existing issue for my issue

What happened?

I found out that Copilot interferes with Apple Pay confirmation sheet in Safari. Touch ID input (or password input if Touch ID is disabled) disappears from the view, making it impossible to complete the payment. Quitting Copilot solves the issue immediately.

When I was trying to understand why it happens, I found out that Touch ID input disappears if the Apple Pay sheet is in any way obscured by another window or screen boundary - you can see this happening in the attached video.

Google Drive link to video (even downscaled was to big to fit as attachment on Github): https://drive.google.com/file/d/18a7UAO28YXAwfzZaqztZZq5I2CAkZW64/view?usp=sharing

How to reproduce the bug.

Open a website with Apple Pay functionality (https://applepaydemo.apple.com is great for debugging this), and try to complete the payment while Copilot and Xcode are running.

Please do note that while the issue occurs often, it doesn't occur always. Sometimes Touch ID input is visible despite Copilot and Xcode running in the background. I did not find specific pattern that triggers the issue, but it shouldn't be hard to reproduce though.

Relevant log output

No response

macOS version

14.4.1 (23E224)

Xcode version

15.3 (15E204a)

Copilot for Xcode version

0.32.3

@NSFatalError NSFatalError added the bug Something isn't working label May 9, 2024
@intitni intitni added the help wanted Extra attention is needed label May 9, 2024
@intitni
Copy link
Owner

intitni commented May 9, 2024

Sadly, Apple Pay in Safari is not available in my country, I can't even add a card to my Mac.

If anyone wants to help debugging this, the app maintains several windows and all of them can be found in /Core/Sources/SuggestionWidget/WidgetWindowsController.swift.

@intitni
Copy link
Owner

intitni commented May 16, 2024

I have created this project that only contains the window part of the app.

For anyone interested in helping debugging this issue and but don't want to build the whole Copilot for Xcode project, you can use that project instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants