code-server: Webview related errors with SSH FS Addon. Blank tabs.
OS/Web Information
- Web Browser: Firefox
- Local OS: Homeassistant OS
- Remote OS:
- Remote Architecture:
code-server --version:
Steps to Reproduce
- Install SSH FS Addon from marketplace
- Open SSH FS configuration and add new connection
- Blank tab appears
Expected
A tab with SSH FS settings should appear
Actual
Just a blank tab appears, and some webview related errors in Firefox console.

Logs
Not able to provide logs right now. See all information about this in link below. https://github.com/SchoofsKelvin/vscode-sshfs/issues/279
Screenshot
Notes
All information can be found here: https://github.com/SchoofsKelvin/vscode-sshfs/issues/279 I’m not sure if it’s OK to open a bug report and just refer to another topic. But this is all I can do right now. Just trying to help out to get this bug sorted out. At least to start somewhere.
This issue can be reproduced in VS Code: Yes/No
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 27 (13 by maintainers)
Looked into it and explained some stuff on the other issue. Looks like it might be a Firefox bug. It’s probably up to Firefox to fix it, or have VS Code change their webview code to account for this bug (if there’s even a way to bypass it).
Hmm…I guess we wait to see if the extension author chimes in then? I’m not sure what else we can do to help 😦
I have the same Problem with Firefox. With Chrome the Extensions works fine.
I think the Problem is from the Extension and not from code-server, because i got the same csp error when i’m using the “vscode server”https://github.com/SchoofsKelvin/vscode-sshfs/issues/279#issuecomment-943548921Version: 3.12.0 b37ff28a0a582aee84a8f961755d0cb40a4081db I’m using Apache 2.4.48 with ssl
I saw that, it’s ok. 🙂
Everything working great in Chrome for me too.
Latest Firefox. Same problem with Microsoft Edge. Also same through Home Assistant app.
Edit: Seems like it works when using app remotely
Actually I should have read your logs more carefully since they indicate you are already using HTTPS.
Your browser seems to be missing some features. Are you using an old version of Firefox?
I understand. But what I don’t understand is why this blank tab never appeared before, without HTTPS. This is so strange.
Anyway, I appreciate your help 🙏🏻
Nope, not a breaking change on our side (you would have known due to major version bump). But hey, maybe browsers made CSPs and/or service worker policies more strict? I’m not sure 🤷♂️
Hmm… those logs are different but I’m not sure if it helps.
Let’s call in an expert - @code-asher any ideas how to help them?
Thank you very much for that beautiful instruction.
Got the logs from when I press “Add new configuration” I’m on remote access via Nabu Casa right now as you can see in the logs. It doesn’t matter if I’m doing this locally, the tab is blank anyway.