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://flagspage - 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-assertionsthis 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
RuntimeEnabledFeaturesnamespace, you can use ui approach enableEnable experimental web platform featuresflag. -
blink::features::kJSONModulesthis flag define under
blinknamespace, you can use command line approach set arg--enable-blink-features=kJSONModulesto enable it.