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

Bugfix FXIOS-8027- PayPal not working #24609

Merged
merged 3 commits into from
Feb 6, 2025

Conversation

yoanarios
Copy link
Contributor

📜 Tickets

Jira ticket
Github issue

💡 Description

Continue the work done in #24497

  • I've added unit test for Paypal user agent to cover the changes done in the previous PR
  • Block createWebViewWith if it is Paypal popup because the logic we have creates a new blank page tab because WKNavigationAction request is empty.
  • Reorganize functions

📝 Checklist

You have to check all boxes before merging

  • Filled in the above information (tickets numbers and description of your work)
  • Updated the PR name to follow our PR naming guidelines
  • Wrote unit tests and/or ensured the tests suite is passing
  • When working on UI, I checked and implemented accessibility (minimum Dynamic Text and VoiceOver)
  • If needed, I updated documentation / comments for complex code and public methods
  • If needed, added a backport comment (example @Mergifyio backport release/v120)

@yoanarios yoanarios requested a review from lmarceau February 6, 2025 16:51
@yoanarios yoanarios requested a review from a team as a code owner February 6, 2025 16:51
@yoanarios
Copy link
Contributor Author

Simulator.Screen.Recording.-.iPad.Pro.11-inch.M4.-.2025-02-06.at.11.54.14.mp4

Paypal popUp is now shown same as on iPhone as a Popup in the tab where the button was pressed

…nsions/BrowserViewController+WebViewDelegates.swift

Co-authored-by: lmarceau <[email protected]>
@yoanarios yoanarios merged commit 00d9b09 into main Feb 6, 2025
10 checks passed
@yoanarios yoanarios deleted the yrd/FXIOS-11230-paypal-investigation branch February 6, 2025 19:18
type: WKMediaCaptureType,
decisionHandler: @escaping (WKPermissionDecision) -> Void) {
// If the tab isn't the selected one or we're on the homepage, do not show the media capture prompt
guard tabManager.selectedTab?.webView == webView, !contentContainer.hasLegacyHomepage else {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Minor nitpick: this should probably be an identity check (===). Offhand I think == will just fall into the default isEqualTo: for WKWebView which presumably just compares pointers anyway, but it would make sense to be explicit.

@yoanarios
Copy link
Contributor Author

@Mergifyio backport release/v136

Copy link
Contributor

mergify bot commented Feb 7, 2025

backport release/v136

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Feb 7, 2025
Co-authored-by: lmarceau <[email protected]>
(cherry picked from commit 00d9b09)
yoanarios added a commit that referenced this pull request Feb 7, 2025
Bugfix FXIOS-8027- PayPal not working (#24609)

Co-authored-by: lmarceau <[email protected]>
(cherry picked from commit 00d9b09)

Co-authored-by: yoanarios <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants