Closed Bug 1918416 Opened 1 year ago Closed 1 year ago

[Toolbar Redesign] Download complete dialog is overlapped by navigation bar when changing the orientation from Landscape to Portrait

Categories

(Firefox for Android :: Toolbar, defect)

Firefox 132
All
Android
defect

Tracking

()

VERIFIED FIXED
133 Branch
Tracking Status
firefox130 --- disabled
firefox131 --- disabled
firefox132 --- verified
firefox133 --- verified

People

(Reporter: dpop, Assigned: petru)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fxdroid][group3])

Attachments

(4 files)

Attached video Nightly132_0912_QA.mp4

Steps to reproduce

  1. Download a file (can use https://www.thinkbroadband.com/download for test downloads) while in Landscape mode.
  2. Once the "Download completed" dialogue is displayed, change the device orientation to Portrait mode.
  3. Observe the "Download completed" dialogue.

Expected behavior

The "Download completed" dialogue remains correctly displayed when changing the orientation.

Actual behavior

When changing the orientation from Landscape to Portrait, the "Download complete" dialog is partially cutoff by the navigation toolbar.

Device information

  • Firefox version: Nightly 132.0a1 from 09/12
  • Android device model/Android OS version: Samsung Galaxy A53 5G (Android 14), Xiaomi 12 Pro (Android 13), OPPO A15s (Android 10)

@Petru, can you take a look at this remaining issue from 1912473? Thanks!

Flags: needinfo?(petru)

Can only reproduce with the navbar enabled and the toolbar at top.
Will look into fixing.

Assignee: nobody → petru
Status: NEW → ASSIGNED
Flags: needinfo?(petru)

Seems like it's intermittent <=> it depends on other toolbar updates and the overall timings for when these are executed.

For each new download dialog to be shown we set a new DynamicDownloadDialogBehavior.
But a previous one may now be leaked because it continues to observe store updates and
reacting to when the orientation changes.
The leak is made possible because the "download complete dialog" is always attached to
the displayed layout, only it's visibility is updated depending on if it needs to be shown.

Replace repositioning when the app orientation change as this is not fully reliable.

Attachment #9424996 - Attachment description: Bug 1918416 - Prevent leaking DynamicDownloadDialogBehaviors r=#android-reviewers → Bug 1918416 - part 1 - Prevent leaking DynamicDownloadDialogBehaviors r=#android-reviewers
Pushed by plingurar@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/84980f4e301e part 1 - Prevent leaking DynamicDownloadDialogBehaviors r=android-reviewers,skhan https://hg.mozilla.org/integration/autoland/rev/082fe7352b0f part 2 - Reposition the download dialog whenever the anchor height changes r=android-reviewers,skhan
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 133 Branch
Flags: qe-verify+

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

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

For more information, please visit BugBot documentation.

Flags: needinfo?(petru)

Planning to request uplift if QA confirms everything looks okay.
Keeping my NI until then.

Verified as fixed in the latest Nightly 133.0a1 from 10/03 with Google Pixel 8 Pro (Android 14) and Samsung Galaxy S22 Ultra (Android 14). The "Download completed" dialogue remains correctly displayed when changing the orientation.
Tested with the following configurations:

  • the old toolbar and the new toolbar redesign;
  • Toolbar position Top and Bottom;
  • "Scroll to hide toolbar" option enabled and disabled;
Flags: qe-verify+

Comment on attachment 9424996 [details]
Bug 1918416 - part 1 - Prevent leaking DynamicDownloadDialogBehaviors r=#android-reviewers

Beta/Release Uplift Approval Request

  • User impact if declined: Visual issue - improper orientation of the download complete dialog after rotating the screen
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce:
    • Download a file (can use https://www.thinkbroadband.com/download for test downloads) while in Landscape mode.
    • Once the "Download completed" dialogue is displayed, change the device orientation to Portrait mode.
    • Observe the "Download completed" dialogue.
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Small targeted patch verified by QA in Nightly.
  • String changes made/needed:
  • Is Android affected?: Yes
Flags: needinfo?(petru)
Attachment #9424996 - Flags: approval-mozilla-beta?
Attachment #9427343 - Flags: approval-mozilla-beta?
Flags: qe-verify+

Comment on attachment 9424996 [details]
Bug 1918416 - part 1 - Prevent leaking DynamicDownloadDialogBehaviors r=#android-reviewers

Approved for 132.0b5.

Attachment #9424996 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9427343 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Flags: in-testsuite+

This was verified as fixed in beta 132.0b5 with Lenovo Yoga Tab 11 (Android 12) and Samsung Galaxy S22 Ultra (Android 14).

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

Attachment

General

Created:
Updated:
Size: