Closed Bug 2058421 Opened 1 month ago Closed 1 month ago

Resizing the window restarts the "x trackers blocked" animation

Categories

(Firefox :: Protections UI, defect)

defect

Tracking

()

RESOLVED FIXED
155 Branch
Tracking Status
firefox155 --- fixed

People

(Reporter: Vincent, Assigned: Vincent)

References

Details

Attachments

(1 file)

When the window is resized such that the address bar is small enough to render the shortform of the "x trackers blocked" pill, and then enlarged again to show the longform, the latter has the full animation play again.

Because we unapplied and re-applied the animation properties when the
container query matched/unmatched, the longform animation would
restart. With this change, we keep the animation properties applied,
and only change the play/pause state.

Attachment #9617201 - Attachment description: WIP: Bug 2058421 - Pause animation on screen resize. r=#urlbar-reviewers → Bug 2058421 - Pause animation on screen resize. r=#urlbar-reviewers
Component: Address Bar → Protections UI
Pushed by vtunru@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/5c3e4c55c1dc https://hg.mozilla.org/integration/autoland/rev/135c28a9543c Pause animation on screen resize. r=urlbar-reviewers,desktop-theme-reviewers,dao
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 155 Branch
QA Whiteboard: [qa-triage-done-c156/b155]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: