Open Bug 1838965 Opened 2 years ago Updated 2 years ago

"Has control of your pointer" notification does not go away if you close the tab with "Ctrl+W"

Categories

(Firefox :: General, defect)

Firefox 114
defect

Tracking

()

Tracking Status
firefox115 --- affected
firefox116 --- affected

People

(Reporter: sbeltranc, Unassigned)

References

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/114.0

Steps to reproduce:

I got in a website which controlled my mouse pointer and I left the site with "Ctrl+W" with the mouse pointer still being controlled by the site.

How this could be reproduced?
1- Get on a website that starts controlling your mouse pointer and maybe but maybe full screen firefox on the site.
2- When the site starts controlling your mouse pointer, leave the site by pressing "ctrl+w"
3- That's about it! You have now an stuck "has control of your pointer" on your firefox.

Actual results:

Everytime you move your mouse up where this notification appears, it now appears the "sitename has control of your pointer. Press ESC to take back control", this issue does not go away until you decide to restart Firefox.

Expected results:

The notification shouldn't be appearing anymore considering I left the site and the mouse isn't being controlled anymore.

The Bugbug bot thinks this bug should belong to the 'Core::Widget: Win32' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Widget: Win32
Product: Firefox → Core

Moving to Firefox :: General, per the moz.build file located next to /browser/base/content/browser-fullScreenAndPointerLock.js.

Component: Widget: Win32 → General
Product: Core → Firefox

Thank you for the bug report!
Could you please provide a website example in order to test and try to reproduce this issue?
Thank you.

Flags: needinfo?(sbeltranc)

Here is a possible test case, encapsulated within a data URL:

data:text/html,<body><button onclick="this.requestPointerLock()">Click me

I was able to partially repro with a multi-tab window, but neither completely nor consistently -- it didn't extend to other windows, just other tabs on that window. (I assume there's more involved, and will wait for sbeltranc to provide further information.)

Thanks a lot for the test case, Ray!
Managed to reproduce reliably on macOS 12. Reproduces on Windows 10 and Ubuntu 22 intermittently(maybe 1-2 times out of 10).
Browser console shows as follows:

TypeError: can't access property "ownerGlobal", browser is null PointerLockParent.sys.mjs:17:9
receiveMessage resource:///actors/PointerLockParent.sys.mjs:17

Might be a duplicate of bug 1800340.
Since I was able to reproduce this bug consistenly on macOS 12, I will set it as NEW.

Status: UNCONFIRMED → NEW
Ever confirmed: true
See Also: → 1800340
Severity: -- → S3
Flags: needinfo?(sbeltranc)

Sorry for the late respond, I really didn't check my mails until now and realized my bug report was answered.
An example of this funny enough, can be done on a simple Unity game, as an example I will take thebackrooms2.com for it.

Simple enough, soon after you start the game, and your mouse gets taken over by the website, you will fullscreen and afterwards you will quit the website with Ctrl+W

Doing this, result on the pop up mention that thebackrooms2.com has control of my pointer.

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