Closed Bug 1862102 Opened 2 years ago Closed 1 year ago

[toolbar redesign] update Custom tab toolbar action buttons phase 1

Categories

(Firefox for Android :: Toolbar, task, P1)

All
Android
task

Tracking

()

RESOLVED FIXED

People

(Reporter: mavduevskiy, Assigned: harrisono)

References

Details

(Whiteboard: [fxdroid])

Attachments

(1 file, 3 obsolete files)

Design could be found here

Blocks: 1859856
Depends on: 1862100, 1862101
Priority: -- → P2
Severity: -- → N/A
Blocks: 1862107
No longer depends on: 1862100, 1862101
Blocks: 1862101
No longer blocks: 1859856, 1862107
Whiteboard: [fxdroid]
Severity: N/A → S2
Assignee: nobody → hoglesby
Status: NEW → ASSIGNED

Bug 1862102 - Add Share and Reload buttons to CustomTabsToolbarFeature

  • browser-toolbar
    • Added a new method for addReloadButton and new param for reloadListener to CustomTabsToolbarFeature, see Bug 1862102.
Attachment #9394009 - Attachment description: WIP: Bug 1862102 - Add Share and Reload buttons to CustomTabs → Bug 1862102 - Add Share and Reload buttons to CustomTabsToolbarFeature
Attachment #9394009 - Attachment description: Bug 1862102 - Add Share and Reload buttons to CustomTabsToolbarFeature → Bug 1862102 - Add Share and Refresh buttons to CustomTabsToolbarFeature
Attachment #9394009 - Attachment description: Bug 1862102 - Add Share and Refresh buttons to CustomTabsToolbarFeature → Bug 1862102 - Add Share and Reload buttons to CustomTabsToolbarFeature
Blocks: 1859856
No longer blocks: 1862101
Attachment #9397513 - Attachment description: WIP: Bug 1862102 - Fix toolbar actions overlapping each other → Bug 1862102 - Fix toolbar actions overlapping each other

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.

Attachment #9397513 - Attachment is obsolete: true

Setting toolbar redesign's Nightly blockers to priority P1.

Priority: P2 → P1
Depends on: 1897811
Summary: [toolbar redesign] update Custom tab toolbar → [toolbar redesign] update Custom tab toolbar action buttons
Attachment #9394009 - Attachment is obsolete: true

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).

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.

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.

Depends on: 1899394
Summary: [toolbar redesign] update Custom tab toolbar action buttons → [toolbar redesign] update Custom tab toolbar action buttons phase 1
Depends on: 1899409
Attachment #9403325 - Attachment is obsolete: true

Harrison, is this still expected to be done in Phase 1? (as a blocker for landing in Nightly?)

Flags: needinfo?(hoglesby)

Yes, this will be closed when this PR is merged.

Flags: needinfo?(hoglesby)
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: