novnc / noVNC

VNC client web application
https://novnc.com
Other
11.48k stars 2.28k forks source link

setCapture deprecated #1610

Open PexMor opened 2 years ago

PexMor commented 2 years ago

JS setCapture()

The setCapture is deprecated in Firefox at least.

Firefox in console gives hint:

Element.setCapture() is deprecated. Use Element.setPointerCapture() instead.
For more help https://developer.mozilla.org/docs/Web/API/Element/setPointerCapture events.js:66:15
Document.releaseCapture() is deprecated. Use Element.releasePointerCapture() instead.
For more help https://developer.mozilla.org/docs/Web/API/Element/releasePointerCapture

To Reproduce

Open noVNC client in Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:94.0) Gecko/20100101 Firefox/94.0 browser.

Expected behavior

The replacement functions are called and Firefox does not complain.

Client (please complete the following information):

Server (please complete the following information):

samhed commented 2 years ago

:+1: Microsoft Edge on Windows 10 also complains in a similar way.