V8 optimization security settings do not work correctly

Description of the issue:

V8 optimization should be, but is not, disabled when visiting unfamiliar sites and using the enhanced security option (see below).

How can this issue be reproduced?

  1. In brave://settings/content/v8 choose the middle setting, to automatically disable optimizations on unfamiliar sites.

  2. Browse to an unfamiliar site (one you haven’t visited before).

  3. Observe that the optimizer has ostensibly not been disabled, since the warning/button on the URL bar does not appear. On the other hand if you repeat the test with the optimizers “hard off” (bottom option), you do see the icon. In the case of unfamiliar sites, the behavior should be the same.

Expected result:

You should see the button notifying you that the optimizer is disabled (and offering to enable it for the site).

Brave Version( check About Brave):

1.93.137 Chromium: 151.0.7922.169 (Official Build) (64-bit)

Additional Information:

This combination (setting + unfamiliar site) works correctly on Chrome so this behavior appears to be specific to Brave for some reason.

@Mattches

OP report above, and possibly a related issue at:

‘Brave V8 Optimization Security Setting Bug’

Bump?

(Other issue seems to have been deleted?)

I see someone helpfully filed a GitHub issue for me. :slight_smile: