Skip to content

Commit

Permalink
Rename origins_to_allow_scripts_once to origins_to_allow_scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
goodov committed Sep 13, 2024
1 parent 37347b7 commit dce67ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ enum FarblingLevel {

struct ShieldsSettings {
FarblingLevel farbling_level;
array<string> origins_to_allow_scripts_once;
array<string> origins_to_allow_scripts;
bool reduce_language;
};
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ bool BraveContentSettingsAgentImpl::IsScriptTemporilyAllowed(
if (!shields_settings_) {
return false;
}
bool allow = base::Contains(shields_settings_->origins_to_allow_scripts_once,
bool allow = base::Contains(shields_settings_->origins_to_allow_scripts,
url::Origin::Create(script_url).Serialize()) ||
base::Contains(shields_settings_->origins_to_allow_scripts_once,
base::Contains(shields_settings_->origins_to_allow_scripts,
script_url.spec());
if (!allow) {
// Also check rules in the main frame, because this frame rules may be out
Expand Down

0 comments on commit dce67ae

Please sign in to comment.