mozilla-mobile / firefox-ios

Firefox for iOS
Mozilla Public License 2.0
12.14k stars 2.9k forks source link

PayPal not working #17911

Open data-sync-user opened 8 months ago

data-sync-user commented 8 months ago

“‘Pay with PayPal’ functionality on websites is broken for me and has been across updates of both Firefox and iPadOS for as long as I can remember at this point. I’m using an iPadPro running iOS 16.7.2 with Firefox for iOS version 120.4 (36613). When I’m checking out at e-commerce sites (e.g., J Crew), and I click on the PayPal button when selecting a form of payment, a new tab opens, but it’s literally blank — nothing even tries to connect or load. This happens across e-commerce sites. It doesn’t happen with Firefox on my PC/Windows laptop or on my iPad with other browsers (Chrome, Safari). I have tried everything that I can uninstall/reinstall, deactivate, or toggle, and nothing seems to fix this. I have cross-site tracking disabled in iOS.”

from https://support.mozilla.org/en-US/questions/1433909

┆Issue is synchronized with this Jira Bug

data-sync-user commented 8 months ago

➤ Laurie Marceau commented:

WebKit calls the WKUIDelegate method createWebViewWith ( https://developer.apple.com/documentation/webkit/wkuidelegate/1536907-webview ) whenever there’s a popup window opened from JS, for example with window.open(). This enables us to handle popup window creation. There seems to be some mechanism either we’re missing or need to update so the URLRequest can be handled by WebKit, as commented here ( https://github.com/mozilla-mobile/firefox-ios/blob/0a104d00ca111300584bd8d271750fec7030b89a/firefox-ios/Client/Frontend/Browser/BrowserViewController/Extensions/BrowserViewController%2BWebViewDelegates.swift#L34-L36 ).

data-sync-user commented 7 months ago

➤ Nishant Bhasin commented:

I tried looking into it but wasn’t able to fix it with something that I had in mind.

Going to try a few more things before giving my final verdict

data-sync-user commented 7 months ago

➤ Nishant Bhasin commented:

This is working, I tried on iOS 16.4 and 17.0

!Screenshot 2024-01-22 at 5.09.34 PM.png|width=171,height=348!

Cpt-KeksMonster commented 5 months ago

I can only support this, PayPal can only be used with Chrome or Safari etc. on iPad as opening PP at a checkout only leads to blank tabs. E.g. Tidal subscription, at then end of the process payment via PayPal and you're stuck.

Unfortunately many, many links on the recent iPadOS 17.4 with FF 123.4 lead to blank pages. e.g. downloading an image on imgflip.com and many more websites. Sometimes trying to open the link multiple times helps. When I tested it a moment ago a head to select the same link 3 times. 2 times a white tab about:blank appeared and on the third try the target's link was finally loaded.

Unfortunately I cannot see the Screenshot in the posting above mine. It only shows the code syntax but not the image itself.

Update April, 15th 2024: Yes, the latest updates fixed the problem that virtually all links opened to a blank tab and only worked if the link was clicked 3-4 times.

Unfortunately this doesn't apply for PayPal checkout. Payment link to PP after e.g. a purchase at Steam still opens blank tabs but at the third or fourth time trying the correct PP address finally opens and payment can be completed.

abodea commented 3 months ago

Hello, @Cpt-KeksMonster I was able to make a purchase without issues on PP too. I did try this on v126.1 (41973) and v127 (42231) with iPhone 15 Pro (17.4.1). Can you please add a video with the issue?

Cpt-KeksMonster commented 2 weeks ago

Hello. Experienced it again multiple times this week on different sites. iOS FF 129.2, PayPal link at checkout leads to about:blank. No matter how often I try. In earlier versions this bug a workaround was to click the link 4, 5, 6 times and then it worked sometimes.

Example: wirbelwohl.com

https://github.com/user-attachments/assets/a2f4ca01-508d-4635-a9a0-9cabac109a73