Closed Bug 1894512 Opened 2 years ago Closed 1 year ago

[toolbar redesign] Implement long press tab tray button

Categories

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

All
Android
task

Tracking

()

VERIFIED FIXED
129 Branch
Tracking Status
firefox129 --- verified
firefox130 --- verified

People

(Reporter: royang, Assigned: petru)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fxdroid])

Attachments

(7 files)

Implement the same behaviour as the current toolbar when user long press on the tab tray button.
Figma

Severity: -- → N/A
Whiteboard: [fxdroid]

Setting toolbar redesign's Beta experiment blockers to priority P2 until we finish fixing our Nightly blockers.

Priority: -- → P2
Assignee: nobody → petru
Status: NEW → ASSIGNED

A fully Compose implementation that would use a DropdownMenu would not allow positioning
the menu to the bottom of the screen because DropdownMenu use hardcoded margins and paddings.
Following community requests this shortcoming is to be fixed in
https://github.com/JetBrains/compose-multiplatform/issues/1878 after which we can migrate
to a fully Compose implementation.

Attachment #9408588 - Attachment description: Bug 1894512 - Add an AndroidView composable that supports properly positioning a menu r=#android-reviewers → WIP: Bug 1894512 - DRAFT. Add an AndroidView composable that supports properly positioning a menu
Attachment #9408588 - Attachment description: WIP: Bug 1894512 - DRAFT. Add an AndroidView composable that supports properly positioning a menu → Bug 1894512 - Add an AndroidView composable that supports properly positioning a menu r=#android-reviewers
Attachment #9408590 - Attachment description: Bug 1894512 - Add new telemetry for the new long tapped event on the tabs tray button r=#android-reviewers → WIP: Bug 1894512 - Add new telemetry for the new long tapped event on the tabs tray button

Showing what using app's ContextualMenu or Compose's DropdownMenu would give us: a menu opened very high up from the toolbar button, so much so that the relation between the two may be lost and would get to be an ugly visual bug.
This happens because Compose hardcodes a margin and padding to ensure menus do not appear right to the edge of the screen even though that is what we need/want.
Fortunately by popular request this is considered to be fixed - https://github.com/JetBrains/compose-multiplatform/issues/1878 and after this change we'll be able to go with a full Compose implementation.

UX approved

Attachment #9408589 - Attachment description: Bug 1894512 - Have navbar use TabCounterToolbarButtonComposable and FenixTabCounterMenu r=#android-reviewers → Bug 1894512 - Have navbar use ToolbarTabCounterButton and FenixTabCounterMenu r=#android-reviewers
Attachment #9408590 - Attachment description: WIP: Bug 1894512 - Add new telemetry for the new long tapped event on the tabs tray button → Bug 1894512 - Add new telemetry for the new long tapped event on the tabs tray button r=#android-reviewers
Pushed by plingurar@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/64d8e75c61fa Add an AndroidView composable that supports properly positioning a menu r=android-reviewers,007 https://hg.mozilla.org/integration/autoland/rev/8e3ded3d44c5 Have navbar use ToolbarTabCounterButton and FenixTabCounterMenu r=android-reviewers,mobiletest-reviewers,ohorvath,gl https://hg.mozilla.org/integration/autoland/rev/9332e4041b45 Add new telemetry for the new long tapped event on the tabs tray button r=android-reviewers,mobiletest-reviewers,ohorvath,gl
Flags: qe-verify+
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 129 Branch
See Also: → 1906673

Verified as fixed on the latest Nightly and an earlier (129 cycle one to confirm on the version where the fix was made) Nightly builds (129.0a1 and 130.0a1 from 2024-07-12). with Navigation Toolbar enabled from Secret Settings on 129.

Devices used:

  • Samsung Galaxy S23 Ultra (Android 14).
  • Samsung Galaxy Fold 5 (android 14).
  • Google Pixel 7 (Android 15 Beta 3).

Marking the ticket as verified on 129 and 130.

Status: RESOLVED → VERIFIED
See Also: → 1907484
See Also: → 1907824
See Also: → 1907646
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: