Closed Bug 1858752 Opened 1 year ago Closed 1 year ago

Screenshots overlay flickers when dragging

Categories

(Firefox :: Screenshots, defect)

defect

Tracking

()

VERIFIED FIXED
120 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox118 --- unaffected
firefox119 --- unaffected
firefox120 --- verified
firefox121 --- verified

People

(Reporter: niklas, Assigned: emilio)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression)

Attachments

(3 files, 1 obsolete file)

STR:

  1. set screenshots.browser.component.enabled to true
  2. open screenshots on any page
  3. drag a region on the overlay and once done dragging, do not move the mouse

AR:

  • The overlay background will flicker on top of the the mover targets (white cricles)
  • Once the mouse is released, the buttons are under the overlay background.

ER:
The background should not flicker and the buttons should not be under the background.

The buttons do eventually come back on top of the background.
I noticed that the timing of this seems to coincide with the timing of the scrollbar disappearing. As shown in the attached video.

Regressions: CVE-2023-6869

I meant to set this bug regressed by bug 1799036, but bugzilla won't let me change it to regressed by or undo the regression because I don't have access to bug 1799036.

Keywords: regression
Regressed by: CVE-2023-6869
No longer regressions: CVE-2023-6869

This is on Windows 11, right? I don't seem to be able to reproduce this on Linux. Is there anything interesting in the debug console? Is this fixed by bug 1857946 (so we need to back that out to repro)?

Flags: needinfo?(emilio) → needinfo?(nbaumgardner)

The video is from Windows 11 but I've reproduced on my mac and linux machines also.

Bug 1857946 does not fix the issue.

Flags: needinfo?(nbaumgardner)

I noticed something when I was looking at this. It appears the the z-index is not working for elements in the screenshots overlay?

STR:

  1. set screenshots.browser.component.enabled to true
  2. open screenshots on any page
  3. drag a region on the overlay so the x, copy, and download buttons appear
  4. open the browser toolbox and select the element with id buttons-container
  5. set the z-index on this element to a large number ex. 123456

ER:
The buttons container should be above background

AR:
The buttons container is under the background

I tried this on 119 and I got the ER of the buttons container above the background

:emilio are you able to reproduce this?

Flags: needinfo?(emilio)

I can repro that (and comment 0 now, for some reason). Will look.

Assignee: nobody → emilio
Blocks: 1859421

This doesn't fix the issue at hand, but makes stuff easier to reason about.

Before bug 1799036, this was not an issue because the background and the
highlight ended up in different containing blocks.

Depends on D191137

Drive-by, but I noticed it while poking so might as well fix it.

Depends on D191138

Flags: needinfo?(emilio)

Comment on attachment 9358781 [details]
Bug 1858752 - Fix button position after showing them on both sides. r=niklas

Revision D191139 was moved to bug 1859058. Setting attachment 9358781 [details] to obsolete.

Attachment #9358781 - Attachment is obsolete: true
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e39431525cfb Simplify screenshots component markup. r=niklas https://hg.mozilla.org/integration/autoland/rev/38740caf5ab0 Explicitly z-sort bghighlight. r=niklas
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 120 Branch

Reproducible on a 2023-10-12 Nightly build on Windows 10.
Verified as fixed on Firefox 120.0b4 and Nightly 121.0a1 on Windows 10, Ubuntu 22, macOS 12.

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

Attachment

General

Created:
Updated:
Size: