[toolbar redesign] update Custom tab toolbar action buttons phase 1
Categories
(Firefox for Android :: Toolbar, task, P1)
Tracking
()
People
(Reporter: mavduevskiy, Assigned: harrisono)
References
Details
(Whiteboard: [fxdroid])
Attachments
(1 file, 3 obsolete files)
512.99 KB,
image/png
|
Details |
Design could be found here
Reporter | ||
Updated•2 years ago
|
Reporter | ||
Updated•2 years ago
|
Reporter | ||
Updated•2 years ago
|
Reporter | ||
Updated•2 years ago
|
Reporter | ||
Updated•2 years ago
|
Updated•2 years ago
|
Updated•1 year ago
|
Assignee | ||
Updated•1 year ago
|
Assignee | ||
Comment 1•1 year ago
|
||
Bug 1862102 - Add Share and Reload buttons to CustomTabsToolbarFeature
- browser-toolbar
- Added a new method for
addReloadButton
and new param forreloadListener
to CustomTabsToolbarFeature, see Bug 1862102.
- Added a new method for
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Reporter | ||
Updated•1 year ago
|
Updated•1 year ago
|
Reporter | ||
Comment 2•1 year ago
|
||
Updated•1 year ago
|
Comment 3•1 year ago
|
||
Comment on attachment 9397513 [details]
Bug 1862102 - Fix toolbar actions overlapping each other
Revision D207955 was moved to bug 1889240. Setting attachment 9397513 [details] to obsolete.
Updated•1 year ago
|
Comment 4•1 year ago
|
||
Setting toolbar redesign's Nightly blockers to priority P1.
Assignee | ||
Updated•1 year ago
|
Assignee | ||
Comment 5•1 year ago
|
||
Updated•1 year ago
|
Assignee | ||
Comment 6•1 year ago
|
||
This screenshot shows the Chrome Custom Tab implementation for this Youtube Custom Tab.
note that the "share" button has been enabled by default. (the "showShareButton" flag is not set to true in the CustomTabIntent
config for this intent).
Assignee | ||
Comment 7•1 year ago
|
||
I know there has been some concern about adding the Share button by default to the Custom Tabs Toolbar when there is a field in CustomTabsIntent
that asks for a share button to be shown. I think that is ok to add the Share button by default because Google Chrome already does this and Google is the owner of Android. If they are doing something (barring crazy privacy violations), I think we can feel safe doing it too.
See screenshot attached above for Chrome's implementation.
Assignee | ||
Comment 8•1 year ago
|
||
Unfortunately today I have a bit of a problem to bring forward.
after a discussion with several other engineers, we have determined that there is a spec problem with implementing the “Share” button by default for Custom Tabs on Android.
https://developer.chrome.com/docs/android/custom-tabs/guide-interactivity#enable_the_default_share_action
According to this developer document, apps are able to implement their own share button with their own logic and limitations to Custom Tabs and this can result in two share buttons being visible on the toolbar.
https://developer.android.com/reference/androidx/browser/customtabs/CustomTabsIntent#SHARE_STATE_OFF()
There is also this field in the Custom Tab config that can set to “never show share” which our current implementation does respect but a default “share” button on the custom tabs toolbar would not follow the spec.
Assignee | ||
Updated•1 year ago
|
Updated•1 year ago
|
Comment 9•1 year ago
|
||
Harrison, is this still expected to be done in Phase 1? (as a blocker for landing in Nightly?)
Assignee | ||
Comment 10•1 year ago
|
||
Yes, this will be closed when this PR is merged.
Assignee | ||
Updated•1 year ago
|
Description
•