Closed Bug 1892125 Opened 3 months ago Closed 3 months ago

Clicking on the label in the copy or download button in the Screenshots preview dialog does nothing

Categories

(Firefox :: Screenshots, defect, P1)

defect

Tracking

()

VERIFIED FIXED
127 Branch
Tracking Status
firefox127 --- verified

People

(Reporter: sfoster, Assigned: niklas)

References

Details

Attachments

(1 file)

STR:

  • Use ctrl+shift+s or the screenshots toolbar button or the context menu to open the Screenshots UI on any page
  • Click either the Save Visible or Save Full Page
  • In the resulting preview dialog, click on the "copy" or "dialog" text rather than the icon in either of the buttons

ER:

  • The screenshot is copied or downloaded

AR:

  • Nothing happens. Its necessary to click on the icon to actually copy/download.

Ultimately the best fix here is to use moz-button and moz-button-group for these buttons. We have all this custom css in/around .preview-button which isn't great.

But, specifically, the issue here is that we shouldn't be overriding the pointer property, and we should remove the pointer-events: none in favor of examining the event.currentTarget rather than event.target in the click event listener.

Bug 1858812 is adding the moz-button icon + text variation we would need if we wanted to fix this by re-implementing the preview dialog buttons with the resuable components.

Blocks: 1870127
See Also: → 1858812
Assignee: nobody → nbaumgardner
Status: NEW → ASSIGNED
Attachment #9397401 - Attachment description: WIP: Bug 1892125 - Refactor screenshots preview. r=sfoster → Bug 1892125 - Refactor screenshots preview. r=sfoster
See Also: → 1893879
Duplicate of this bug: 1893879
Pushed by nbaumgardner@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/fd2691d9e2d9
Refactor screenshots preview. r=sfoster,fluent-reviewers,desktop-theme-reviewers,bolsson
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 127 Branch

I can still reproduce this issue on the latest Nightly 127.0a1 - tested on macOS 13. I reproduced it with both Copy and Download options of the Save full page dialog. Please see the screen recording.

Here are the steps that I used.

  1. Navigated to https://en.wikipedia.org/wiki/Sun
  2. Restarted Nightly using the key shortcuts Cmd+Shift+J and then Cmd+Option+R
  3. On the Wiki page - enable Screenshots using Cmd+Shift+S
  4. Quickly clicked on the Save full page and then on the Copy button

Actual results - the Preview dialog is dismissed, no 'Screenshot copied' notification is shown and the screenshot is not copied. Please keep in mind that the issue is intermittent.

Niklas, should this issue be reopened, or is it best if I log a new one?

Flags: needinfo?(nbaumgardner)

I'll file a new bug for this.
I think what's happening is that the copy button is clicked before the image is fully loaded and it's causing some issues.

Because if I wait for the image to show and then copy, it seems to work.
Thanks for finding this!!

Flags: needinfo?(nbaumgardner)
Regressions: 1894740
See Also: 1893879

Marking this as Verified Fixed as the issue from the Description is no longer reproducible using the latest Nightly 127.0a1 - tested on Windows 10, Ubuntu 23.10 and macOS 13.

Status: RESOLVED → VERIFIED
Regressions: 1896140
You need to log in before you can comment on or make changes to this bug.