web-share permission policy

A new permission policy, "web-share", controls access to navigator.share(). The default allowlist is 'self', avoiding possible abuse by third party iframes.

Motivation

Third party iframes could previously use navigator.share() without explicit permission from the site. The new permission policy's default allowlist is 'self', preventing such abuse. Organizations that want to prevent sharing will be able to define an enterprise policy.

Documentation

Specification

Editor's draft

Status in Chromium

Blink


In development (tracking bug)

Consensus & Standardization

After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.

  • Positive
  • No signal
  • No signal
  • No signals

Owner

Comments

Web Share integrates with the operating system sharing system. It is currently only supported on Android. Support for Chrome OS and Windows is expected in Q3 or Q4, 2020.

Last updated on 2020-10-25