-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Stop explicitly disabling SharedArrayBuffers #14766
Comments
Testing this is really tricky. I found an old test page with some code to check for SharedArraybuffers:
However, the problem is that now the SharedArrayBuffer constructor is now always available. So I instead wrote a test page which passes a SharedArrayBuffer via
then I can confirm that our code is correctly disabling the feature. Furthermore, my test page specifically avoids the isolation headers because the feature is also enabled for cross-origin isolated renderers regardless of the feature flag. Howevever, while it's a good test right now, it will stop working in C91. The alternative, which will work in C91 or later, is to apply this hack:
so that we can continue to test the flag regardless of the isolation headers. |
So the bottom line is that SharedArrayBuffers are already enabled in Brave and so my PR is essentially just a NOOP cleaning up dead code. |
SharedArrayBuffers were explicitly disabled in brave/brave-core#114 in order to match the Muon settings in the MVP.
Given that Google is actively addressing the Spectre threat, I think we can remove our customization and rely on their judgement when it comes to re-enabling it and the extra protections that would be needed for that to happen.
The text was updated successfully, but these errors were encountered: