Closed r3k2 closed 1 year ago
The CSP errors is a combination of an Electron limitation and how browsers are supposed to work, as we need to disable contextIsolation to be able to override specific APIs (see app/preload/privacy.js
) but at the same time these preloads can be blocked by pages. The contextBridge API exists to "solve" this problem, but it cannot be used to override any APIs of the browser, hence it is useless for this purpose, thus we need to disable contextIsolation for the preload. In doing this, the CSP of the page affects the preload scripts, and can be blocked by it if the CSP is strict enough. These errors are not related to the page not working with regards to Vieb features being blocked, but they could be related with regards to that hispagatos
script (and potentially others) being blocked. Though these scripts being blocked is in line with what the CSP is asking the browser to do, so this should be regarded a bug in Mozilla Hubs for setting it too strict, or in Firefox/qutebrowser etc. for not respecting it (security issue). It is implemented correctly in the latest Chrome/Chromium, where these errors can also be observed/reproduced.
As for the WebGL not working, this is a separate issue altogether, I have no experience with WebGL, but the demo seems to be working the same in Vieb compared to Chromium, although I don't have a VR device to test with. You might need to allow the right permissions to make that part work, you can see permission notifications on the :notification
page or by using :help notificationforpermissions
.
Hello,
Information:
Problem
-we have a room we created on mozilla hubs, this was working correctly on qutebrowser,nyxt, firefox etc.. but I get tons of errors when loading this on Vieb, I am not a web developer and I think is related to loading js script from another domain that is owned by Mozilla for mozilla hubs reticulum.io, but there are also some WebGL warnings.
Question