How to Enable or Disable Chrome Features
There are two ways to do that, one is UI but partially controllability, one is command line args.
UI Approach
- open
chrome://flags
page - find your feature
- do your choice
- restart browser
basically, your choice will save to the user data file, after restart browser, the data will transform to command line arguments.
Command Line Approach
Features List
Examples
Enable Import Assertions
Currently(v90), there are 3 flags need to be enabled.
you can figure out from real c++ code
-
--harmony-import-assertions
this flag come from v8 project, you can use command line approach set arg
--js-flags="--harmony-import-assertions"
to enable it. -
RuntimeEnabledFeatures::CSSModulesEnabled()
this flag define under
RuntimeEnabledFeatures
namespace, you can use ui approach enableEnable experimental web platform features
flag. -
blink::features::kJSONModules
this flag define under
blink
namespace, you can use command line approach set arg--enable-blink-features=kJSONModules
to enable it.