Closed Bug 1612104 Opened 5 years ago Closed 5 years ago

Part of the download start animation is missing / cut off

Categories

(Firefox :: Downloads Panel, defect)

58 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 74
Tracking Status
firefox74 --- fixed

People

(Reporter: najaro9082, Assigned: dholbert)

References

(Regression)

Details

(Keywords: regression)

Attachments

(7 files)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Firefox/68.0

Steps to reproduce:

Start downloading a file

Actual results:

No start animation was played

Expected results:

There's should be start animation like in previous versions.
I don't know when this stops working but I downloaded firefox version 57 and this animation is present.

Also checked fresh installation of firefox 72.0.2 with same result - no animation.

I attach gif of what this animation looks like in firefox 57.

Ignore User Agent. I'm currently on version 72.0.2. I don't know why it says 68.

Problem with no animation also occurs on firefox 64.0.2 and latest nightly 74.0a1 (2020-01-29).

60.0 ESR - no animation either.

Has Regression Range: --- → yes
Has STR: --- → yes
Component: Untriaged → Downloads Panel
Version: 72 Branch → 58 Branch

This isn't probably the best place for this question but how is it possible that no one has noticed this for 2 years! :O

I confirm this error and its regression range

In bug 1376519 this was changed to be a "dip" animation (the arrow moves down a few pixels and back up when the download starts), and I still see that on nightly (tested on both macOS and Windows 10) when e.g. downloading an ubuntu iso. In other words, I can't reproduce this bug as reported - though the animation has changed since 57.

I'm confused because the change to the animation doesn't line up with the regression window from comment #4 - and the regression window does not have super obvious other suspects (nothing relating to downloads directly). Alice, do you not see the animation I described above (different from the one attached in comment #0)? Can you provide more specific steps to reproduce? Does it maybe only happen if the button is not already visible in the toolbar, or is there some other condition to reproducing this?

Flags: needinfo?(alice0775)
Flags: needinfo?(alice0775)

OK. I don't think we consider the "bad" build a regression, as that was an intentional change from bug 1376519.

That new animation should still appear though, so the behaviour in the 74 video is still wrong. Can you reproduce that reliably, and if so, can you find a regression from the new animation to no animation at all? It may be helpful to use something like https://www.thinkbroadband.com/download rather than nightly ftp downloads, so the downloads take longer to complete and there is no race with the "download finished" animation (which overrides the "start" animation).

Flags: needinfo?(alice0775)
Flags: needinfo?(alice0775)

OK, given that there is an animation in the latest video, and it's just that the animation is different from the one in 57, I think this is working as designed. If there is something I'm missing here (does it never work for some websites?) then please clarify and reopen.

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → WORKSFORME

(In reply to najaro from comment #14)

If you're wondering why we don't fix some bugs, the namecalling and insults would be a good place to start.

Dan, seems like your fix for bug 1410561 did not in fact preserve behaviour. Any chance you could take a look?

Status: RESOLVED → REOPENED
Ever confirmed: true
Flags: needinfo?(dholbert)
Regressed by: 1410561
Resolution: WORKSFORME → ---
Keywords: regression
Summary: No download start animation (regression) → Part of the download start animation is missing / cut off

(In reply to :Gijs (he/him) from comment #15)

Dan, seems like your fix for bug 1410561 did not in fact preserve behaviour. Any chance you could take a look?

I don't really have cycles to investigate thoroughly today -- I think my patch in bug 1410561 was just taking some frontend-CSS code-comments at their word when they were saying that the min/max-width usage there had just been to workaround an assertion failure (which had then become fixed).

If that patch caused problems, we might as well just revert it (and adjust the explanatory comment). I can do that if needed, or feel free to do it, if you like.

OK, I did investigate a bit, using devtools to see where things are & how big they are.

What's happening here is roughly as follows:

  • We have the following markup:

<hbox id="downloads-animation-container">
<vbox id="downloads-notification-anchor">

So, the animation isn't showing up because it's taking place in a 1px-tall box, rather than in a 98px-tall box.

Flags: needinfo?(dholbert)

Auditing all of the rules that were changed in bug 1410561, in https://hg.mozilla.org/mozilla-central/rev/a59e00e80ba4
(1) pocket.css:

#pocket-button-box[animate="true"] > #pocket-animatable-box,
#pocket-button > .toolbarbutton-animatable-box {

This change doesn't make a difference at this point, because (a) there is no element called "pocket-animatable-box" that I can find (in my browser DOM & in a searchfox search), and (b) #pocket-button has no descendants -- it's an SVG <image>.

So I think this CSS rule might just be dead code?

(2) indicator.inc.css:
That's the CSS involved with the bug reported here, with the download icon animation. Needs to have min-height restored; see comment 17.

(3) toolbarbutton-icons.inc.css:
This change to this file doesn't make a difference at this point, because the container for the affected elements has a reasonable height (it's the browser toolbar itself), so it's not compressing them down to their min-height values.

(4) urlbar-searchbar.inc.css
This change to this file doesn't make a difference at this point, because the container for the affected elements has a reasonable height (it's the urlbar itself), so it's not compressing them down to their min-height values.

So I think the damage here is limited just to the "download" animation, and it's specifically fallout from the fact that we throw that animated element into a 1px-tall container for some reason.

Assignee: nobody → dholbert
Pushed by dholbert@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/bb9fe456168c Give #downloads-notification-anchor a min-height so that the download-start animation is visible. r=mak
Status: REOPENED → RESOLVED
Closed: 5 years ago5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 74
QA Whiteboard: [qa-74b-p2]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: