Skip to content

Commit

Permalink
Removed disabling of SharedArrayBuffer feature.
Browse files Browse the repository at this point in the history
This feature was disabled by brave/brave-browser#1051 to mitigate
Spectre. Spectre was later addressed by Chromium via site isolation and
Chromium re-enabled SharedArrayBuffer, but Brave didn't. Now in C74,
WebAssemblyThreads feature is being enabled by default. Since
WebAssemblyThreads is built with and auto-enables SharedArrayBuffer,
there is no reason for us to continue keeping SharedArrayBuffer
disabled.

Aslo, removed a browser test for checking that SharedArrayBuffer is
disabled.

Chromium change making WebAssemblyThreads enabled by default:

commit f9cc6b912e601070728b449892097cec0d59cbfa
Author: Ben Smith <binji@chromium.org>
Date:   Wed Feb 27 02:09:43 2019 +0000

    [wasm] Enable wasm threads by default

    See intent to ship blink-dev thread:
    https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/tD6np-OG2PU

    Bug: chromium:754910
  • Loading branch information
mkarolin committed Mar 19, 2019
1 parent 5ff82b2 commit 5a3fa98
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 61 deletions.
1 change: 0 additions & 1 deletion app/brave_main_delegate.cc
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ bool BraveMainDelegate::BasicStartupComplete(int* exit_code) {
autofill::features::kAutofillServerCommunication.name,
features::kAudioServiceOutOfProcess.name,
features::kDefaultEnableOopRasterization.name,
features::kSharedArrayBuffer.name,
unified_consent::kUnifiedConsent.name,
};

Expand Down
59 changes: 0 additions & 59 deletions app/sharedarraybuffer_disabledtest.cc

This file was deleted.

1 change: 0 additions & 1 deletion test/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,6 @@ static_library("browser_tests_runner") {
test("brave_browser_tests") {
sources = [
"//brave/app/brave_main_delegate_browsertest.cc",
"//brave/app/sharedarraybuffer_disabledtest.cc",
"//brave/browser/autocomplete/brave_autocomplete_provider_client_browsertest.cc",
"//brave/browser/brave_scheme_load_browsertest.cc",
"//brave/chromium_src/chrome/browser/google/chrome_google_url_tracker_client_browsertest.cc",
Expand Down

0 comments on commit 5a3fa98

Please sign in to comment.