Open Bug 1889999 Opened 1 year ago Updated 1 year ago

Cursor capture in a new window is not working correctly and crashes

Categories

(Core :: DOM: Core & HTML, defect)

Firefox 125
defect

Tracking

()

People

(Reporter: Laraweron, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Attached file point.html

Steps to reproduce:

Open point.html
Click on the text "Click me to open a small window," and then click on "Click here to lock the cursor."

Actual results:

If we open cursor capture in a new mini browser window, we will not be able to read the notification. On Linux OS, when the cursor leaves the window area, the cursor starts blinking.

Expected results:

I expect that the cursor should be able to leave the area of the new window without blinking on Linux, and I also expect to see a warning message about cursor capture.

Component: Untriaged → DOM: Core & HTML
Product: Firefox → Core

On Wayland, the cursor is locked, can't leave the window, blinks, and crashes.

Edgar, are you the right person to take a look at this?

Severity: -- → S3
Flags: needinfo?(echen)
Summary: Cursor capture in a new window is not working correctly → Cursor capture in a new window is not working correctly and crashes

There are multiple things here,

  1. The notification is not readable on very small window: This is a UI issue, I filed bug 1891038.
  2. The cursor blinking: I think the blinking is caused by we reset the mouse position back to the content area whenever the mouse leaves the content area which could happens easier when the browser window is very small. I suggest we revisit this after bug 1255338 and bug 853160 which might fix this as well.
  3. The crash on Wayland: I tried to reproduce, but doesn't encounter crash on either Nightly or local build. :hsivonen, do you see the crash consistently and could you provide the crash report link if possible?
Flags: needinfo?(echen) → needinfo?(hsivonen)
URL: 853160
See Also: CVE-2024-6608
URL: 853160
See Also: → 853160

I no longer see the crash. However, I observe that toolbar items within the small pointer-locked window highlight, so the toolbar is responding to hovers with the pointer locked into the window while the cursor keeps blinking on top of the content area.

Flags: needinfo?(hsivonen)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: