Fenix: Tabs sent from another Firefox open in app even with "Open links in app" set to "No"

Created on 16 Jul 2020  ·  7Comments  ·  Source: mozilla-mobile/fenix

Steps to reproduce

Set "Open links in app" to "No"
Send a tab from another Firefox instance using the same Firefox account to the Fenix instance
Click on the notification received by Fenix on the phone

Expected behavior

The tab should open in Fenix

Actual behavior

The tab opens in the app (tested with links to Github and with the Github app)

Device information

  • Android device: Redmi Note 7 Android 9
  • Fenix version: #21960614
OpenInApp SendTab feature request 🌟

Most helpful comment

Yes, that was it I have the same behaviour after setting Open by default to "ask every time". The OS is dealing with the shared link before it reaches Fenix itself.

All 7 comments

Hi, I have tested this with "Open links in apps" both enabled and disabled and I get prompt to open either in Firefox or GitHub app. Can you tell me if the preference of Android's "Open by default" is set to "ask every time" or something else?

Screenshot_20200716-141629.png

Yes, that was it I have the same behaviour after setting Open by default to "ask every time". The OS is dealing with the shared link before it reaches Fenix itself.

@klint

The OS is dealing with the shared link before it reaches Fenix itself.

Thanks for making that clear. I sensed something _was_ unusual with the way it was behaving.

But, here's what going on with the sent link;

For example, let's take GitHub links. I send them from my laptop and I open them on my phone.

The behaviour when Fenix is backgrounded and I'm at the Android's homescreen;

I tap the link that's in the Android's notification tray then the Android system suggest me to open that link in the GitHub or Fenix

The behaviour when I'm using Fenix;

I tap the link that's in the Android's notification tray and Fenix opens them in the browser.

This is the same behaviour even when the Fenix's "Open links in app" is enabled or disabled.

I mean, isn't this behaviour best of both worlds.


Let's say, if Fenix's behaviour is modified and Fenix ends handling all the links in itself when "Open links in apps" is disabled then;

In both cases when I'm at the homescreen and using Fenix, If Fenix ends up handling the links and then users will lose the choice to open that link in the app or GitHub.

And users will always have the choice to select the default behaviour to open the link in either the app or browser through Android's "Just once" and "always" buttons and currently I think that is not working due to this bug https://github.com/mozilla-mobile/fenix/issues/12624


Currently I'm in a bit of confusion as if the users who have disabled the Fenix's "Open in app preference" strictly want _evey_ link to be opened in Fenix and want to bypass the even Android system preferences or they want it to be _a little_ more flexible. As the link is currently not yet in the Fenix itself but in the Android's notification tray and I think we should let the Android system handle that link with its own preference and UX behaviour and If we modify it, it may cause confusions to users; even for the users who have disabled "Open links in app" preference in Fenix.

@rocketsroger please let me know your thoughts on this. And sorry for the continuous tags since yesterday as I think the bug/comment may get lost in all other comments/issues and I want my thoughts to it reach the developers when they are developing and designing it.

Thanks! :)

Reproduced the issue from description on Google Pixel 3 XL (Android 9) and Samsung Galaxy S9 (Android 8) with Firefox Beta 80.0.0-beta.2 and Firefox Nightly 7/30.

  1. Sent a youtube tab from desktop or a different phone to another one.
  2. Tap on the notification with the received tab to the dedicated browser.

Result: Instead of having the browser open the tab. The youtube app will open.

This was the original intended behaviour when we setup notification support for Send Tab so that you could allow the default app to handle the send tab notification.

IIRC, this was the same fennec behaviour too.

I'm going to convert this into a feature request for that reason to see how we feel about this first. Note that, not all URIs sent from send tab can be handled by the browser.

Note that, not all URIs sent from send tab can be handled by the browser.

Could you please elaborate on why this is the case? In my case I'm sending Google Play store URLs from desktop to mobile and I want them to be opened in the browser - that's why I disabled "open links in apps".
So the expectation is that no link will be opened in an app, unless I manually select "Open in app" from the settings menu.

Maybe, with "open links in apps" disabled Firefox mobile could rewrite all received URIs to something like firefox://https://.... (In case that's even necessary for "open links in apps" to work as expected)

This was the original intended behaviour when we setup notification support for Send Tab so that you could allow the default app to handle the send tab notification.
[...]
I'm going to convert this into a feature request

If the intended behaviour was this, then the bug is the intended behaviour itself.

When I send a tab to Fenix, it is meant for Fenix not for Focus nor for Chrome nor for any third party default browser, period.
Anything else is a bug in design that is leaking my potential private tab link to a third party default browser.

When I send tab to desktop and ios, the tab is received by the Mozilla Firefox, not by the default browser on desktop or iOS

See my frustrating experience in duplicate issue #17173

Was this page helpful?
0 / 5 - 0 ratings