Summary
I needed a quick break from macOS backend work, so I'm looking at modernizing and cleaning up the web_backend JavaScript files. They currently use a mixture of outdated JavaScript syntax while also using modern web browser features like ResizeObserver.
I noticed that we removed the ResizeObserver ponyfill in #31669. Do we have an official policy on which specific web browser versions we support?
For example, we have code to check CanvasRenderingContext2D.backingStorePixelRatio; however, that property was never official and removed around ~2015. We also warn if a WebSocket doesn't support binaryType; however, it has 100% tracked user support on caniuse.
Proposed fix
Summary
I needed a quick break from macOS backend work, so I'm looking at modernizing and cleaning up the
web_backendJavaScript files. They currently use a mixture of outdated JavaScript syntax while also using modern web browser features like ResizeObserver.I noticed that we removed the ResizeObserver ponyfill in #31669. Do we have an official policy on which specific web browser versions we support?
For example, we have code to check CanvasRenderingContext2D.backingStorePixelRatio; however, that property was never official and removed around ~2015. We also warn if a WebSocket doesn't support binaryType; however, it has 100% tracked user support on caniuse.
Proposed fix