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

Fix popup blocked on Safari #1294

Merged
merged 4 commits into from
May 20, 2024

Conversation

arjun-dureja
Copy link
Contributor

@arjun-dureja arjun-dureja commented May 19, 2024

Summary

  • Safari was blocking the popup from opening whenever a request was sent. This is because the request message is being constructed before the popup is opened in SCWSigner. Safari blocks it because it is not opened immediately after a button is clicked.
    • This PR updates the request method so that it first opens the popup and then constructs the request. This is how it was done before this PR

How did you test your changes?

  • Manually:
Before After
Screen.Recording.2024-05-19.at.6.20.56.PM.mov
Screen.Recording.2024-05-19.at.6.22.55.PM.mov

@arjun-dureja arjun-dureja marked this pull request as ready for review May 19, 2024 22:27
Copy link
Contributor

@nateReiners nateReiners left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, just want to wait for @bangtoven to take a look

Copy link
Contributor

@bangtoven bangtoven left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for opening PR up. @arjun-dureja
happy to pair if you are down.

@@ -62,24 +62,10 @@ export class Communicator {
});
};

/**
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't need to move this

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I moved it down since it's the only private method in the class now

packages/wallet-sdk/src/sign/scw/SCWSigner.ts Outdated Show resolved Hide resolved
@wilsoncusack
Copy link

@bangtoven for sake of speed, maybe you should take over PR with the changes you want? Not sure what else @arjun-dureja has on plate today

@bangtoven bangtoven merged commit 2aaf25a into coinbase:master May 20, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants