Closed Bug 1905468 Opened 2 months ago Closed 2 months ago

Content displayed on mouseover is now impossible to capture with Screenshots

Categories

(Firefox :: Screenshots, defect)

defect

Tracking

()

VERIFIED FIXED
130 Branch
Tracking Status
relnote-firefox --- 128+
firefox-esr115 --- unaffected
firefox-esr128 --- verified
firefox127 --- wontfix
firefox128 --- verified
firefox129 --- verified
firefox130 --- verified

People

(Reporter: sfoster, Assigned: niklas)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 files)

This was reported as a issue on connect.mozilla.org where a popup details for a data point in a graph which get revealed on hover, disappear once the Screenshots UI is opened and the mouse moves within it. The original issue was observed in paid, browser-based software but this interaction is common for canvas-based graphs and charts.

Similar STR:

Expected results:

  • The tooltip remains visible and can be capture in a screenshot

Actual results:

  • The tooltip immediately disappears as the Screenshots UI opens.

These STR aren't quite the same, and I'm able to reproduce the same results with screenshots.browser.component.enabled toggled false, but the OP on connect says this was working before v127 and now is not, so better STR would be good if someone can find a more comparable example.

Set release status flags based on info from the regressing bug 1870127

:niklas, since you are the author of the regressor, bug 1870127, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

Flags: needinfo?(nbaumgardner)
Assignee: nobody → nbaumgardner
Status: NEW → ASSIGNED
Pushed by nbaumgardner@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/28acb043406c
Prevent some more mouse events from reaching the content page. r=sfoster
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 130 Branch

Set release status flags based on info from the regressing bug 1870127

:niklas do you want to add a beta and esr128 uplift request on this?
How about a release uplift for possible inclusion in a later Fx128 dot release?

Comment on attachment 9410849 [details]
Bug 1905468 - Prevent some more mouse events from reaching the content page. r=sfoster,kcochrane

Beta/Release Uplift Approval Request

  • User impact if declined: Users won't be able to screenshot elements that listen to certain mouse events.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: STR:
  1. Go to https://www.chartjs.org/docs/latest/samples/tooltip/interactions.html
  2. Hover over one of the data points to reveal the little "tooltip"
  3. Open screenshots and select a region to capture the tooltip

ER: The tooltip should remain visible to be captured in a screenshot.

  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): This only prevents some events from reaching the content page while screenshots is open. We already do this for most mouse/pointer/touch events and are only adding a few more events in this patch. We can also pref this off if needed via screenshots.browser.component.preventContentEvents.
  • String changes made/needed: No
  • Is Android affected?: No
Flags: needinfo?(nbaumgardner)
Attachment #9410849 - Flags: approval-mozilla-release?
Attachment #9410849 - Flags: approval-mozilla-beta?
Flags: qe-verify+
Attachment #9410849 - Flags: approval-mozilla-esr128?

Comment on attachment 9410849 [details]
Bug 1905468 - Prevent some more mouse events from reaching the content page. r=sfoster,kcochrane

Approved for 129.0b2

Attachment #9410849 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
https://hg.mozilla.org/releases/mozilla-beta/rev/1ef91c7a3496
QA Whiteboard: [qa-triaged]

I reproduced the initial issue on Firefox 129.0a1 on macOS 13 and Windows 10.

While verifying the fix using the latest Nightly 130.0a1 on macOS 13, Windows 10, and Ubuntu 22.04, I noticed that the first time Screenshots mode is enabled, the tooltip is dismissed and not visible in the screenshot. This issue occurs only the first time Screenshots mode is enabled after the browser starts; it does not happen in a new tab or after refreshing the page. Please see the attached screen recording for more details, where it can be seen how the tooltip is still dismissed after a Firefox restart.

Niklas and Sam, is this expected in any way? Should I file a new bug to cover this scenario?

Flags: needinfo?(sfoster)
Flags: needinfo?(nbaumgardner)

Hmmm, if you could file a new bug for this, that would be great!
I'm not exactly sure what is going on.

Flags: needinfo?(sfoster)
Flags: needinfo?(nbaumgardner)

Verified as fixed using Firefox 129.0b2 on macOS 13, Ubuntu 22 and Windows 10 - the tooltip is captured within the Screenshot - for the scenario mentioned in Comment 11 I filed Bug 1907285.

Based on this and on Comment 11, marking this issue as Verified on firefox129 and firefox130.

Comment on attachment 9410849 [details]
Bug 1905468 - Prevent some more mouse events from reaching the content page. r=sfoster,kcochrane

Approved for 128.1esr.

Attachment #9410849 - Flags: approval-mozilla-release? → approval-mozilla-release+
https://hg.mozilla.org/releases/mozilla-esr128/rev/a6db9a655d36
Attachment #9410849 - Flags: approval-mozilla-release?
Attachment #9410849 - Flags: approval-mozilla-release+
Attachment #9410849 - Flags: approval-mozilla-esr128?
Attachment #9410849 - Flags: approval-mozilla-esr128+

Verified as fixed using Firefox 128.1.0esr Build ID: 20240711165656 (from Treeherder) on macOS 13, Ubuntu 22.04 and Windows 10 x64.

Comment on attachment 9410849 [details]
Bug 1905468 - Prevent some more mouse events from reaching the content page. r=sfoster,kcochrane

Approved for 128.0.2

Attachment #9410849 - Flags: approval-mozilla-release? → approval-mozilla-release+
https://hg.mozilla.org/releases/mozilla-release/rev/c6d9c4f0ed04

Verified as fixed using Firefox 128.0.2 on macOS 13, Windows 10 and Ubuntu 22.04.

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-triaged]
Flags: qe-verify+

Added to the 128.0.2 relnotes:

Fixed an issue where content displayed on mouseover was not captured in a screenshot.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: