fenix icon indicating copy to clipboard operation
fenix copied to clipboard

[Meta] Custom Tab Support

Open bbinto opened this issue 7 years ago • 13 comments

Why/User Benefit/User Problem

As a user I want to be able to tap on a link within an app, launch a site with my default browser (Fenix) without leaving the app, and close the site to return to the app.

What / Requirements

~~UI mock~~ups ~~Android Component: https://github.com/mozilla~~mobile/android-components/issues/1398

Acceptance Criteria (how do I know when I’m done?)

-Customizable tab allowing to add toolbarcolour and menu items. ~~Allow for pre~~starting Fenix and pre-fetching content for faster loading.

┆Issue is synchronized with this Jira Task

bbinto avatar Jan 21 '19 19:01 bbinto

The original link was pointing to a sub-task for an r-b user story (which is similar-ish to a meta): https://github.com/mozilla-mobile/reference-browser/issues/137

jonalmeida avatar Jan 22 '19 22:01 jonalmeida

Need to chat with UX (@lime124) if we need any specific UX for this or can we use what A/C has done, @st3fan should have a bit more information

bbinto avatar Jan 23 '19 15:01 bbinto

It is best to look at the Reference Browser to see the current UI to find out if that is adequate for a first release. There are probably some limitations about what we can do UI-wise I think, so we definitely need to get together to look at current and wanted designs.

st3fan avatar Jan 23 '19 20:01 st3fan

Feature parity to Focus (minus the issues)

bbinto avatar Jan 24 '19 17:01 bbinto

UX to confirm how this will work for sessions (cc @lime124 )

bbinto avatar Jan 24 '19 17:01 bbinto

It is best to look at the Reference Browser to see the current UI to find out if that is adequate for a first release. There are probably some limitations about what we can do UI-wise I think, so we definitely need to get together to look at current and wanted designs.

When I try and use the Reference Browser for this it just loads the link in the browser. Not a Custom Tab.

@st3fan am I doing something wrong?

shorlander avatar Jan 25 '19 21:01 shorlander

@shorlander Sorry about that, Custom Tabs hasn't landed in the Reference Browser because of an integration bug that I'm currently looking into (see: https://github.com/mozilla-mobile/reference-browser/issues/487).

jonalmeida avatar Jan 26 '19 03:01 jonalmeida

@shorlander Custom Tabs has landed in R-B so feel free to have a look.

jonalmeida avatar Jan 30 '19 16:01 jonalmeida

@shorlander a good app to test this with is the official Reddit app. Custom Tabs should open with a blue location bar. Another app where this works well is GMail, which should open up a tab with a red location bar.

I don't think Twitter properly supports this - it seems links from Twitter are opened directly in the R-B by switching apps not by opening a custom tab.

st3fan avatar Feb 01 '19 14:02 st3fan

As a part of this, let's make sure we test our menu options work properly in a custom tab. Find in page and request desktop site do not function correctly as is.

Breakout ticket: #1007

sblatz avatar Mar 13 '19 16:03 sblatz

I remember @vesta0 mentioning we had some custom tabs issue in Focus, let's make sure we are addressing them / being aware of them for Fenix as well.

bbinto avatar Mar 14 '19 14:03 bbinto

As a part of this, let's make sure we test our menu options work properly in a custom tab. Find in page and request desktop site do not function correctly as is.

I've filed an issue for this: https://github.com/mozilla-mobile/android-components/issues/2387

jonalmeida avatar Mar 18 '19 15:03 jonalmeida

All issues listed under this meta have been implemented.

vesta0 avatar Jul 03 '19 04:07 vesta0