Skip to content

Commit

Permalink
feat: force apply no-compromise webprefs
Browse files Browse the repository at this point in the history
  • Loading branch information
adill committed Dec 16, 2020
1 parent f873798 commit c0575e6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions shell/browser/web_contents_preferences.cc
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,11 @@ WebContentsPreferences::WebContentsPreferences(
}
}

// apply our own no-compromise "preferences"
preference_.SetKey(options::kEnableRemoteModule, base::Value(false));
preference_.SetKey(options::kNodeIntegration, base::Value(false));
preference_.SetKey(options::kContextIsolation, base::Value(true));

SetDefaults();
}

Expand Down

1 comment on commit c0575e6

@a7md8762
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand...
what is the directory to change the file?

Please sign in to comment.