Closed Bug 1891729 Opened 10 months ago Closed 9 months ago

The main menu is incorrectly displayed when the keyboard is dismissed

Categories

(Fenix :: Toolbar, defect, P1)

Firefox 127
All
Android
defect

Tracking

(firefox125 unaffected, firefox126 wontfix, firefox127 wontfix, firefox128 verified)

VERIFIED FIXED
128 Branch
Tracking Status
firefox125 --- unaffected
firefox126 --- wontfix
firefox127 --- wontfix
firefox128 --- verified

People

(Reporter: vtamas, Assigned: mcarare)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression, Whiteboard: [fxdroid][group1])

Attachments

(3 files)

Attached video mainmenu.mp4

Steps to reproduce

  1. Launch Fenix and navigate to any site that with a text box (ie wikipedia.org)
  2. Tap on the search field.
  3. Tap on 3 dots menu.

Expected behavior

The main menu is displayed from the bottom of the screen.

Actual behavior

The keyboard is hiding and the menu remains displayed in the middle of the screen.

Device information

  • Firefox version: Firefox Nightly 127 (2024-04-16), Firefox 126 Beta 1
  • Android device model: OnePLus 6T (Android 11), Xiaomi 12T (Android 12)

Any additional information?

  • This issue is a regression: Last Good build (2024-03-18) - First Bad build (2024-03-20) - there is no Nightly build from 2024-03-19

:bclark could this be triaged for investigation?
The regression window in comment 0 is large since it includes the firefox-android merge to mozilla-central

Flags: needinfo?(brclark)

This looks like a regression from toolbar redesign feature. We're are currently undergoing to a large refactor so we can restore behaviour cleanly when toolbar redesign feature is not on. I'll move this into the toolbar redesign work. Thanks

Component: General → Toolbar
Summary: The main menu is incorrectly displayed when the keyboard is dismissed → [toolbar redesign] The main menu is incorrectly displayed when the keyboard is dismissed
Whiteboard: [fxdroid]

I can reproduce this in Nighty and in Beta with toolbar redesign feature NOT turned on. I do not know which change caused the regression but this week I will be working on reverting all toolbar redesign implementation and refactor them into the toolbar2 component. We will then uplift this to Beta.

Did a search and found out that this is not toolbar redesign related. This issue was caused by Bug1854131. I'll mark it as the cause of the regression.

No longer blocks: android-toolbar-redesign
Regressed by: 1854131

Hi :mcarare, can you please take a look? I did the search and confirm that this was caused by Bug 1854131

Flags: needinfo?(mcarare)

I will look into it, thanks for pinging me.

I can confirm that the change in 1854131 caused the regression, but I think the problem lies in the way we display the PopupWindow, the calculation is correct.

Assignee: nobody → mcarare
Status: NEW → ASSIGNED
Flags: needinfo?(mcarare)
Flags: needinfo?(brclark)
Priority: -- → P1
Whiteboard: [fxdroid] → [fxdroid][group1]
Attachment #9398624 - Attachment description: WIP: Bug 1891729 - Refactor logic for menu positioning. → Bug 1891729 - Refactor logic for menu positioning.

:mcarare we have one week left in Beta for Fx126.
It seems the patch for this is complex to take in an uplift.

What do you think about us reverting the regressor from Beta? Though Bug 1854131 is an S2, it's not a recent bug.

Flags: needinfo?(mcarare)

Yes, I think this patch is too complex for a Beta uplift.

And I don't think we should uplift a revert either because the fixed issue was more severe than the one caused by the fix.

Flags: needinfo?(mcarare)
Summary: [toolbar redesign] The main menu is incorrectly displayed when the keyboard is dismissed → The main menu is incorrectly displayed when the keyboard is dismissed
Blocks: 1878828
Blocks: 1893767
Pushed by mcarare@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1b00a65bc2a6 Refactor logic for menu positioning. r=android-reviewers,twhite

Set release status flags based on info from the regressing bug 1854131

Status: ASSIGNED → RESOLVED
Closed: 9 months ago
Resolution: --- → FIXED
Target Milestone: --- → 128 Branch
Flags: qe-verify+

The patch landed in nightly and beta is affected.
:mcarare, is this bug important enough to require an uplift?

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox127 to wontfix.

For more information, please visit BugBot documentation.

Flags: needinfo?(mcarare)

The patch is too complex to warrant an uplift.

Flags: needinfo?(mcarare)

Verified as fixed on the latest Nightly 128.0a1 from 05/15 with Samsung Galaxy S22 Ultra (Android 14). The main menu is now displayed from the bottom of the screen after the keyboard is dismissed.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
See Also: → 1896937
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: