Closed vsanjay85 closed 6 months ago
I believe this relates to https://github.com/mozilla-mobile/firefox-ios/issues/15718
I believe this relates to #15718
They do seem to be related, although #15718 assumes that this behavior is only for Youtube, whereas this is the default behavior for all apps.
I'm also seeing this bug.
Me as well
Since the recent versions of Firefox for iPadOS many links just open to about:blank. Especially PayPal links on checkout, e.g. trying to start (to pay for) a Tidal subscription. Also "download image" at imgflip.com shows this behavior. Gotten worse the last weeks. 😢
Not just iPad, also on iOS. The link goes in the URL bar but doesn’t load. Selecting ‘reload’ does not load the page, but selecting the link and then tapping ‘Go’ does load the page.
@lmarceau
Investigated this issue for a while, and...
Based on the current code version, that "about:blank" page was/is intended and also someone left an important comment related to this behaviour.
"
// If the page uses window.open()
or [target="_blank"]
, open the page in a new tab.
// IMPORTANT!!: WebKit will perform the URLRequest
automatically!! Attempting to do
// the request here manually leads to incorrect results!!
"
BUT
In order to open a link for example via Youtube (native app), currently Firefox open Youtube app but also a empty page (blank page). To avoid this behaviour, we can check first if the app (e.g. Youtube) is installed, using "UIApplication.shared.canOpenURL" method.
If "Yes" we can open the native app using "UIApplication.shared.open" else continue to the current implementation. (which is working fine if no native app is installed)
A short mention here: every native app (e.g. Youtube, Instagram) that we want to be covered by this approach should be added to the "LSApplicationQueriesSchemes" list.
"LSApplicationQueriesSchemes" list already have apps like: googlegmail and whatsapp.
➤ Norberto Andres Furlan commented:
Alina Moldovan Andrei Bodea I changed the priority of this issue. We have a lot of reports from users about this happening more frequently on 124 than on previous versions and I want to make sure we are fixing it for the next weekly release.
➤ Andrei Bodea commented:
Hi, thank you Norberto Andres Furlan on what version is this issue fixed? I understand the Fix version: weekly release there but might be worth mentioning in a comment what version was this issue fixed first.
➤ Alina Moldovan commented:
Validated this using v9000 (40010) and iPhone 14+ (16.0.3). Not able to reproduce the original issue ("about:blank" page) but I found that the current behavior is a bit defect than the old one
Steps:
Expected: Google search results are visible
Actual: The Instagram page you already loaded in Instagram app is loaded on Firefox also.
Adding two videos:
old behavior 122.0 (37590)
new behavior v9000 (40010)
OLD Behavior
!Skype_Video10.mp4|width=41.66666666666667%!
NEW Behavior
!Skype_Video9.mp4|width=886,height=1920!
Norberto Andres Furlan Alexandru Farcasanu
➤ Alexandru Farcasanu commented:
I tested on the main branch that contain this fix too.
As Alina Moldovan , I can reproduce this issue but also I removed from the code, the implementation for this ticket and the problem still be there. That means, something else, changed that behaviour and is not related to code added for this ticket.
I will get the answer as soon as possible and I will come here with an update.
➤ Norberto Andres Furlan commented:
Nishant Bhasin maybe the fixes we pushed on v124 also affected this behavior.
➤ Alexandru Farcasanu commented:
Norberto Andres Furlan
After more investigations, this behaviour is related to this ticket: https://mozilla-hub.atlassian.net/browse/FXIOS-7586 ( https://mozilla-hub.atlassian.net/browse/FXIOS-7586|smart-link )
Sorin Paraipan is taking a look on it.
➤ Andrei Bodea commented:
Verified as fixed on v124.2 (38968) with iPhone 15 Pro (17.3). We tried with the following apps: Gmail, Amazon, HBO MAX, Reddit, Snapchat, Skype, OLX, Books App, Weather App, notepad, and many other news sites.
Please note that we were not able to reproduce this issue anymore, but we will keep looking into the deep links / external links issues.
For me: fixed for virtually all websites. Exception found: PayPal payment after a Steam purchase. Still opens blank tabs, 3-5 tries necessary before the PP website opens and payment can be completed.
Steps to reproduce
Expected behavior
Actual behavior
Device & build information
Notes
This behavior is not limited to one or two apps. This happens regardless of the app I'm redirected to, Youtube, Costco, Target, etc.
I do NOT see this in Safari. I DO see a similar behavior in Chrome
It appears that the browser is opening the link in a browser tab first, and then checking if a locally installed app exists. If this check could happen without opening the link in another tab, that would likely fix it.
Attachments:
┆Issue is synchronized with this Jira Task