Troubleshooting Webview loading error

If you use Microsoft Visual Studio Code - Open Source in a private browsing window, you might encounter the following error message: Error loading webview: Error: Could not register service workers.

This is a known issue affecting following browsers:

  • Google Chrome in Incognito mode

  • Mozilla Firefox in Private Browsing mode

Table 1. Dealing with the webview error in a private browsing window
Browser Workarounds

Google Chrome

Go to SettingsPrivacy and securityCookies and other site dataAllow all cookies.

Mozilla Firefox

Webviews are not supported in Private Browsing mode. See this reported bug for details.