revert: keep xterm.js for the terminal
ghostty-web 0.4.0 corrupts cell positions after the pane resizes or remounts. In testing, seq output became a diagonal staircase and reopening at a new width mixed the prompt with old output. The release also has open bugs for Alt-key input and idle repainting. Keep xterm.js until those are fixed.
This commit is contained in:
1 parent
3f61dd4db8
commit
05660a244b
7 files changed
+58
-58
No files matched your search
+1
-3
@@ -171,11 +171,9 @@ async fn headers(State(state): State<Shared>, request: Request, next: Next) -> R
|
||||
Some(source) => format!("'self' {source}"),
|
||||
None => "'self'".to_owned(),
|
||||
};
|
||||
// ghostty-web compiles its inlined WASM in the browser. Keep the
|
||||
// narrow wasm-unsafe-eval allowance and let it fetch the data: module.
|
||||
let csp = format!(
|
||||
"default-src 'self'; img-src 'self' data: blob:; style-src 'self' 'unsafe-inline'; \
|
||||
script-src 'self' 'unsafe-inline' 'wasm-unsafe-eval'; connect-src 'self' data: ws: wss:; frame-src {frame_src}; \
|
||||
script-src 'self' 'unsafe-inline'; connect-src 'self' ws: wss:; frame-src {frame_src}; \
|
||||
frame-ancestors 'self'; base-uri 'self'; form-action 'self'"
|
||||
);
|
||||
if let Ok(value) = HeaderValue::from_str(&csp) {
|
||||
|
||||
Reference in new issue
Block a user