-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Does not work in WKWebView #3575
Comments
@litherum do you know of an easy way to test a wkwebview on a macbook? |
@litherum I have applied a quick workaround on my own SSH app (now using Xterm.js). A simple fix could be : Then the WebGL rendering is disabled and the terminal works as it should. |
Yeah we check for "safari" in the user agent right now: #3357 (comment) This just needs someone with a device that can verify a fix works for the webkit webview and doesn't break Chrome, etc. since user agents are a mess. |
This does not fix the issue where webkit browsers cannot use it, I looked at webkit versions in safari and was a bit confused. The wikipedia page for safari shows v15 having webkit v612+ but I have safari v16 and it's webkit v605, so trying to detect it based on webkit version is a risky change. Fixes xtermjs#3357 Related xtermjs#3575 Related microsoft/vscode#165416
This does not fix the issue where webkit browsers cannot use it, I looked at webkit versions in safari and was a bit confused. The wikipedia page for safari shows v15 having webkit v612+ but I have safari v16 and it's webkit v605, so trying to detect it based on webkit version is a risky change. Note that webgl2 shipped in safari 15, but it didn't work in webgl until safari 16. Fixes xtermjs#3357 Related xtermjs#3575 Related microsoft/vscode#165416
I believe this can be close now |
The check in https://github.com/xtermjs/xterm.js/blob/master/src/common/Platform.ts#L21:
doesn't seem to catch WKWebView, which is the browser engine powering Safari. Safari's user agent string (on an iPad) is:
Whereas WKWebView's user agent string (on an iPad) is:
This is causing the demo on https://xtermjs.org to not show any content in WKWebView.
The text was updated successfully, but these errors were encountered: