chromium/components/policy/resources/templates/policy_definitions/Miscellaneous/FileOrDirectoryPickerWithoutGestureAllowedForOrigins.yaml

caption: Allow file or directory picker APIs to be called without prior user gesture
desc: |-
  For security reasons, the
  <ph name="SHOW_OPEN_FILE_PICKER_API_NAME">showOpenFilePicker()</ph>,
  <ph name="SHOW_SAVE_FILE_PICKER_API_NAME">showSaveFilePicker()</ph> and
  <ph name="SHOW_DIRECTORY_PICKER_API_NAME">showDirectoryPicker()</ph> web APIs
  require a prior user gesture ("transient activation") to be called or will
  otherwise fail.

  With this policy set, admins can specify origins on which these APIs can be
  called without prior user gesture.

  For detailed information on valid url patterns, please see
  https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns. * is
  not an accepted value for this policy.

  If this policy is unset, all origins will require a prior user gesture to call
  these APIs.
example_value:
- https://www.example.com
- '[*.]example.edu'
features:
  dynamic_refresh: true
  per_profile: true
owners:
- file://content/browser/file_system_access/OWNERS
- [email protected]
schema:
  items:
    type: string
  type: array
supported_on:
- chrome.*:113-
- chrome_os:113-
future_on:
- fuchsia
tags: []
type: list