Open Bug 2089742 Opened 26 days ago Updated 26 days ago

Private browsing download prompt animates when dismissed but not when it appears

Categories

(Firefox :: Downloads Panel, defect, P3)

defect

Tracking

()

People

(Reporter: nsharpley, Unassigned)

References

Details

PrivateDownloadsSubview.openWhenReady shows the "Files stay on your device" prompt by waiting for ViewShown on the downloads panel main view and then calling showSubView, so the panel navigates to the prompt as though the user had drilled into it. To keep that navigation from animating, downloadsPanel-privateBrowsing carries no-panelview-transition.

The attribute is only read for the view being navigated to. On the way back out goBack passes the main view, which does not carry it, so dismissing the prompt animates while showing it does not. rking raised this on the review that added the attribute in bug 1790641 and it was left unresolved; browser.download.enableDeletePrivate defaulted to false at the time and now defaults to true, so the inconsistency ships.

The panel is not really navigating here, it is choosing what to open on, so a better fix than suppressing the animation is to have the downloads panel open on the prompt directly when enableDeletePrivate is set and the user has not yet chosen. Dismissing it would then be the panel only view change, and would animate like any other.

downloadsPanel-privateBrowsing is the sole user of no-panelview-transition in the tree, so the attribute and its check in PanelMultiView.sys.mjs can go with it.

Bug 2084630 replaces the panel horizontal slide with a shorter cross-fade, which weakens the original reason for the attribute but does not address the asymmetry.

Severity: -- → S4
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.