-
Notifications
You must be signed in to change notification settings - Fork 30k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix safari not properly rendering Terminal #160144
Conversation
The problem was introduced with 852b4ae (Update to xterm 5) and 2f72682 (Add canvas renderer addon). Cross reference: xtermjs/xterm.js#3271 ℹ️ Canvas rendering was working fine using Safari with VS Code v1.70.2 (xterm 4.20.0). |
1.71.0 (xterm v5.0.0 (beta 32))This is the situation after reloading the page. 1.71.0.mp4When starting a new Terminal, Safari falls back to the DOM renderer (see coder/code-server#5535 (comment)). But when reloading the page, there are some canvas renderer objects overlayed. 1.70.2 (xterm v4.20.0 (beta 20))1.70.2.mp4Safari uses the canvas renderer. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is meant to be handled gracefully by just disabling the observer here:
Does something here throw on Safari or something?
@Tyriar yes it throws in this line |
Oh ok, the right fix is to put a try/catch around that then. Can you want to send a PR to xterm.js instead? |
Sure |
Closing this. |
BTW @Tyriar will this be picked for the recovery release as is a regression from previous release? that was my main reason to fix it here instead 🙂 |
@jeanp413 yeah I guess this meets the bar for a recovery fix, I'll cherry pick this commit into a recovery release PR as it's a pain to update xterm in recovery releases. |
Thank you @jeanp413. |
👉 #160332 |
Fixes #160070
Safari doesn't support
device-pixel-content-box
yet which is used by both webgl and canvas addons